Webhook types
All available webhook types are included in the WebhookType enum. Example payloads for each can be found in our Event Types guide.
Creating webhooks
To create a webhook via the API:
1
mutation WebhookCreate($input: WebhookCreateInput!) {2
webhookCreate(input: $input) {3
id4
url5
type6
status7
}8
}Edit webhook details
To edit an existing webhook via the API:
1
mutation WebhookUpdate($input: WebhookUpdateInput!) {2
webhookUpdate(input: $input) {3
id4
url5
type6
status7
}8
}View webhook logs
To view webhook logs via the API:
1
query WebhookLogs(2
$first: Int3
$after: String4
$filter: WebhookLogsFilterInput5
) {6
webhookLogs(first: $first, after: $after, filter: $filter) {7
edges {8
node {9
id10
type11
url12
createdAt13
responseStatus14
}15
}16
}17
}GraphQL API ReferenceTypes, inputs, and operations used in this guide
Listen to events with webhooks
Get real-time event notifications for your Zonos integration.
Webhooks provide a way for Zonos to proactively notify your external systems whenever certain events take place. When the subscribed event occurs, Zonos will send an HTTP POST request to the webhook URL you specify. The request body will contain the event details, allowing your system to handle the event programmatically.
Webhooks are useful for integrating Zonos with other platforms, triggering automated workflows, and keeping data in sync across systems in real-time. For example, you could use webhooks to: