---
title: "Project Management"
---

import { Callout } from "@hive/design-system/hive-components/callout";
import { Image } from "@hive/design-system/image";

import slackIntegrationImage from "./org-slack-integration.png";
import projectGitLinkImage from "./project-git-link.png";
import projectHttpAlertImage from "./project-http-alert.png";
import msteamsFormImage from "./project-msteams-alert.png";
import slackAlertFormImage from "./project-slack-alert.png";
import projectImage from "./project.png";

import channelHeadersImage from "./alert-channel-delivery-headers.png";
import channelPageImage from "./alert-channel-page.png";
import channelPausedImage from "./alert-channel-paused-by-hive.png";
import channelsListImage from "./alert-channels-list.png";
import emailDeliveriesImage from "./email-deliveries.png";

A Hive **project** represents a GraphQL API project running a GraphQL schema, created under an
organization.

Within a Hive **project**, you can create **targets** (which are equivalent to runtime environments)
and manage different schemas across different contextual runtimes.

## Supported project types

Hive supports the following project types:

- **Single Schema**: a GraphQL project that has a single GraphQL schema developed as a standalone.
- **Schema Stitching**: a form of remote schema merging allowing developers to merge any GraphQL
  schema(s), under one or many gateways. You can use either direct
  [Schema Stitching](https://the-guild.dev/graphql/stitching) or
  [GraphQL Mesh](https://the-guild.dev/graphql/mesh) for this project type.
- **Apollo Federation**: a form of remote schema merging developed according to the
  [Federation specification](https://www.apollographql.com/docs/federation/subgraph-spec/).

## Create a new project

To create a new project, click on **Create Project +** button from your organization's main page:

<Image
  alt="Create Project Form"
  className="mt-10 max-w-lg rounded-lg drop-shadow-md"
  src={projectImage}
/>

Choose a project type based on your project's stack, and then enter the project slug.

<Callout>
  Please note that a **project** type cannot be changed once it is created.
  However, you can always create an unlimited number of projects under your
  organization.
</Callout>

## Manage existing project

### GitHub Repository

Once you have your
[Hive organization integrated with GitHub](/docs/schema-registry/management/organizations#github), no additional
steps are needed. Please double check that the GitHub integration has access to all the GitHub
repositories you plan to use with Hive.

<Callout>
  Previously, you could only connect a single GitHub repository to a project.
  However, that does not make sense when using federated/composite schema
  project the subgraphs can be in different repositories.
</Callout>

Having a Project connected with your GitHub repositories gives you the following benefits:

- Publish **Check Suite** back to GitHub (when `--github` flag is used for your `schema:publish` and
  `schema:check` commands -
  [you can learn move about this feature here](/docs/api-reference/cli#github-integration)).
- Have direct connection between a schema version and a Git commit in your repository in Hive
  dashboard.

<Image
  alt="Associated Git"
  className="mt-6 max-w-lg rounded-lg drop-shadow-md"
  src={projectGitLinkImage}
/>

### Change slug of a project

Slug is a unique (within an organization) identifier for your project.

Similarly to changing organization's slug, you can change the slug of your organization by visiting
Settings tab of your project:

<Callout type="warning">

Changing the slug of your project will also change the URL, and will invalidate any existing links
to your project as well as CLI commands using the `--target` parameter. If you want more resilience
we recommend using an UUID instead of a target slug for the `--target` parameter.

</Callout>

### Delete a project

As the owner of an organization, you have the option to delete a project, including all targets,
settings and all data collected during your use of Hive.

To delete an project, go to the **Settings** tab of your project, and use the **Delete Project**
section.

<Callout type="warning">This action is not reversible.</Callout>

## Alerts and Notifications

Hive allows you to configure alerts and notifications for your projects. To get started with alerts
and notifications, go to the **Settings** tab of your project, and click on the **Alerts** tab.

To use alerts and notifications, you need to have at least one **Alert Channel** configured, and
then you need to create an **Alert** that will be triggered when a specific condition is met.

### Alert Channels

**Alert Channels** are a way to configure **how** you want to receive alerts and notifications from
Hive.

From the **Alerts** tab of your project, you can create and manage your **Alert Channels**.

Clicking a channel opens its page, with the channel's delivery health and the most recent attempts
to deliver notifications to it. See [Delivery Tracking](#delivery-tracking).

At the moment, Hive supports the following transports to ship your alerts and notifications:

#### Slack

Integrating your project with a Slack channel will allow you to receive alerts and notifications
shipped directly to a Slack channel.

<Image
  alt="Hive Slack Message"
  className="mt-6 max-w-lg rounded-lg drop-shadow-md"
  src={slackIntegrationImage}
/>

To integrate your **project** with a Slack channel, you first need to
[activate the Slack integration at the organization level](/docs/schema-registry/management/organizations#slack).

Once you have activated the Slack integration, you can configure a Slack channel to connect to your
Hive project:

<Image
  alt="Hive and Slack Configuration"
  className="mt-6 max-w-sm rounded-lg drop-shadow-md"
  src={slackAlertFormImage}
/>

<Callout type="info">
  To send messages to private channels, invite the @GraphQLHive account first.
  Without this invitation, our Slack app will be unable to post messages to the
  channel.
</Callout>

#### MS Teams Webhook

You set up Hive MS Teams webhook to receive alerts and notifications from Hive, when an alert or a
notification is triggered. All you need to do is to provide a valid HTTP URL, and Hive will dispatch
a `POST` request to that URL, with a JSON payload acceptable by MS Teams.
[MS Teams Webhook JSON example](https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using#example-of-connector-message)

Typically the webhook URL looks like:

```bash
https://USERNAME.webhook.office.com/webhookb2/XXXXX/IncomingWebhook/YYYY/ZZZZZ
```

You can find more information on how to set up a webhook in MS Teams in the
[official documentation - Create Incoming Webhooks](https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook?tabs=newteams%2Cdotnet).

<Image
  alt="MS Teams Alert Configuration"
  className="mt-6 max-w-sm rounded-lg drop-shadow-md"
  src={msteamsFormImage}
/>

#### HTTP Webhook

You can implement a custom HTTP webhook to receive alerts and notifications from Hive, when an alert
or a notification is triggered.

All you need to do is to provide a valid HTTP URL, and Hive will dispatch a `POST` request to that
URL, with a JSON payload as body (with `Content-Type: application/json` header set) when an alert or
a notification is triggered.

<Callout type="warning">
  Note that using this form of alert is intended to implement custom flows. You
  cannot use an Incoming Webhook feature of products like MSTeams or Slack,
  because the expected payload is different.
</Callout>

<Callout type="warning">
  Hive Cloud uses Cloudflare Worker to communicate with your endpoint. This
  means that endpoint's address must contain a valid hostname (not an IP
  address), and the port must be standard.
</Callout>

<Image
  alt="HTTP Alert Configuration"
  className="mt-6 max-w-sm rounded-lg drop-shadow-md"
  src={projectHttpAlertImage}
/>

<Callout type="info">
  Every type of event/notification has a different JSON payload, please refer to
  the information below, for a specific payload structure for every kind of
  alert.
</Callout>

### Alerts and Notifications

**Alerts** are a way to configure **when** you want to receive alerts and notifications from Hive.

From the **Alerts** tab of your project, you can create and manage your **Active Alerts and
Notifications**.

To create a new kind of alert, use the **Create Alert** button and choose the **Alert type**,
**Alert Channel** and the target's slug.

At the moment, Hive supports the following types of alerts and notifications (if you need a
different kind of alert, you can collaborate with us on
[this GitHub issue](https://github.com/graphql-hive/platform/issues/253)):

#### Schema Changed Notification

An alert triggered when a fully valid and composable schema is published to a target.

This notification has the following payload when shipped over the **HTTP webhook** channel:

```ts copy=false
type SchemaChangedNotificationPayload = {
  /** General information about organization triggered the event */
  organization: {
    id: string;
    cleanId: string;
    name: string;
  };
  /** General information about project triggered the event */
  project: {
    id: string;
    cleanId: string;
    name: string;
  };
  /** General information about target triggered the event */
  target: {
    id: string;
    cleanId: string;
    name: string;
  };
  /** Information about the published schema and the commit identification */
  schema: {
    id: string;
    commit: string;
    valid: boolean;
  };
  /** List of changes and their criticality */
  changes: Array<{
    criticality: "Breaking" | "Dangerous" | "Safe";
    message: string;
    path?: string;
  }>;
  /** Useful information about the schema publication flow */
  messages: string[];
  /** List of validation and composition error */
  errors: Array<{
    message: string;
    path?: string;
  }>;
  /** A boolean indicator set to true, when this is the first schema published to the target */
  initial: boolean;
};
```

### Delivery Tracking

Hive records every attempt it makes to deliver a notification to an
[alert channel](#alert-channels) and every email it sends
on behalf of an organization, and shows the outcome in Hive Console: on a page for each alert
channel, in the **Email Deliveries** section of the organization settings, and
[next to each pending invitation](/docs/schema-registry/management/members-roles-permissions#email-delivery-status)
on the organization's **Members** page.

Notifications and emails are delivered by a background worker after the request that caused them
has returned, so there is no response in which Hive could report a failure. They also depend on
configuration outside Hive that can be invalidated without anyone touching Hive: a revoked Slack
token or an archived channel, a deleted Teams or Discord webhook, a decommissioned or timing-out
endpoint, an address the mail provider refuses. Without tracking, these failures are silent.

Hive tracks the schema change notifications, metric alerts and channel confirmations sent to every
channel type, and the invitation, ownership transfer, audit log export and usage limit emails sent
for an organization. Message bodies, payloads, links and codes are never stored. Records are kept
for 75 days, and the pages described below show the last 72 hours.

#### Alert channel deliveries

Open the **Alerts** page of a project and click a channel. Viewing a channel requires the
`alert:modify` permission, like managing one.

<Image
  alt="Alert channel page with delivery stats, a chart over time, the channel's health and the delivery log"
  className="mt-6 rounded-lg drop-shadow-md"
  src={channelPageImage}
/>

The page shows:

- **Total calls**, **Failed** (with the failure rate), **Last success** and **Last failure** for
  the last 72 hours.
- **Deliveries over time**: total calls and errors per interval.
- **Channel details**: the status, type, destination and id, the **Channel status** switch, and
  the **Edit channel** and **Delete channel** actions.
- **The delivery log**: recent attempts, with the time, event, target, status, duration and
  attempt number.

The **Status** column shows the destination's own answer, such as `200 OK` or `404 Not Found`, or
`Timed out` when it did not answer in time.

Expand a row to see what Hive sent to identify the call: the headers and other important metadata
associated with the delivery. The request and response payloads are not included, to prevent
leaking sensitive information.

<Image
  alt="A delivery log row expanded to show the headers Hive sent"
  className="mt-6 rounded-lg drop-shadow-md"
  src={channelHeadersImage}
/>

Failed deliveries are retried with increasing delays, and the delivery log shows the attempt number
of each row. Retried deliveries carry the same `Idempotency-Key` header, so make your webhook
handler idempotent (see [Metric Alerts](/docs/schema-registry/metric-alerts#webhook-payload)).

#### Channel health

The **Status** row of the channel details summarizes the recent attempts:

| Status      | Meaning                                                                                 |
| ----------- | --------------------------------------------------------------------------------------- |
| **Healthy** | Attempts have been recorded, and the ten most recent ones are not all failures.         |
| **Failing** | The ten most recent attempts all failed. The row shows since when.                      |
| **No data** | No attempt has been recorded since the channel was created or last enabled.             |
| **Paused**  | The channel is paused and receives no notifications.                                    |

Health counts the attempts made since the channel was created or last enabled, so enabling a paused
channel starts it afresh. The delivery log keeps every attempt regardless.

If a channel has been failing for 48 hours, Hive pauses it and no further notifications are sent
to it. Fix the destination, or use **Edit channel** to rename the channel or point it at a new
destination without recreating it (the type cannot change), then click **Enable channel**.

<Image
  alt="A channel paused by Hive after failing for 48 hours, with the Enable channel button"
  className="mt-6 rounded-lg drop-shadow-md"
  src={channelPausedImage}
/>

You can also pause a channel yourself by toggling **Channel status** in the channel details. Pausing
keeps the channel's alerts and metric alert rules in place, but stops these notifications from
sending.

<Image
  alt="The Alerts page of a project with a paused channel"
  className="mt-6 rounded-lg drop-shadow-md"
  src={channelsListImage}
/>

#### Email deliveries

Open the organization's **Settings** and choose **Email Deliveries**.

<Image
  alt="The Email Deliveries section of the organization settings"
  className="mt-6 rounded-lg drop-shadow-md"
  src={emailDeliveriesImage}
/>

The section shows the emails Hive sent for the organization in the last 72 hours: how many the mail
provider accepted or refused, when it last did either, **Emails over time**, and a log of each
attempt with the recipient, the provider's answer, the duration and the attempt number. Expanding an
attempt shows the metadata recorded for it.

Each member sees the kinds of email of the features they may manage. When that leaves a kind out,
the section says which kinds it shows.

| Email                                    | Who sees it                      |
| ---------------------------------------- | -------------------------------- |
| Invitations                              | Members with `member:modify`     |
| Audit log exports                        | Members with `auditLog:export`   |
| Usage limit warning and exceeded notices | Members with `billing:describe`  |
| Ownership transfers                      | The organization owner           |

<Callout type="info">
  An accepted email can still land in a spam folder, so ask the recipient to
  check there if it has not arrived.
</Callout>

<Callout type="info">
  On self-hosted Hive, the `workflows` service records its deliveries only when
  its ClickHouse connection is configured (`CLICKHOUSE=1`); see the
  [self-hosting guide](/docs/schema-registry/self-hosting/get-started).
</Callout>
