Create a webhook endpoint (API key)
curl --request POST \ --url https://api.sipstack.com/api/v2/webhooks \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "url": "https://example.com/sipstack-webhook", "events": [ "message.delivered", "message.failed" ] }'import requests
url = "https://api.sipstack.com/api/v2/webhooks"
payload = { "url": "https://example.com/sipstack-webhook", "events": ["message.delivered", "message.failed"]}headers = { "x-api-key": "<x-api-key>", "Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())const url = 'https://api.sipstack.com/api/v2/webhooks';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"url":"https://example.com/sipstack-webhook","events":["message.delivered","message.failed"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}import axios from 'axios';
const options = { method: 'POST', url: 'https://api.sipstack.com/api/v2/webhooks', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, data: { url: 'https://example.com/sipstack-webhook', events: ['message.delivered', 'message.failed'] }};
try { const { data } = await axios.request(options); console.log(data);} catch (error) { console.error(error);}Registers an endpoint URL for the given event types. The URL must be a public HTTPS address (localhost/private/reserved hosts are rejected). The signing secret is returned only in this response — store it now; it is never shown again. See the Webhooks guide for the event catalog.
Callbacks below document the JSON body SIPSTACK sends to your
endpoint for every event, field by field. The body is a flat object:
event first, then the event’s fields at the top level. Creating an
endpoint requires a Flare plan, or Nova Pro or higher.
This is the API-key (server-to-server) webhooks surface; the portal
admin-console equivalent lives under the Webhooks tag.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Example
https://example.com/sipstack-webhookExample
[ "message.delivered", "message.failed"]Callbacks
Section titled “ Callbacks ”message.sent
Section titled “message.sent”The carrier accepted an outbound message.
Headers: X-Webhook-Event: message.sent, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”message.sent, message.delivered, message.failed — carrier status change on an outbound message.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Example
{ "event": "message.delivered", "messageId": 12345, "status": "delivered", "to": "+15555550100", "from": "+15555550200", "campaignId": 42, "occurred_at": "2026-11-20T15:04:05.000Z", "idempotency_key": "message.delivered:12345"}Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
message.delivered
Section titled “message.delivered”The carrier confirmed delivery to the handset.
Headers: X-Webhook-Event: message.delivered, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”message.sent, message.delivered, message.failed — carrier status change on an outbound message.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Example
{ "event": "message.delivered", "messageId": 12345, "status": "delivered", "to": "+15555550100", "from": "+15555550200", "campaignId": 42, "occurred_at": "2026-11-20T15:04:05.000Z", "idempotency_key": "message.delivered:12345"}Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
message.failed
Section titled “message.failed”An outbound message failed or was undeliverable.
Headers: X-Webhook-Event: message.failed, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”message.sent, message.delivered, message.failed — carrier status change on an outbound message.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Example
{ "event": "message.delivered", "messageId": 12345, "status": "delivered", "to": "+15555550100", "from": "+15555550200", "campaignId": 42, "occurred_at": "2026-11-20T15:04:05.000Z", "idempotency_key": "message.delivered:12345"}Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
message.received
Section titled “message.received”An inbound SMS/MMS arrived on one of your numbers.
Headers: X-Webhook-Event: message.received, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”message.received — an inbound SMS/MMS arrived on one of your numbers.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
true when the text is a caller’s reply to an Aura agent that asked them, during a call, to text their email address; false otherwise.
Example generated
{ "event": "example", "occurred_at": "2026-04-15T12:00:00Z", "idempotency_key": "example", "messageId": 1, "from": "example", "to": "example", "body": "example", "aura_capture": true}Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
campaign.completed
Section titled “campaign.completed”A campaign finished sending.
Headers: X-Webhook-Event: campaign.completed, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”campaign.completed — a campaign finished handing its messages to the carrier.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Example generated
{ "event": "example", "occurred_at": "2026-04-15T12:00:00Z", "idempotency_key": "example", "campaignId": "example", "name": "example", "messagesSent": 1}Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
call.completed
Section titled “call.completed”A call was answered and has ended — inbound or outbound. From the call record, usually within about 15 minutes.
Headers: X-Webhook-Event: call.completed, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”call.completed — a call was answered and has ended. Inbound AND
outbound. An outbound call answered by the far end’s voicemail is sent
as call.completed.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Unique, opaque call ID.
Example
4f9c2a7e1b3d4c5e8a9b0c1d2e3f4a5bCalling number. Outbound — the caller ID number SIPSTACK presented (your number).
Example
+15555550123Called number.
Example
+15555550100answered = call.completed, missed = call.missed, unanswered = call.unanswered.
Raw call result, e.g. ANSWERED, NO ANSWER, BUSY, FAILED, CONGESTION.
Example
ANSWEREDTotal call length in seconds, including ringing.
Example
187Talk seconds after answer. 0 when not answered.
Example
172The SIPSTACK Nova PBX extension number on the call (digits only, never the full SIP endpoint name).
Outbound (call.completed, call.unanswered): the extension that placed the call, even when several extensions share one outbound caller ID number.
Inbound call.completed: the extension that answered. call.missed: always null.
null when SIPSTACK cannot attribute the call to a single extension — for example the number rings straight to an external destination with no Nova PBX extension involved, the call was answered by voicemail, an auto attendant or another non-extension destination, or (rarely) the phone system’s record was not available when the event was sent.
Treat as optional (string or null); never use it to identify a user across systems.
Example
101Your SIPSTACK number on the call. Inbound — the dialled number (to). Outbound — the caller ID number (from).
Example
+15555550100null when the call was never answered.
Same instant as occurred_at.
Answered — answeredAt minus startedAt. Unanswered — endedAt minus startedAt.
Example
15Carrier-supplied caller ID name (not a CNAM lookup). null when withheld or not supplied.
Example
JANE EXAMPLEFinal SIP response code; the carrier’s code when known.
Example
200Example
OKExample
{ "event": "call.completed", "callId": "4f9c2a7e1b3d4c5e8a9b0c1d2e3f4a5b", "from": "+15555550123", "to": "+15555550100", "direction": "inbound", "outcome": "answered", "disposition": "ANSWERED", "duration": 187, "billsec": 172, "extension": "102", "did": "+15555550100", "startedAt": "2026-11-20T14:58:12.000Z", "answeredAt": "2026-11-20T14:58:27.000Z", "endedAt": "2026-11-20T15:01:19.000Z", "ringSeconds": 15, "callerIdName": "JANE EXAMPLE", "sipCode": 200, "sipReason": "OK", "occurred_at": "2026-11-20T15:01:19.000Z", "idempotency_key": "call.completed:4f9c2a7e1b3d4c5e8a9b0c1d2e3f4a5b"}Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
call.missed
Section titled “call.missed”An inbound call ended without being answered. From the call record, usually within about 15 minutes.
Headers: X-Webhook-Event: call.missed, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”call.missed — an INBOUND call ended without being answered (no answer
or busy). A call a user declined sends nothing. Outbound calls never
send this event (see call.unanswered).
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Unique, opaque call ID.
Example
4f9c2a7e1b3d4c5e8a9b0c1d2e3f4a5bCalling number. Outbound — the caller ID number SIPSTACK presented (your number).
Example
+15555550123Called number.
Example
+15555550100answered = call.completed, missed = call.missed, unanswered = call.unanswered.
Raw call result, e.g. ANSWERED, NO ANSWER, BUSY, FAILED, CONGESTION.
Example
ANSWEREDTotal call length in seconds, including ringing.
Example
187Talk seconds after answer. 0 when not answered.
Example
172The SIPSTACK Nova PBX extension number on the call (digits only, never the full SIP endpoint name).
Outbound (call.completed, call.unanswered): the extension that placed the call, even when several extensions share one outbound caller ID number.
Inbound call.completed: the extension that answered. call.missed: always null.
null when SIPSTACK cannot attribute the call to a single extension — for example the number rings straight to an external destination with no Nova PBX extension involved, the call was answered by voicemail, an auto attendant or another non-extension destination, or (rarely) the phone system’s record was not available when the event was sent.
Treat as optional (string or null); never use it to identify a user across systems.
Example
101Your SIPSTACK number on the call. Inbound — the dialled number (to). Outbound — the caller ID number (from).
Example
+15555550100null when the call was never answered.
Same instant as occurred_at.
Answered — answeredAt minus startedAt. Unanswered — endedAt minus startedAt.
Example
15Carrier-supplied caller ID name (not a CNAM lookup). null when withheld or not supplied.
Example
JANE EXAMPLEFinal SIP response code; the carrier’s code when known.
Example
200Example
OKExample
{ "event": "call.missed", "callId": "1c2d3e4f5a6b47788990aabbccddeeff", "from": "+15555550145", "to": "+15555550100", "direction": "inbound", "outcome": "missed", "disposition": "NO ANSWER", "duration": 32, "billsec": 0, "extension": null, "did": "+15555550100", "startedAt": "2026-11-20T17:20:00.000Z", "answeredAt": null, "endedAt": "2026-11-20T17:20:32.000Z", "ringSeconds": 32, "callerIdName": "ACME PLUMBING", "sipCode": 480, "sipReason": "Temporarily Unavailable", "occurred_at": "2026-11-20T17:20:32.000Z", "idempotency_key": "call.missed:1c2d3e4f5a6b47788990aabbccddeeff"}Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
call.unanswered
Section titled “call.unanswered”An outbound call ended without connecting; see reason. From the call record, usually within about 15 minutes.
Headers: X-Webhook-Event: call.unanswered, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”call.unanswered — an OUTBOUND call ended without connecting.
reason comes from the carrier’s final SIP code when known (486/600 →
busy; 603 → declined; 480/408/487 → no_answer; any other 4xx/5xx/6xx or
a timeout → failed), else from disposition (BUSY → busy; NO ANSWER /
RINGNOANSWER / CANCEL → no_answer; anything else → failed). A caller
hanging up while it rings is no_answer.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Unique, opaque call ID.
Example
4f9c2a7e1b3d4c5e8a9b0c1d2e3f4a5bCalling number. Outbound — the caller ID number SIPSTACK presented (your number).
Example
+15555550123Called number.
Example
+15555550100answered = call.completed, missed = call.missed, unanswered = call.unanswered.
Raw call result, e.g. ANSWERED, NO ANSWER, BUSY, FAILED, CONGESTION.
Example
ANSWEREDTotal call length in seconds, including ringing.
Example
187Talk seconds after answer. 0 when not answered.
Example
172The SIPSTACK Nova PBX extension number on the call (digits only, never the full SIP endpoint name).
Outbound (call.completed, call.unanswered): the extension that placed the call, even when several extensions share one outbound caller ID number.
Inbound call.completed: the extension that answered. call.missed: always null.
null when SIPSTACK cannot attribute the call to a single extension — for example the number rings straight to an external destination with no Nova PBX extension involved, the call was answered by voicemail, an auto attendant or another non-extension destination, or (rarely) the phone system’s record was not available when the event was sent.
Treat as optional (string or null); never use it to identify a user across systems.
Example
101Your SIPSTACK number on the call. Inbound — the dialled number (to). Outbound — the caller ID number (from).
Example
+15555550100null when the call was never answered.
Same instant as occurred_at.
Answered — answeredAt minus startedAt. Unanswered — endedAt minus startedAt.
Example
15Carrier-supplied caller ID name (not a CNAM lookup). null when withheld or not supplied.
Example
JANE EXAMPLEFinal SIP response code; the carrier’s code when known.
Example
200Example
OKWhy the call did not connect.
Example
{ "event": "call.unanswered", "callId": "7e6d5c4b3a2948576655443322110000", "from": "+15555550100", "to": "+15555550177", "direction": "outbound", "outcome": "unanswered", "reason": "busy", "disposition": "BUSY", "duration": 6, "billsec": 0, "extension": "101", "did": "+15555550100", "startedAt": "2026-11-20T18:02:41.000Z", "answeredAt": null, "endedAt": "2026-11-20T18:02:47.000Z", "ringSeconds": 6, "callerIdName": null, "sipCode": 486, "sipReason": "Busy Here", "occurred_at": "2026-11-20T18:02:47.000Z", "idempotency_key": "call.unanswered:7e6d5c4b3a2948576655443322110000"}Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
call.inbound
Section titled “call.inbound”Real time — a call is arriving, before it is answered. Not yet available: subscribing returns 400 until real-time call events are enabled.
Headers: X-Webhook-Event: call.inbound, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”call.inbound, call.ringing, call.answered — real-time PBX call
events. Not yet available. Until SIPSTACK enables real-time call
events, creating or updating a webhook with call.inbound,
call.ringing, call.answered or call.hangup returns 400. Use
call.completed, call.missed and call.unanswered today.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Present only when known.
PBX channel name. Present only when known.
Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
call.ringing
Section titled “call.ringing”Real time — a call started ringing. Not yet available: subscribing returns 400 until real-time call events are enabled.
Headers: X-Webhook-Event: call.ringing, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”call.inbound, call.ringing, call.answered — real-time PBX call
events. Not yet available. Until SIPSTACK enables real-time call
events, creating or updating a webhook with call.inbound,
call.ringing, call.answered or call.hangup returns 400. Use
call.completed, call.missed and call.unanswered today.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Present only when known.
PBX channel name. Present only when known.
Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
call.answered
Section titled “call.answered”Real time — a call was answered. Not yet available: subscribing returns 400 until real-time call events are enabled.
Headers: X-Webhook-Event: call.answered, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”call.inbound, call.ringing, call.answered — real-time PBX call
events. Not yet available. Until SIPSTACK enables real-time call
events, creating or updating a webhook with call.inbound,
call.ringing, call.answered or call.hangup returns 400. Use
call.completed, call.missed and call.unanswered today.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Present only when known.
PBX channel name. Present only when known.
Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
call.hangup
Section titled “call.hangup”Real time — a call ended (every direction). Not yet available: subscribing returns 400 until real-time call events are enabled.
Headers: X-Webhook-Event: call.hangup, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”call.hangup — real-time end of a call, every direction including
internal. Not yet available — subscribing returns 400 until
real-time call events are enabled.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Present only when known.
PBX channel name. Present only when known.
declined when a user declined the call, otherwise null.
Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
aura.call.started
Section titled “aura.call.started”An Aura AI voice agent answered a call.
Headers: X-Webhook-Event: aura.call.started, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”aura.call.started — an Aura AI voice agent answered a call.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
aura.call.completed
Section titled “aura.call.completed”An Aura AI voice-agent call ended, with outcome and summary.
Headers: X-Webhook-Event: aura.call.completed, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”aura.call.completed — an Aura AI voice-agent call ended.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
object
Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
contact.opted_out
Section titled “contact.opted_out”A number was added to your SMS opt-out list. Rolling out.
Headers: X-Webhook-Event: contact.opted_out, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”contact.opted_out, contact.opted_in, contact.consent_changed.
Rolling out. Per number, not per contact. contact.opted_in adds
previous_opt_out_methods; contact.consent_changed adds the consent
fields.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Example
smsobject
contact.opted_in only.
contact.consent_changed only.
object
Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
contact.opted_in
Section titled “contact.opted_in”A number was removed from your SMS opt-out list. Rolling out.
Headers: X-Webhook-Event: contact.opted_in, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”contact.opted_out, contact.opted_in, contact.consent_changed.
Rolling out. Per number, not per contact. contact.opted_in adds
previous_opt_out_methods; contact.consent_changed adds the consent
fields.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Example
smsobject
contact.opted_in only.
contact.consent_changed only.
object
Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
contact.consent_changed
Section titled “contact.consent_changed”A contact’s SMS consent status or basis changed. Rolling out.
Headers: X-Webhook-Event: contact.consent_changed, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”contact.opted_out, contact.opted_in, contact.consent_changed.
Rolling out. Per number, not per contact. contact.opted_in adds
previous_opt_out_methods; contact.consent_changed adds the consent
fields.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Example
smsobject
contact.opted_in only.
contact.consent_changed only.
object
Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
chat.message.created
Section titled “chat.message.created”A message was posted in a public team chat channel.
Headers: X-Webhook-Event: chat.message.created, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”chat.message.created / .updated / .deleted — public team chat channels only.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Empty for chat.message.deleted.
Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
chat.message.updated
Section titled “chat.message.updated”A message in a public team chat channel was edited.
Headers: X-Webhook-Event: chat.message.updated, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”chat.message.created / .updated / .deleted — public team chat channels only.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Empty for chat.message.deleted.
Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
chat.message.deleted
Section titled “chat.message.deleted”A message in a public team chat channel was deleted.
Headers: X-Webhook-Event: chat.message.deleted, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”chat.message.created / .updated / .deleted — public team chat channels only.
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Empty for chat.message.deleted.
Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
sales.lead
Section titled “sales.lead”An Aura voice-agent flow captured a sales lead.
Headers: X-Webhook-Event: sales.lead, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”sales.lead — sent by a webhook node in an Aura voice-agent flow. The
top-level fields are the ones you defined in the flow (the Sales Lead
Qualifier template sends name, company, need, timeline,
contact), plus the system fields every flow event carries, which the
flow cannot override: source, idempotency_key, occurred_at, call.
object
<event>:<call id>:<node id>:<n>, where n counts passes through the node (new key on each pass; retries keep the same key). Also sent as X-Idempotency-Key.
Example
sales.lead:1732118400.5678:node_3:1The call that produced the lead.
object
Responses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
A test delivery you requested.
Headers: X-Webhook-Event: test, X-Sipstack-Timestamp: <unix seconds>, X-Sipstack-Signature: v1=<hex HMAC-SHA256 of "<timestamp>.<raw body>">, deprecated X-Webhook-Signature: sha256=<hex HMAC-SHA256 of the raw body> (90-day deprecation period), X-Idempotency-Key (when the body has idempotency_key), User-Agent: SIPSTACK-Webhook/1.0. Full reference: Webhooks.
Request Body required
Section titled “Request Body required ”test — sent on demand by POST /v2/portal/webhooks/{id}/test to that one endpoint only, whichever events it subscribes to. Each test carries a new idempotency_key (test:<endpoint id>:<random id>).
object
The event name. Same value as the X-Webhook-Event header.
When the event happened (UTC). For end-of-call events, the time the call ended.
Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.
Example
This is a test webhook deliveryResponses
Section titled “ Responses ”Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).
Responses
Section titled “ Responses ”Endpoint created — data.secret is shown once.
object
The created endpoint — a compact subset of
ApiWebhookSummary (the RETURNING clause), plus the
one-time secret. failure_count, last_triggered_at, and
updated_at are NOT included on create; read them back from
GET /api/v2/webhooks.
object
HMAC signing secret — shown only here.
How to verify webhook deliveries — echoed by the API-key webhook endpoints.
object
The signature header to verify.
The header that carries the Unix-seconds timestamp included in the signed payload. New on every attempt.
How the signature is built. Reject the delivery if either header is missing, if the timestamp is more than toleranceSeconds from now, or if the signature does not match (constant-time compare).
The largest allowed difference, in seconds, between the timestamp and your server’s clock.
Deprecated body-only signature header. Still sent during a 90-day deprecation period, then removed. Endpoint owners are notified before removal.
How the deprecated legacy signature is built. It has no timestamp and gives no replay protection.
Example
{ "message": "Webhook created. Store the secret now — it will not be shown again.", "data": { "url": "https://example.com/sipstack-webhook", "events": [ "message.delivered", "message.failed" ] }, "signature": { "header": "X-Sipstack-Signature", "timestampHeader": "X-Sipstack-Timestamp", "format": "v1=<hex-hmac-sha256 of \"<timestamp>.<raw request body>\", keyed by the endpoint secret>", "toleranceSeconds": 300, "legacyHeader": "X-Webhook-Signature", "legacyFormat": "sha256=<hex-hmac-sha256 of the raw request body, keyed by the endpoint secret>" }}Missing/invalid URL (including an SSRF-rejected host) or empty events array.
Inline error shape used by the messaging API and management endpoints.
object
Example
{ "success": false, "error": "Recipient phone number (to) is required"}Missing or invalid API key.
Inline error shape used by the messaging API and management endpoints.
object
Example
{ "success": false, "error": "Recipient phone number (to) is required"}Organization not provisioned for webhooks.
Inline error shape used by the messaging API and management endpoints.
object
Example
{ "success": false, "error": "Recipient phone number (to) is required"}Internal error.
Inline error shape used by the messaging API and management endpoints.
object
Example
{ "success": false, "error": "Recipient phone number (to) is required"}