Want an AI assistant such as Claude or ChatGPT to place the call for you? The CallNode MCP server places it through this same API, under the same rules.
Originate a call
/api/v1/outbound/callsRequest body
| Field | Type | Required | Description |
|---|---|---|---|
to | string | Required | E.164 (plus sign followed by 7–15 digits), a sip: URI, or — with sipTrunkId — an E.164 number or extension. See SIP destinations. |
from | string (E.164) | Required | Must be a DID owned by your account with status active, and for a PSTN destination it must be verified as a caller ID (Numbers, open the number, Caller ID card; verification is automatic and takes about a minute) or the call answers 403 caller_id_not_verified. Required for every destination form — it becomes the caller ID presented to the called party or your SIP endpoint. |
sipTrunkId | string | Optional | ID of a saved SIP trunk (Dashboard → SIP Trunks). Routes the call to the trunk's host. Mutually exclusive with a sip: to. |
srtp | boolean | Optional | Encrypt the audio (SRTP) of a call to a sip: URI or a saved trunk. Needs TLS: ;transport=tls on the URI, or a trunk reached over TLS. See Encrypted calls. |
webhookUrl | string | Optional | Overrides the n8n webhook stored on the from phone number. Must be a public http:// or https:// address: a loopback, private or internal address is refused with 400 blocked_destination. |
agent | object | Optional | Let the CallNode voice agent run the conversation instead of a webhook: { "instructions": "..." } (1–2000 characters, what to say or ask), optional maxCallSecs. The agent introduces itself as an AI assistant calling on behalf of your business and follows the instructions; billed per started minute at the AI receptionist rate for the agent's voice tier, on top of the carrier minute (rates on the pricing page; the voice is chosen under Dashboard → MCP Server → Outbound voice agent). The summary and transcript are stored with the call. Needs funds for at least one minute, else 402 agent_unfunded. |
webhookAuth | object | Optional | Auth for the n8n webhook. type ∈ none|basic|bearer|header. |
metadata | object | Optional | Opaque JSON, echoed back on status webhooks. ≤ 4 KB. |
statusWebhookUrl | string | Optional | URL we POST lifecycle events to. See Status Webhooks. Must be a public address, like webhookUrl. |
maxDurationSecs | integer | Optional | Hard call duration cap. Default 1800. Range 5–7200. |
tcpaOverride | boolean | Optional | Bypass the 8a–9p called-party-local-time check (NPA-NXX → IANA timezone lookup, DST-aware). Audited via the [TCPA] log line. Use only for transactional / relationship calls. Not needed for numbers in your Phone Book. |
Example request body
{
"to": "+16135551234",
"from": "+15145550199",
"webhookUrl": "https://yourcrm.example.com/voice/n8n",
"webhookAuth": {
"type": "header",
"headerName": "X-API-Key",
"value": "your-n8n-secret"
},
"metadata": { "leadId": "lead_abc123" },
"statusWebhookUrl": "https://yourcrm.example.com/voice/events",
"maxDurationSecs": 600,
"tcpaOverride": false
}Success response — 202 Accepted
{
"callId": "cn-ob-7f3a18a2-9b40-4e1e-9c4e-1b8b9b8e6b3a",
"status": "originating",
"createdAt": "2026-05-24T17:31:08.421Z"
}Idempotency replay — 200 OK
Reusing an X-Idempotency-Keywithin 5 minutes returns 200 (not 202) with the original call's current state and idempotencyReplay: true. See Authentication → Idempotency.
SIP destinations
Besides dialing the phone network, an outbound call can be delivered directly to your own SIP endpoint — a PBX, an SBC, or your own carrier (BYOC). Two additional request forms enable this; all three forms are mutually exclusive. See SIP Trunking for the full guide covering egress, ingress, and BYOC inbound delivery.
Direct SIP URI
Pass a sip: URI as to. Grammar: sip:user@host[:port][;transport=udp|tcp|tls] (transport defaults to udp; the port defaults to 5060, or to 5061 with TLS).
{
"to": "sip:agent@pbx.example.com:5060;transport=udp",
"from": "+15145550199",
"webhookUrl": "https://yourcrm.example.com/voice/n8n"
}The host must be a public address. A hostname is looked up each time a call is placed: every address the name has at that moment must be public, and it needs at least one IPv4 address. A host that points at a private or internal address, or a name that does not resolve, is refused with 400 blocked_destination and nothing is dialled. A redirect answered by your endpoint (a SIP 3xx response such as 302 Moved Temporarily) is not followed: the call ends as failed, so give us the address that takes the call. The same applies to a saved trunk with a fixed address.
Encrypted calls: TLS and SRTP
Add ;transport=tls to the URI and the call is set up over TLS. To encrypt the audio as well, send "srtp": true. The call then offers SRTP only, with SDES key exchange (AES_CM_128_HMAC_SHA1_80 or AES_CM_128_HMAC_SHA1_32), and does not fall back to plain RTP: an endpoint that cannot answer SRTP refuses the call rather than connecting it unencrypted, and the call ends as failed with endpoint_rejected.
{
"to": "sip:agent@pbx.example.com;transport=tls",
"from": "+15145550199",
"srtp": true,
"webhookUrl": "https://yourcrm.example.com/voice/n8n"
}srtp is accepted only on a TLS destination, because SDES carries the media keys inside the call setup and the setup has to be encrypted for that to mean anything. On a UDP or TCP address, on a trunk that is not reached over TLS, or on a call to a phone number, the request is refused with 400 invalid_request. Without srtp, a TLS call encrypts the signalling and carries plain RTP audio.
With a saved trunk, send sipTrunkId and "srtp": true together. A registration trunk is always reached over TLS; a trunk with a fixed address needs its transport set to TLS first. A registration trunk with Encrypt the audio switched on does not need the field: every call you place to it offers SRTP only (see encrypted audio on a registration trunk).
Saved trunk (BYOC)
Create a trunk under Dashboard → SIP Trunks, then pass its ID as sipTrunkId. to is an E.164 number (terminated by your carrier) or an extension string your host understands.
{
"to": "+16135551234",
"sipTrunkId": "cmb1xk2p40001abcd1234wxyz",
"from": "+15145550199",
"webhookUrl": "https://yourcrm.example.com/voice/n8n"
}In every form, frommust be a CallNode number you own — it is the caller ID your SIP endpoint sees. Compliance gates: account verification applies to all forms; do-not-call suppression and the TCPA calling-hours window apply whenever to is E.164 (including BYOC), except that a number in your Phone Book skips the calling-hours window. A sip:URI or extension has no phone-number prefix to derive a timezone from, so the window check does not apply — the same allowed-by-design posture used for unknown timezones.
Billing: SIP destinations bill at your plan's SIP egress rate instead of the standard per-minute rate, and do not draw included minutes. Calls to SIP destinations report sipTrunkId and sipUri on status responses, and may fail with busy, no_answer, invalid_destination, endpoint_unreachable, or endpoint_rejected — call.failed then also carries the raw cause as sipCause. There is no fallback to the phone network when an endpoint rejects.
198.27.122.194 and 192.95.44.47 — allow both addresses on your SIP server/PBX/firewall; a call may leave from either switch. Audio is G.711 (PCMU/PCMA) at 8 kHz; DTMF is RFC 2833.Get call status
/api/v1/outbound/calls/:callIdResponse
{
"callId": "cn-ob-7f3a...",
"status": "completed",
"from": "+15145550199",
"to": "+16135551234",
"createdAt": "2026-05-24T17:31:08.421Z",
"originatedAt": "2026-05-24T17:31:08.812Z",
"answeredAt": "2026-05-24T17:31:14.105Z",
"endedAt": "2026-05-24T17:32:48.992Z",
"durationSecs": 94,
"costUsd": "0.04",
"failureCode": null,
"sipTrunkId": null,
"sipUri": null,
"phoneBookExempt": false,
"metadata": { "leadId": "lead_abc123" }
}sipTrunkId and sipUri are null for regular phone-network calls. For SIP destinations, sipUri holds the normalized URI that was dialed and sipTrunkId is set when a saved trunk was used. phoneBookExempt is true when the call was placed outside the calling-hours window to a number in your Phone Book.
Lifecycle states
| Status | Terminal | Description |
|---|---|---|
queued | no | Reserved for future scheduled-call work. Not used in v1. |
originating | no | CallNode accepted the originate command; dialing the carrier. |
ringing | no | Carrier accepted; called party's phone is ringing. |
answered | no | Called party picked up; conversation in progress. |
completed | yes | Call ended normally. |
failed | yes | Call did not complete. See failureCode for the reason. |
canceled | yes | Caller invoked DELETE before the called party answered. |
List calls
/api/v1/outbound/callsQuery parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
status | string | Optional | Filter by lifecycle status. May be repeated to OR multiple values (e.g. ?status=answered&status=completed). |
limit | integer | Optional | Default 50, max 200. |
cursor | string | Optional | From a prior response's nextCursor. Cursor-based pagination. |
status query parameter to push the work to the database, which keeps the response small and uses our indexes.Hang up a call
/api/v1/outbound/calls/:callIdCancellation is idempotent. Calling DELETE on an already-terminal call (completed, failed, canceled) returns 202 with the existing status — no error.
Transfer a live call
/api/v1/calls/:callId/transferUse callIdfrom the call the caller is on — the same id CallNode sends you in the webhook and stream query string. On a call that is already bridged to your own endpoint, this is the caller's leg, not the leg your endpoint sees.
POST /api/v1/calls/{callId}/transfer
{
"destination": "+16135551234"
}
// 202 Accepted
{
"callId": "1860838d-e3bb-4baf-aa22-59c7cb784ab9",
"destination": "+16135551234",
"status": "transferring"
}destination takes an E.164 number or a sip: URI pointing at your own endpoint. A 202means accepted, not yet connected — the bridge follows immediately.
transfer: truefrom a webhook is not available on those calls. This endpoint is how you move that caller — the caller stays connected while the previous leg is torn down.Transfers originate a new leg on your behalf, so they clear the same checks as placing a call: business verification, do-not-call/suppression, and the destination-class guard below. A call record and usage record are written for the transferred leg, so it appears in your history and billing. If a check blocks the transfer the caller is returned to the agent rather than hung up, so it can take a message.
Caller ID authentication (STIR/SHAKEN)
Calls placed through this API are currently delivered without an attestation level: CallNode holds no STIR/SHAKEN certificate, and the carrier that hands the call to the public network today does not attest our traffic. A-level attestation on your account's numbers returns when our primary carrier's outbound service is restored, which is gated on the FCC's reinstatement of our Robocall Mitigation Database registration. Plan answer-rate expectations accordingly, and see the robocall mitigation page for the full statement. The changelog will carry the update when this changes.
Calling hours and your Phone Book
A call to a phone number is refused with 403 tcpa_window_violationwhen it is outside 8 AM–9 PM at the called party's local time, worked out from the number's area code and exchange. For a transactional or existing-relationship call, pass tcpaOverride: true with a tcpaOverrideReason; the reason is recorded against the call.
For your own lines (your office, your home, a family member) add the number once under Dashboard → Phone Book instead. You certify that you own the line or are authorized to call it at any hour, and from then on calls and texts to it are not held to the window and need no override. A Phone Book holds up to 10 numbers. Landlines and international numbers qualify: the certification takes the place of a text opt-in, which a landline could never send.
- It applies to this API, to
place_callandsend_messageon the MCP server, and to the messaging API. - It changes nothing else. Do-not-call lists (
422 dnc_blocked), STOP replies, business verification, destination classes and your concurrency limit all still apply. - A call that went out under the exemption shows
phoneBookExempt: trueon Get call status. - Adding numbers needs a verified account. Every addition and removal is recorded with the wording you certified.
- An assistant connected through MCP can read your Phone Book, call or text an entry by its name (looked up at that moment), remove a number and prepare a new one, but never add one: it gives you a link to the filled-in form, and you certify the number yourself.
Destination classes
Some destination ranges are disabled by default on every account and enabled on request. This applies to both placing calls and transferring them.
| Class | Examples | Default |
|---|---|---|
| Standard | Ordinary domestic and most international numbers | Allowed |
| Premium rate | NANP 900, 976 | Blocked |
| High-cost international | Satellite ranges, and Caribbean +1 area codes such as 809, 242, 876 | Blocked |
A blocked destination returns 403 destination_not_enabled. If your business genuinely calls one of these ranges, contact support and we'll enable it on your account.
+1 codes look domestic but bill like international, which is what makes them a long-standing target for toll fraud on any calling API. Leaving them off by default means a leaked API key cannot run up charges on them.HTTP response codes
| Status | Meaning |
|---|---|
| 200 | Idempotency replay. Original response returned. |
| 202 | Accepted. Originate queued; cancel acknowledged. |
| 400 | Request body or headers malformed. |
| 401 | Authentication failed (invalid signature, clock skew, revoked key). |
| 402 | Wallet balance below the $0.10 pre-auth floor. |
| 403 | From-number not owned, TCPA window violation, or scope denied. |
| 404 | Call not found. |
| 409 | Concurrency limit reached for this user. |
| 429 | Rate limit exceeded, or the redial cap: 25 attempts to one number per week, Monday to Sunday UTC (redial_cap, resets Monday 00:00 UTC). |
| 503 | Our call engine is temporarily unavailable. Retry after the period in the Retry-After header. |
For the complete error code enum and remediation guidance, see Errors.