Build status notifications
Receive webhook alerts whenever GraphOS attempts to build a new supergraph schema
This feature is only available with a GraphOS Dedicated or Enterprise plan.
To compare GraphOS feature support across all plan types, see the
This feature is in
You can
You can configure separate change notifications for each
Setup
See
Webhook format
Build status notifications are sent exclusively as
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
(for example,mygraph@staging
). This format is known as agraph ref.