Webhooks let Service Health send incident and scheduled maintenance updates to your own systems, such as an incident management tool, a chat channel, or an internal dashboard. Each update is sent as a signed HTTP request, so your system can confirm it comes from Talkdesk.
Prerequisites
- You need an HTTPS endpoint that is reachable from the public internet and that can receive POST requests with a JSON body.
- You can add up to 3 webhooks per account.
Note: A Talkdesk account belongs to a single region, so a webhook receives the Service Health updates of that region.
What a Webhook Sends
A webhook sends updates for all Talkdesk products as soon as they are published in Service Health. It sends the same public information that is shown on the Service Health page. Root cause analysis (RCA) documents are not included.
| Event type | When it is sent |
|---|---|
| incident.created | A new incident is published. |
| incident.status_changed | The status of an incident changes. |
| incident.comment_added | A public comment is added to an incident. |
| incident.resolved | An incident is resolved. |
| maintenance.reminder | A reminder for a scheduled maintenance. |
| maintenance.started | A scheduled maintenance starts. |
| maintenance.comment_added | A comment is added to a scheduled maintenance. |
| maintenance.completed | A scheduled maintenance is completed. |
| webhook.ping | You send a test event. |
Add a Webhook
- In Service Health, select Configure notifications in the top right corner.
- Select Webhooks. The Webhooks panel opens.
- In Endpoint URL, enter the HTTPS address that receives the updates, for example, https://example.com/webhooks/service-health.
- In Contact email, enter the address of the person who runs the endpoint. By default, your own email is filled in. We email this address if the webhook stops working.
- Select Add webhook.
- In the Signing secret window, select Copy and store the secret in a safe place, then select Done.
Important Note:
- You won't be able to see this secret again. If you lose it, rotate the secret to get a new one.
The webhook is Active as soon as it is added. Nothing is sent to your endpoint when you add it, and the endpoint is not checked. Configure your endpoint with the signing secret, then use Test webhook to confirm it works. Until your endpoint has the secret, the deliveries fail and count as failures.
The contact email receives a message that explains what the webhook does and that only an administrator of the account can change it.
Endpoint Requirements
- The URL must start with https://, can have a custom port, and cannot include a username or password.
- The address must be public. URLs that point to private or internal addresses are not accepted and show This URL isn't allowed. Use a public HTTPS endpoint.
- Each URL can be used by only one webhook of the account.
- The URL can have up to 2048 characters.
Verifying Requests
Every request is signed following the Standard Webhooks specification. Use one of the Standard Webhooks libraries to verify the signature, or follow the steps below. Verify the signature on the raw request body.
Each request has these headers:
| Header | Description |
|---|---|
| webhook-id | The event ID. It is the same in every retry, so use it to ignore duplicates. |
| webhook-timestamp | When the request was signed, in Unix seconds. |
| webhook-signature | v1, followed by the base64 HMAC-SHA256 signature of <webhook-id>.<webhook-timestamp>.<raw body>. It can hold several signatures separated by spaces. Accept the request when one matches. |
| X-Talkdesk-Webhook-Event | The event type. Informational and not signed, so rely on type in the body. |
| X-Talkdesk-Webhook-Attempt | The attempt number, starting at 1. Informational and not signed. |
To verify a request:
- Remove the whsec_ prefix from the signing secret and decode the rest from base64. This is the signing key.
- Build the signed content: the webhook-id, the webhook-timestamp, and the raw body, joined with dots.
- Calculate the HMAC-SHA256 of the signed content with the key and encode it in base64.
- Compare it, in constant time, with the signatures in webhook-signature.
- Reject requests whose timestamp is more than 5 minutes old, to prevent replays.
Each webhook has its own secret. If several webhooks point to the same system, use the subscription_id in the body to find the right secret.
Request Body
{
"id": "evt_0000000000000000",
"api_version": "2026-10-01",
"type": "incident.status_changed",
"created_at": "2026-11-26T09:06:00.000Z",
"sequence": 1795770360000,
"region": "<region>",
"subscription_id": "whs_<webhook id>",
"data": {
"incident": { "...": "the public incident, as shown in Service Health" },
"changes": { "status": { "from": null, "to": "<new status>" } }
}
}Maintenance events have a maintenance object instead of incident. When an update includes a comment, it is in changes.new_comment.body. webhook.ping has only a message in data.
Note: Events are delivered at least once and can arrive out of order. Use id to ignore duplicates and sequence to order the events. In changes.status, from is empty and to has the new status.
How Deliveries Work
- Your endpoint must answer with a 2xx status within 15 seconds.
- Redirects are not followed and count as a failure.
- If a delivery fails, it is tried again up to 3 times in total, with increasing waits between attempts. If all attempts fail, that update is not sent again and counts as one failure.
- A successful delivery resets the count of failures.
When a Webhook is Disabled
A webhook changes to Disabled and stops receiving updates when:
- 10 deliveries in a row fail, or
- your endpoint answers 410 Gone, which asks Talkdesk to stop sending updates. The webhook is disabled at once.
A disabled webhook that failed shows a warning icon next to its status: We couldn't deliver updates to this endpoint. Check it and enable it again.
Emails to the Contact
The contact email receives a message when:
- the webhook is added;
- a delivery fails (only the first of a run of failures, so a broken endpoint doesn't flood the inbox);
- the webhook is disabled by the system.
Managing Webhooks
The Webhooks panel lists each webhook with its Status, Contact, Secret (only the first characters), and Created date. Hover over the information icon next to the date to see when the webhook was last updated. Select the Webhook actions menu (the three dots) of a webhook to see the actions.
| Action | What it does |
|---|---|
| Test webhook | Sends a webhook.ping event to the endpoint and shows if it answered successfully. Available only for active webhooks. A failed test is not counted as a delivery failure. |
| Rotate secret | Creates a new signing secret, shown once. The old secret stops working immediately, so update your endpoint with the new one. Until you do, the deliveries fail. |
| Disable | Stops the updates at once. The webhook stays in the list. |
| Enable | Starts the updates again. The URL is checked again, and the count of failures starts over. |
| Remove | Deletes the webhook after you confirm. It stops receiving updates. |
Note: You can't edit the URL or the contact email of a webhook. To change them, remove the webhook and add a new one.
Troubleshooting
| Message or situation | What to do |
|---|---|
| Enter a valid HTTPS URL | Use a full address that starts with https:// and has a domain name. |
| This URL already has a webhook | Each URL can be used once per account. Remove the existing webhook or use another URL. |
| This URL isn't allowed. Use a public HTTPS endpoint. | The address is private, internal or not reachable. Use a public HTTPS endpoint. |
| Webhook registration limit reached. You can add up to 3 webhooks. | Remove a webhook you no longer need. |
| Test event failed | Check that your endpoint is reachable and answers with a 2xx status. The message shows the status your endpoint returned, when there is one. |
| The webhook is disabled | Fix the endpoint, then select Enable in the Webhook actions menu. |
| Your endpoint rejects the signature | Check that it uses the current secret of that webhook. The secret changes when it is rotated. |