Webhooks overview
NuacemOne can POST JSON to an HTTPS endpoint on your side when something happens. There are two kinds:
| Webhook | Sent when | Set up in the console |
|---|---|---|
| Workflow events | A workflow run starts, changes status, completes, fails or is cancelled, or a step waits for a person. | Settings → Developers → Workflow webhooks |
| Transcript delivery | A conversation (call or chat) has ended and its transcript is ready. | Settings → Transcript delivery, or an agent’s Transcript Webhook |
Workflow webhooks are part of the Workflows API beta.
What every webhook has in common
Section titled “What every webhook has in common”- HTTPS POST with a JSON body. Your endpoint must use
https://on a public address. Private and internal addresses are refused. - Signed. Each request carries
X-VoiceCX-TimestampandX-VoiceCX-Signature. The signature isv1=followed by the hex HMAC-SHA256 of<timestamp>.<raw body>, keyed with the endpoint’s signing secret. Always check it. See Verifying signatures. - Retried. A delivery counts as successful only when your endpoint answers
2xx. Otherwise NuacemOne tries again with growing gaps, over about a day. Redirects are not followed. - At least once. You may get the same webhook more than once. Each one has a stable id you can deduplicate on.
Writing a good receiver
Section titled “Writing a good receiver”- Read the raw request body before any JSON parsing. The signature is over those exact bytes.
- Check the signature and timestamp. Answer
401if they are wrong. - Store the webhook (or put it on a queue) and answer
2xxstraight away. Do the slow work afterwards. Workflow webhooks time out after 10 seconds and transcript webhooks after 15. - Deduplicate on the webhook’s id before acting on it.
- Do not rely on order. Use the timestamps in the payload if order matters.
Secrets
Section titled “Secrets”Each workflow webhook endpoint and each transcript webhook destination has its own signing secret. Agents’ Transcript Webhooks share one signing secret per workspace. The console shows a secret once, when it is created, and lets you rotate it. Keep secrets in your secret manager, never in code.