Mutation
mutation CreateWebhook($input: CreateWebhookInput!) {
createWebhook(input: $input) {
createdWebhook {
signingSecret
webhook {
createdAt
destinationType
endpoint
filter
filterDialectVersion
id
}
}
}
}Variables
{
"input": {
"endpoint": "string",
"filter": "string",
"name": "string"
}
}Response
{
"data": {
"createWebhook": {
"createdWebhook": {
"signingSecret": "string",
"webhook": {
"createdAt": "value",
"destinationType": "WEBHOOK",
"endpoint": "string",
"filter": "string",
"filterDialectVersion": 1,
"id": "value"
}
}
}
}
}Mutations
createWebhook
Creates a webhook in PENDING_VERIFICATION and returns it with its signing secret, which is shown only here. Call verifyWebhook to start delivery. Fails with a top-level ValidationError for an invalid name, endpoint or filter.
MUTATION
createWebhook(input: CreateWebhookInput!): CreateWebhookPayload!Arguments
input
required
Returns
createdWebhook
Mutation
mutation CreateWebhook($input: CreateWebhookInput!) {
createWebhook(input: $input) {
createdWebhook {
signingSecret
webhook {
createdAt
destinationType
endpoint
filter
filterDialectVersion
id
}
}
}
}Variables
{
"input": {
"endpoint": "string",
"filter": "string",
"name": "string"
}
}Response
{
"data": {
"createWebhook": {
"createdWebhook": {
"signingSecret": "string",
"webhook": {
"createdAt": "value",
"destinationType": "WEBHOOK",
"endpoint": "string",
"filter": "string",
"filterDialectVersion": 1,
"id": "value"
}
}
}
}
}Was this page helpful?