Integration schema
See Management API schema for every domain, the endpoint and authentication.
Mutations
integrationInstall
Installs an integration for a project. A project that already has an integration of that type
gets a CONFLICT error.
Scope: ORGANIZATION_INTEGRATIONS_CREATE and ORGANIZATION_PROJECTS_READ.
integrationInstall(input: IntegrationInstallInput!): IntegrationInstallPayload! @authintegrationUninstall
Uninstalls an integration and deletes its configuration.
Scope: ORGANIZATION_INTEGRATIONS_DELETE.
integrationUninstall(id: ID!): IntegrationUninstallPayload! @authintegrationConfigurationCreate
Creates the configuration of an installed integration. An integration has at most one
configuration; a second gets a CONFLICT error.
Scope: ORGANIZATION_INTEGRATIONS_CREATE.
integrationConfigurationCreate(input: IntegrationConfigurationCreateInput!): IntegrationConfigurationCreatePayload! @authintegrationConfigurationUpdate
Updates an integration's configuration.
Scope: ORGANIZATION_INTEGRATIONS_UPDATE.
integrationConfigurationUpdate(id: ID!, input: IntegrationConfigurationUpdateInput!): IntegrationConfigurationUpdatePayload! @authintegrationConfigurationDelete
Deletes an integration's configuration. The integration stays installed.
Scope: ORGANIZATION_INTEGRATIONS_DELETE.
integrationConfigurationDelete(
id: ID!
"""
The type of the integration. Not read: `id` alone identifies the configuration.
"""
type: IntegrationType!
): IntegrationConfigurationDeletePayload! @authTypes
IntegrationType
"""The service an integration connects a project to."""
enum IntegrationType {
"""Vercel, through deploy hooks."""
VERCEL
}Integration
"""
A connection between a project and another service. A project has at most one integration of
each type.
"""
type Integration {
"""The ID of the integration."""
id: ID!
"""The ID of the project the integration belongs to."""
projectId: ID!
"""The service the integration connects to."""
type: IntegrationType!
"""When the integration was installed."""
installedAt: DateTime!
"""When the integration last changed."""
updatedAt: DateTime!
"""The project the integration belongs to."""
project: Project!
"""
The integration's settings, of the type that matches `type`. Null until
`integrationConfigurationCreate` creates them.
Scope: `ORGANIZATION_INTEGRATIONS_READ`.
"""
configuration: IntegrationConfiguration @auth
}IntegrationConfiguration
"""The settings of an integration, one member per integration type."""
union IntegrationConfiguration = VercelConfigurationVercelConfiguration
"""
The settings of a Vercel integration: the deploy hooks that redeploy the Vercel project.
"""
type VercelConfiguration {
"""The ID of the configuration."""
id: ID!
"""The ID of the integration the configuration belongs to."""
integrationId: ID!
"""The deploy hooks."""
deployHooks: [VercelDeployHook!]!
"""When the configuration was created."""
createdAt: DateTime!
"""When the configuration last changed."""
updatedAt: DateTime!
}VercelDeployHook
"""A Vercel deploy hook for one environment."""
type VercelDeployHook {
"""The environment name, such as `Production`."""
name: String!
"""The deploy hook URL. Anyone with the URL can trigger a deployment."""
hookUrl: String!
}IntegrationInstallInput
"""The input of `integrationInstall`."""
input IntegrationInstallInput {
"""The ID of the project."""
projectId: ID!
"""The service to connect."""
type: IntegrationType!
}IntegrationInstallPayload
"""The result of `integrationInstall`."""
type IntegrationInstallPayload {
"""The installed integration. Null when it cannot be read back."""
integration: Integration
}IntegrationUninstallPayload
"""The result of `integrationUninstall`."""
type IntegrationUninstallPayload {
"""Whether the integration was uninstalled. Always `true`."""
success: Boolean!
}VercelDeployHookInput
"""A Vercel deploy hook to save."""
input VercelDeployHookInput {
"""The environment name, such as `Production`."""
name: String!
"""
The deploy hook URL. Must start with `https://api.vercel.com/v1/integrations/deploy/`.
"""
hookUrl: String!
}VercelConfigurationInput
"""The settings of a new Vercel configuration."""
input VercelConfigurationInput {
"""The deploy hooks. At least one."""
deployHooks: [VercelDeployHookInput!]!
}VercelConfigurationUpdateFields
"""The Vercel settings to change. Omit a field to keep its value."""
input VercelConfigurationUpdateFields {
"""The deploy hooks, which replace the current list. At least one."""
deployHooks: [VercelDeployHookInput!]
}IntegrationConfigurationCreateInput
"""The input of `integrationConfigurationCreate`."""
input IntegrationConfigurationCreateInput {
"""The ID of the integration."""
integrationId: ID!
"""
The Vercel settings. Required: only `VERCEL` integrations take a configuration.
"""
vercel: VercelConfigurationInput
}IntegrationConfigurationCreatePayload
"""The result of `integrationConfigurationCreate`."""
type IntegrationConfigurationCreatePayload {
"""The created configuration. Null when it cannot be read back."""
configuration: IntegrationConfiguration
}IntegrationConfigurationUpdateInput
"""
The input of `integrationConfigurationUpdate`. Omit a field to keep its value.
"""
input IntegrationConfigurationUpdateInput {
"""The Vercel settings to change. Required."""
vercel: VercelConfigurationUpdateFields
}IntegrationConfigurationUpdatePayload
"""The result of `integrationConfigurationUpdate`."""
type IntegrationConfigurationUpdatePayload {
"""The updated configuration. Null when it cannot be read back."""
configuration: IntegrationConfiguration
}IntegrationConfigurationDeletePayload
"""The result of `integrationConfigurationDelete`."""
type IntegrationConfigurationDeletePayload {
"""Whether the configuration was deleted. Always `true`."""
success: Boolean!
}