Skip to content

Create a webhook endpoint (API key)

POST
/api/v2/webhooks
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" ] }'

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.

Media type application/json
object
url
required
string format: uri
Example
https://example.com/sipstack-webhook
events
required
Array<string>
Example
[
"message.delivered",
"message.failed"
]
POST
{$request.body#/url}

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.

Media type application/json

message.sent, message.delivered, message.failed — carrier status change on an outbound message.

object
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
messageId
required
One of:
integer
status
required
string
Allowed values: sent delivered failed undelivered
to
required
string
from
required
string
campaignId
required
One of:
integer
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"
}

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

message.sent, message.delivered, message.failed — carrier status change on an outbound message.

object
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
messageId
required
One of:
integer
status
required
string
Allowed values: sent delivered failed undelivered
to
required
string
from
required
string
campaignId
required
One of:
integer
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"
}

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

message.sent, message.delivered, message.failed — carrier status change on an outbound message.

object
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
messageId
required
One of:
integer
status
required
string
Allowed values: sent delivered failed undelivered
to
required
string
from
required
string
campaignId
required
One of:
integer
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"
}

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

message.received — an inbound SMS/MMS arrived on one of your numbers.

object
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
messageId
required
One of:
integer
from
required
string
to
required
string
body
required
string
aura_capture

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.

boolean
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
}

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

campaign.completed — a campaign finished handing its messages to the carrier.

object
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
campaignId
required
string
name
required
string
messagesSent
required
integer
Example generated
{
"event": "example",
"occurred_at": "2026-04-15T12:00:00Z",
"idempotency_key": "example",
"campaignId": "example",
"name": "example",
"messagesSent": 1
}

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

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
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
callId
required

Unique, opaque call ID.

string
Example
4f9c2a7e1b3d4c5e8a9b0c1d2e3f4a5b
from
required

Calling number. Outbound — the caller ID number SIPSTACK presented (your number).

string
nullable
Example
+15555550123
to
required

Called number.

string
nullable
Example
+15555550100
direction
required
string
Allowed values: inbound outbound
outcome
required

answered = call.completed, missed = call.missed, unanswered = call.unanswered.

string
Allowed values: answered missed unanswered
disposition
required

Raw call result, e.g. ANSWERED, NO ANSWER, BUSY, FAILED, CONGESTION.

string
nullable
Example
ANSWERED
duration
required

Total call length in seconds, including ringing.

integer
nullable
Example
187
billsec
required

Talk seconds after answer. 0 when not answered.

integer
nullable
Example
172
extension
required

The 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.

string
nullable
Example
101
did
required

Your SIPSTACK number on the call. Inbound — the dialled number (to). Outbound — the caller ID number (from).

string
nullable
Example
+15555550100
startedAt
required
string format: date-time
nullable
answeredAt
required

null when the call was never answered.

string format: date-time
nullable
endedAt
required

Same instant as occurred_at.

string format: date-time
nullable
ringSeconds
required

Answered — answeredAt minus startedAt. Unanswered — endedAt minus startedAt.

integer
nullable
Example
15
callerIdName
required

Carrier-supplied caller ID name (not a CNAM lookup). null when withheld or not supplied.

string
nullable
Example
JANE EXAMPLE
sipCode
required

Final SIP response code; the carrier’s code when known.

integer
nullable
Example
200
sipReason
required
string
nullable
Example
OK
event
string
Allowed values: call.completed
outcome
string
Allowed values: answered
Example
{
"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"
}

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

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
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
callId
required

Unique, opaque call ID.

string
Example
4f9c2a7e1b3d4c5e8a9b0c1d2e3f4a5b
from
required

Calling number. Outbound — the caller ID number SIPSTACK presented (your number).

string
nullable
Example
+15555550123
to
required

Called number.

string
nullable
Example
+15555550100
direction
required
string
Allowed values: inbound outbound
outcome
required

answered = call.completed, missed = call.missed, unanswered = call.unanswered.

string
Allowed values: answered missed unanswered
disposition
required

Raw call result, e.g. ANSWERED, NO ANSWER, BUSY, FAILED, CONGESTION.

string
nullable
Example
ANSWERED
duration
required

Total call length in seconds, including ringing.

integer
nullable
Example
187
billsec
required

Talk seconds after answer. 0 when not answered.

integer
nullable
Example
172
extension
required

The 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.

string
nullable
Example
101
did
required

Your SIPSTACK number on the call. Inbound — the dialled number (to). Outbound — the caller ID number (from).

string
nullable
Example
+15555550100
startedAt
required
string format: date-time
nullable
answeredAt
required

null when the call was never answered.

string format: date-time
nullable
endedAt
required

Same instant as occurred_at.

string format: date-time
nullable
ringSeconds
required

Answered — answeredAt minus startedAt. Unanswered — endedAt minus startedAt.

integer
nullable
Example
15
callerIdName
required

Carrier-supplied caller ID name (not a CNAM lookup). null when withheld or not supplied.

string
nullable
Example
JANE EXAMPLE
sipCode
required

Final SIP response code; the carrier’s code when known.

integer
nullable
Example
200
sipReason
required
string
nullable
Example
OK
event
string
Allowed values: call.missed
direction
string
Allowed values: inbound
outcome
string
Allowed values: missed
Example
{
"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"
}

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

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
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
callId
required

Unique, opaque call ID.

string
Example
4f9c2a7e1b3d4c5e8a9b0c1d2e3f4a5b
from
required

Calling number. Outbound — the caller ID number SIPSTACK presented (your number).

string
nullable
Example
+15555550123
to
required

Called number.

string
nullable
Example
+15555550100
direction
required
string
Allowed values: inbound outbound
outcome
required

answered = call.completed, missed = call.missed, unanswered = call.unanswered.

string
Allowed values: answered missed unanswered
disposition
required

Raw call result, e.g. ANSWERED, NO ANSWER, BUSY, FAILED, CONGESTION.

string
nullable
Example
ANSWERED
duration
required

Total call length in seconds, including ringing.

integer
nullable
Example
187
billsec
required

Talk seconds after answer. 0 when not answered.

integer
nullable
Example
172
extension
required

The 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.

string
nullable
Example
101
did
required

Your SIPSTACK number on the call. Inbound — the dialled number (to). Outbound — the caller ID number (from).

string
nullable
Example
+15555550100
startedAt
required
string format: date-time
nullable
answeredAt
required

null when the call was never answered.

string format: date-time
nullable
endedAt
required

Same instant as occurred_at.

string format: date-time
nullable
ringSeconds
required

Answered — answeredAt minus startedAt. Unanswered — endedAt minus startedAt.

integer
nullable
Example
15
callerIdName
required

Carrier-supplied caller ID name (not a CNAM lookup). null when withheld or not supplied.

string
nullable
Example
JANE EXAMPLE
sipCode
required

Final SIP response code; the carrier’s code when known.

integer
nullable
Example
200
sipReason
required
string
nullable
Example
OK
event
string
Allowed values: call.unanswered
direction
string
Allowed values: outbound
outcome
string
Allowed values: unanswered
reason
required

Why the call did not connect.

string
Allowed values: no_answer busy failed declined
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"
}

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

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
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
callId
required
string
from
required
string
nullable
to
required
string
nullable
direction
required
string
nullable
Allowed values: inbound outbound internal
extension

Present only when known.

string
channel

PBX channel name. Present only when known.

string

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

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
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
callId
required
string
from
required
string
nullable
to
required
string
nullable
direction
required
string
nullable
Allowed values: inbound outbound internal
extension

Present only when known.

string
channel

PBX channel name. Present only when known.

string

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

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
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
callId
required
string
from
required
string
nullable
to
required
string
nullable
direction
required
string
nullable
Allowed values: inbound outbound internal
extension

Present only when known.

string
channel

PBX channel name. Present only when known.

string

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

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
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
callId
required
string
from
required
string
nullable
to
required
string
nullable
direction
required
string
nullable
Allowed values: inbound outbound internal
extension

Present only when known.

string
channel

PBX channel name. Present only when known.

string
answered
required
boolean
duration
required
integer
nullable
billsec
required
integer
nullable
disposition
required
string
nullable
outcome
required

declined when a user declined the call, otherwise null.

string
nullable
Allowed values: declined

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

aura.call.started — an Aura AI voice agent answered a call.

object
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
callId
required
string
agentId
required
string
agentName
required
string
from
required
string
to
required
string
direction
required
string
Allowed values: inbound outbound
startedAt
required
string format: date-time

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

aura.call.completed — an Aura AI voice-agent call ended.

object
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
callId
required
string
agentId
required
string
agentName
required
string
from
required
string
to
required
string
direction
required
string
Allowed values: inbound outbound
billsec
required
integer
outcome
required
string
Allowed values: completed transferred hangup caller_hangup error
transferTarget
required
string
nullable
summary
required
string
nullable
sentiment
required
string
nullable
extractedFields
required
object
key
additional properties
any

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

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
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
event_id
required
string format: uuid
phone_number
required
string
contact_ids
required
Array<string>
method
required
string
Example
sms
actor
required
object
type
string
Allowed values: recipient user api_key system integration
provider
string
previous_opt_out_methods

contact.opted_in only.

Array<string>
consent_status

contact.consent_changed only.

object
from
string
to
string
consent_method
string
nullable
consent_obtained_at
string format: date-time
nullable
implied_consent_basis
string
implied_consent_basis_date
string
channel
string
nullable

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

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
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
event_id
required
string format: uuid
phone_number
required
string
contact_ids
required
Array<string>
method
required
string
Example
sms
actor
required
object
type
string
Allowed values: recipient user api_key system integration
provider
string
previous_opt_out_methods

contact.opted_in only.

Array<string>
consent_status

contact.consent_changed only.

object
from
string
to
string
consent_method
string
nullable
consent_obtained_at
string format: date-time
nullable
implied_consent_basis
string
implied_consent_basis_date
string
channel
string
nullable

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

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
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
event_id
required
string format: uuid
phone_number
required
string
contact_ids
required
Array<string>
method
required
string
Example
sms
actor
required
object
type
string
Allowed values: recipient user api_key system integration
provider
string
previous_opt_out_methods

contact.opted_in only.

Array<string>
consent_status

contact.consent_changed only.

object
from
string
to
string
consent_method
string
nullable
consent_obtained_at
string format: date-time
nullable
implied_consent_basis
string
implied_consent_basis_date
string
channel
string
nullable

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

chat.message.created / .updated / .deleted — public team chat channels only.

object
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
message_id
required
string format: uuid
channel_id
required
string format: uuid
channel_name
required
string
nullable
sender_kind
required
string
Allowed values: user integration system
sender_user_id
required
string
nullable
sender_name
required
string
body
required

Empty for chat.message.deleted.

string
parent_message_id
required
string
nullable
created_at
required
string format: date-time
edited_at
required
string format: date-time
nullable

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

chat.message.created / .updated / .deleted — public team chat channels only.

object
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
message_id
required
string format: uuid
channel_id
required
string format: uuid
channel_name
required
string
nullable
sender_kind
required
string
Allowed values: user integration system
sender_user_id
required
string
nullable
sender_name
required
string
body
required

Empty for chat.message.deleted.

string
parent_message_id
required
string
nullable
created_at
required
string format: date-time
edited_at
required
string format: date-time
nullable

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

chat.message.created / .updated / .deleted — public team chat channels only.

object
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
message_id
required
string format: uuid
channel_id
required
string format: uuid
channel_name
required
string
nullable
sender_kind
required
string
Allowed values: user integration system
sender_user_id
required
string
nullable
sender_name
required
string
body
required

Empty for chat.message.deleted.

string
parent_message_id
required
string
nullable
created_at
required
string format: date-time
edited_at
required
string format: date-time
nullable

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

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
required
string
Allowed values: sales.lead
source
required
string
Allowed values: aura_flow
idempotency_key
required

<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.

string
Example
sales.lead:1732118400.5678:node_3:1
occurred_at
required
string format: date-time
call
required

The call that produced the lead.

object
id
string
from
string
to
string
agentId
string
key
additional properties
any
key
additional properties
any

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

POST
{$request.body#/url}

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.

Media type application/json

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
event
required

The event name. Same value as the X-Webhook-Event header.

string
occurred_at
required

When the event happened (UTC). For end-of-call events, the time the call ended.

string format: date-time
idempotency_key
required

Stable de-duplication key, <event>:<id>. Also sent as the X-Idempotency-Key header. Identical on every retry.

string
message
required
string
Example
This is a test webhook delivery

Any 2xx within 10 seconds acknowledges the delivery. Anything else is retried (up to 3 attempts in total).

Endpoint created — data.secret is shown once.

Media type application/json
object
success
boolean
message
string
data

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
id
string format: uuid
uuid
string format: uuid
url
string
events
Array<string>
is_active
boolean
created_at
string format: date-time
secret

HMAC signing secret — shown only here.

string
signature

How to verify webhook deliveries — echoed by the API-key webhook endpoints.

object
header

The signature header to verify.

string
timestampHeader

The header that carries the Unix-seconds timestamp included in the signed payload. New on every attempt.

string
format

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).

string
toleranceSeconds

The largest allowed difference, in seconds, between the timestamp and your server’s clock.

integer
legacyHeader

Deprecated body-only signature header. Still sent during a 90-day deprecation period, then removed. Endpoint owners are notified before removal.

string
legacyFormat

How the deprecated legacy signature is built. It has no timestamp and gives no replay protection.

string
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.

Media type application/json

Inline error shape used by the messaging API and management endpoints.

object
success
boolean
error
string
Example
{
"success": false,
"error": "Recipient phone number (to) is required"
}

Missing or invalid API key.

Media type application/json

Inline error shape used by the messaging API and management endpoints.

object
success
boolean
error
string
Example
{
"success": false,
"error": "Recipient phone number (to) is required"
}

Organization not provisioned for webhooks.

Media type application/json

Inline error shape used by the messaging API and management endpoints.

object
success
boolean
error
string
Example
{
"success": false,
"error": "Recipient phone number (to) is required"
}

Internal error.

Media type application/json

Inline error shape used by the messaging API and management endpoints.

object
success
boolean
error
string
Example
{
"success": false,
"error": "Recipient phone number (to) is required"
}