Webhooks
Create a webhook
Creates a new webhook to receive event notifications.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Human-readable name (max 100 chars) |
url | string | Yes | Webhook endpoint URL (must be HTTPS) |
description | string | No | Optional description (max 500 chars) |
topics | string[] | Yes | Event topics to subscribe to |
requestConfig | object | No | Request configuration |
requestConfig.headers | object | No | Custom headers to send (max 10) |
Available Topics
post.created- When a new feedback post is createdpost.updated- When a feedback post is updatedpost.deleted- When a feedback post is deletedpost.voted- When a feedback post receives a voteticket.created- When a new ticket is createdticket.updated- When a ticket is updatedticket.deleted- When a ticket is deletedchangelog.published- When a changelog is publishedcomment.created- When a comment is createdcomment.updated- When a comment is updatedcomment.deleted- When a comment is deletedaudit_log.created- When an audit log event is recorded (requires Enterprise plan)survey_response.created- When a survey response is first savedsurvey_response.completed- When a survey response is completed
Survey Response Events
survey_response.createdis sent on the first save of a response,survey_response.completedthe first time it is completed. A one-page survey sends both.- The legacy survey widget saves each page on its own and sends only
created. For a known respondent it carries the first saved page, and later pages send no event. For an anonymous respondent each page is a separate response with its owncreated. - Each event carries the response as it was when the event was queued. Changes after completion send no event.
- Events can arrive late or out of order (retries). Never let a
createdreplace a stored response that already hascompletedAt, or re-read the response fromGET /v2/outbound/messages/{id}/survey_responses. - An event can be missing: both topics are best effort. A
completedcan arrive without acreated. A response larger than 256 KB, or from a banned person, sends no event. completedAtis usually null for responses from the legacy survey widget and for responses saved before 2026-06-30, unless the same person later completes the response in the current survey widget.- Deleted responses send no event.
- Survey events use the same envelope and item for every API version.
- The event
idis fixed per response and topic: use it to dedupe. useris the identity the widget sent. It is verified only when identity verification is on.
Response
Returns the created webhook object including the signing secret.
Example Request
{
"name": "Production Webhook",
"url": "https://example.com/webhooks",
"description": "Handles all production events",
"topics": ["post.created", "post.updated", "comment.created"],
"requestConfig": {
"timeoutMs": 10000,
"headers": {
"X-Custom-Header": "value"
}
}
}Example Response
{
"object": "webhook",
"id": "507f1f77bcf86cd799439011",
"name": "Production Webhook",
"url": "https://example.com/webhooks",
"secret": "whsec_abc123def456ghi789",
"topics": ["post.created", "post.updated", "comment.created"],
"status": "active",
...
}Limits
Each organization has a maximum number of webhooks (default: 10). Creating a webhook when the limit is reached will return a 400 error.
Version Availability
This endpoint is only available in API version 2026-01-01.nova and newer.
Body
application/json
Optional description of the webhook purpose
Maximum string length:
500Example:
Handles all production eventsHuman-readable name for the webhook
Required string length:
1 - 255Example:
Production WebhookResponse
application/json
Created
Optional description of the webhook purpose
Example:
Handles all production eventsCurrent status of the webhook
Available options:
active, paused, suspendedExample:
activeISO timestamp when the webhook was last updated
Example:
2025-01-15T10:30:00.000ZMore in Webhooks
PATCHUpdate a webhookDELDelete a webhookPOSTRefresh webhook signing secretStill need help? Ask the team