Outbound API

Outbound Calls

Originate, retrieve, list, and cancel outbound voice calls.

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

POST/api/v1/outbound/calls
Places an outbound call. Returns 202 once CallNode accepts the originate command. The call lifecycle is then visible via GET on the same callId, or via the optional status webhook.

Request body

FieldTypeRequiredDescription
tostringRequiredE.164 (plus sign followed by 7–15 digits), a sip: URI, or — with sipTrunkId — an E.164 number or extension. See SIP destinations.
fromstring (E.164)RequiredMust 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.
sipTrunkIdstringOptionalID of a saved SIP trunk (Dashboard → SIP Trunks). Routes the call to the trunk's host. Mutually exclusive with a sip: to.
srtpbooleanOptionalEncrypt 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.
webhookUrlstringOptionalOverrides 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.
agentobjectOptionalLet 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.
webhookAuthobjectOptionalAuth for the n8n webhook. type ∈ none|basic|bearer|header.
metadataobjectOptionalOpaque JSON, echoed back on status webhooks. ≤ 4 KB.
statusWebhookUrlstringOptionalURL we POST lifecycle events to. See Status Webhooks. Must be a public address, like webhookUrl.
maxDurationSecsintegerOptionalHard call duration cap. Default 1800. Range 5–7200.
tcpaOverridebooleanOptionalBypass 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

JSON
{
  "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

JSON
{
  "callId":     "cn-ob-7f3a18a2-9b40-4e1e-9c4e-1b8b9b8e6b3a",
  "status":     "originating",
  "createdAt":  "2026-05-24T17:31:08.421Z"
}
When does 202 fire?
We return 202 only afterCallNode accepts the originate command. If the call engine is unhealthy, you'll receive 503 instead. See Errors.

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

JSON
{
  "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.

JSON
{
  "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.

JSON
{
  "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.

Allow our source IPs
Your SIP endpoint must accept traffic from 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

GET/api/v1/outbound/calls/:callId

Response

JSON
{
  "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

StatusTerminalDescription
queuednoReserved for future scheduled-call work. Not used in v1.
originatingnoCallNode accepted the originate command; dialing the carrier.
ringingnoCarrier accepted; called party's phone is ringing.
answerednoCalled party picked up; conversation in progress.
completedyesCall ended normally.
failedyesCall did not complete. See failureCode for the reason.
canceledyesCaller invoked DELETE before the called party answered.

List calls

GET/api/v1/outbound/calls

Query parameters

ParameterTypeRequiredNotes
statusstringOptionalFilter by lifecycle status. May be repeated to OR multiple values (e.g. ?status=answered&status=completed).
limitintegerOptionalDefault 50, max 200.
cursorstringOptionalFrom a prior response's nextCursor. Cursor-based pagination.
Server-side filtering
All filtering is done server-side. Don't request a large page and filter on the client — use the status query parameter to push the work to the database, which keeps the response small and uses our indexes.

Hang up a call

DELETE/api/v1/outbound/calls/:callId
Cancels an in-progress call. Returns 202 immediately; the call channel is torn down within ~1 second.

Cancellation is idempotent. Calling DELETE on an already-terminal call (completed, failed, canceled) returns 202 with the existing status — no error.

Transfer a live call

POST/api/v1/calls/:callId/transfer
Moves the caller on an in-progress call to another destination, hanging up whatever they were connected to.

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

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

Works even when the webhook doesn't
A number with a SIP delivery address bridges callers straight to your endpoint without running the conversational webhook, so returning 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_call and send_message on 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: true on 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.

ClassExamplesDefault
StandardOrdinary domestic and most international numbersAllowed
Premium rateNANP 900, 976Blocked
High-cost internationalSatellite ranges, and Caribbean +1 area codes such as 809, 242, 876Blocked

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.

Why these are off by default
Those Caribbean +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

StatusMeaning
200Idempotency replay. Original response returned.
202Accepted. Originate queued; cancel acknowledged.
400Request body or headers malformed.
401Authentication failed (invalid signature, clock skew, revoked key).
402Wallet balance below the $0.10 pre-auth floor.
403From-number not owned, TCPA window violation, or scope denied.
404Call not found.
409Concurrency limit reached for this user.
429Rate limit exceeded, or the redial cap: 25 attempts to one number per week, Monday to Sunday UTC (redial_cap, resets Monday 00:00 UTC).
503Our 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.