Mutation
mutation VerifyWebhook($input: VerifyWebhookInput!) {
verifyWebhook(input: $input) {
webhook {
createdAt
destinationType
endpoint
filter
filterDialectVersion
id
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"verifyWebhook": {
"webhook": {
"createdAt": "value",
"destinationType": "WEBHOOK",
"endpoint": "string",
"filter": "string",
"filterDialectVersion": 1,
"id": "value"
}
}
}
}Mutations
verifyWebhook
Checks the webhook’s endpoint and makes the webhook ACTIVE; delivery starts with events after this point. Occtoo sends an OPTIONS request with a WebHook-Request-Origin header, and the endpoint must answer 2xx within 10 seconds with WebHook-Allowed-Origin set to that origin or *. Fails with a top-level ValidationError if the check fails, or ConflictError if the webhook isn’t PENDING_VERIFICATION.
MUTATION
verifyWebhook(input: VerifyWebhookInput!): VerifyWebhookPayload!Arguments
input
required
Returns
webhook
Mutation
mutation VerifyWebhook($input: VerifyWebhookInput!) {
verifyWebhook(input: $input) {
webhook {
createdAt
destinationType
endpoint
filter
filterDialectVersion
id
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"verifyWebhook": {
"webhook": {
"createdAt": "value",
"destinationType": "WEBHOOK",
"endpoint": "string",
"filter": "string",
"filterDialectVersion": 1,
"id": "value"
}
}
}
}Was this page helpful?