query Webhook($id: ID!) {
webhook(id: $id) {
createdAt
destinationType
endpoint
filter
filterDialectVersion
id
}
}{
"id": "id"
}{
"data": {
"webhook": {
"createdAt": "value",
"destinationType": "WEBHOOK",
"endpoint": "string",
"filter": "string",
"filterDialectVersion": 1,
"id": "value"
}
}
}webhook
Gets a webhook by its global id. Fails with a top-level NotFoundError if there’s none, or if the id belongs to another type of event destination.
webhook(id: ID!): Webhook!Arguments
Global id of the webhook: base64 of Webhook:<id>, where <id> is Webhook.id.
Returns
When the webhook was created (UTC).
Kind of event destination; WEBHOOK for a webhook.
HTTPS URL the events are POSTed to.
Which events are delivered, in the syntax CreateWebhookInput.filter describes. Stored normalized, e.g. (type eq "source.updated" and sourceId eq "products").
Version of the filter syntax. Currently always 1.
Raw id of the webhook (UUID). webhook and the webhook mutations take its global form, base64 of Webhook:<id>; rotateWebhookSecret takes base64 of EventDestination:<id>.
Name of the webhook, 1 to 200 characters.
Position in the tenant's event stream that delivery started after: only later events are delivered. Same format as the CloudEvent sequence (e.g. 001.00000000000000012345). Null while the webhook waits for verification.
Lifecycle state of the webhook. See WebhookStatus.
When the webhook last changed (UTC), status changes Occtoo makes itself included.
query Webhook($id: ID!) {
webhook(id: $id) {
createdAt
destinationType
endpoint
filter
filterDialectVersion
id
}
}{
"id": "id"
}{
"data": {
"webhook": {
"createdAt": "value",
"destinationType": "WEBHOOK",
"endpoint": "string",
"filter": "string",
"filterDialectVersion": 1,
"id": "value"
}
}
}Was this page helpful?