Build status notifications (preview)
Build status notifications require an Enterprise plan. They are currently in preview.
You can configure Apollo Studio to notify your team via webhook whenever Apollo attempts to build a new supergraph schema for your federated graph. The notification indicates whether the build succeeded and provides a temporary URL to the new supergraph schema if so.
You can configure separate change notifications for each variant of your graph.
Setup
See Setting up Studio Notifications.
Webhook format
Build status notifications are sent exclusively as webhooks. Details are provided as a JSON object in the request body.
The JSON object conforms to the structure of the ResponseShape
interface:
interface BuildError {message: string;locations: ReadonlyArray<Location>;}interface Location {line: number;column: number;}interface ResponseShape {eventType: "BUILD_PUBLISH_EVENT";eventID: string;supergraphSchemaURL: string | undefined; // See description belowbuildSucceeded: boolean;buildErrors: BuildError[] | undefined; // See description belowgraphID: string;variantID: string; // See description belowtimestamp: string; // ISO 8601 Date string}
-
If the build succeeds, the value of
supergraphSchemaURL
is a short-lived (24-hour) URL that enables you to fetch the supergraph schema without authenticating (such as with an API key). Otherwise, this field is not present. -
If the build fails,
buildErrors
is an array ofBuildError
objects that describe the errors that occurred during the build. Otherwise, this field is not present. -
The value of
variantID
is in the formatgraphID@variantName
(e.g.,mygraph@staging
). This format is known as a graph ref.