Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/callnode-io:callnode-io-outbound-calls-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Callnode Io Outbound Calls API
version: 1.0.0
description: 'Operations tagged Outbound Calls across 2 of this provider''s published API definitions: callnode-openapi.yaml, callnode-io-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.callnode.io
description: Production
security:
- ApiKeyAuth: []
TimestampAuth: []
SignatureAuth: []
tags:
- name: Outbound Calls
description: Originate, retrieve, list, and cancel outbound voice calls.
paths:
/api/v1/outbound/calls:
post:
tags:
- Outbound Calls
summary: Originate a call
description: '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.
The destination takes one of three mutually exclusive forms:
1. **PSTN** — `to` is E.164; the call is completed over the phone network.
2. **Direct SIP URI** — `to` is `sip:user@host[:port][;transport=udp|tcp]`;
the call is delivered straight to your SIP endpoint.
3. **Saved trunk (BYOC)** — `sipTrunkId` selects a trunk created in the
dashboard, and `to` is an E.164 number (terminated by your carrier) or an
extension your host understands.
In every form `from` must be a CallNode number you own — it becomes the
caller ID presented to the called party or your SIP endpoint. SIP
destinations bill at your plan''s SIP egress rate and must accept traffic
from 198.27.122.194 or 192.95.44.47 (audio G.711 PCMU/PCMA at 8 kHz, DTMF RFC 2833).'
operationId: originateCall
parameters:
- $ref: '#/components/parameters/IdempotencyKey'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OriginateRequest'
examples:
pstn:
summary: PSTN destination (E.164)
value:
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
sipUri:
summary: Direct SIP URI destination
value:
to: sip:agent@pbx.example.com:5060;transport=udp
from: '+15145550199'
webhookUrl: https://yourcrm.example.com/voice/n8n
statusWebhookUrl: https://yourcrm.example.com/voice/events
byocTrunk:
summary: Saved trunk (BYOC termination)
value:
to: '+16135551234'
sipTrunkId: cmb1xk2p40001abcd1234wxyz
from: '+15145550199'
webhookUrl: https://yourcrm.example.com/voice/n8n
statusWebhookUrl: https://yourcrm.example.com/voice/events
responses:
'202':
description: Originate command accepted.
content:
application/json:
schema:
$ref: '#/components/schemas/OriginateResponse'
'400':
description: 'Malformed request or failed validation. SIP-destination codes:
`sip_egress_disabled` (SIP destinations not enabled for this account),
`invalid_sip_uri` (`to` starts with `sip:` but does not parse),
`invalid_request` (`sipTrunkId` together with a `sip:` `to` — the forms
are mutually exclusive), and `blocked_destination` (the SIP host
resolves to a private address or CallNode infrastructure).
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
description: 'Blocked by a compliance gate. `error` is `tcpa_window_violation` when the
called party''s local time is outside the 8am–9pm window,
`trunk_disabled` when the referenced SIP trunk is disabled or has no
egress destination configured, `account_not_verified` before business
verification, `destination_not_enabled` for a destination class not
enabled on the account, or `policy_blocked` when a webhook, status
webhook, realtime or SIP destination on the call (or configured on
the from-number) points at a service CallNode identifies as fraud
tooling, such as one-time-passcode interception.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: '`trunk_not_found` — the `sipTrunkId` does not exist on this account.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
get:
tags:
- Outbound Calls
summary: List calls
description: Returns your outbound calls, newest first, with cursor pagination.
operationId: listCalls
parameters:
- name: status
in: query
description: Filter by status. Repeat the parameter to filter on several.
schema:
$ref: '#/components/schemas/CallStatus'
- name: limit
in: query
description: Page size. Defaults to 50, capped at 200.
schema:
type: integer
default: 50
maximum: 200
- name: cursor
in: query
description: Opaque cursor from a previous response's `nextCursor`.
schema:
type: string
responses:
'200':
description: A page of calls.
content:
application/json:
schema:
type: object
properties:
calls:
type: array
items:
$ref: '#/components/schemas/Call'
nextCursor:
type:
- string
- 'null'
description: Pass as `cursor` to fetch the next page. Null on the last page.
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
servers:
- url: https://api.callnode.io
description: Production
/api/v1/outbound/calls/{callId}:
parameters:
- name: callId
in: path
required: true
description: The `callId` returned by originate.
schema:
type: string
example: cn-ob-7f3a18a2-9b40-4e1e-9c4e-1b8b9b8e6b3a
get:
tags:
- Outbound Calls
summary: Retrieve a call
operationId: getCall
responses:
'200':
description: The call.
content:
application/json:
schema:
$ref: '#/components/schemas/Call'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
delete:
tags:
- Outbound Calls
summary: Cancel a call
description: 'Hangs up an in-progress call, or cancels one that has not yet connected.
Calls already in a terminal state are returned unchanged (also 202) — the
operation is safe to retry.'
operationId: cancelCall
responses:
'202':
description: Cancellation accepted, or the call was already terminal.
content:
application/json:
schema:
type: object
properties:
callId:
type: string
status:
$ref: '#/components/schemas/CallStatus'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
servers:
- url: https://api.callnode.io
description: Production
/api/v1/calls/{callId}/transfer:
parameters:
- name: callId
in: path
required: true
schema:
type: string
description: 'The **caller''s** channel id — the `callId` CallNode sends you in the
webhook/stream query string for that call. On a bridged call this is
the A-leg, not the leg your own endpoint sees.
'
post:
tags:
- Outbound Calls
summary: Transfer a live call to another destination
description: 'Moves the caller on an in-progress call to another destination, and
hangs up whatever they were connected to.
Built for calls delivered to your own SIP endpoint via a number''s
`voice.sipUri`: those bridge straight to you without running the
conversational webhook, so returning `transfer: true` from a webhook is
not available on them. It also works on calls answered by a CallNode AI
agent.
Every transfer originates a new leg on your behalf, so it clears the
same gates as placing an outbound call: KYC, DNC/suppression, and the
destination-class guard. A CallLog and UsageRecord are written for the
transferred leg, so it is attributed and billable.
A transfer blocked by a gate returns the caller to the agent rather
than hanging up, so the agent can take a message.
`202` means accepted, not yet connected; the bridge follows
immediately.'
operationId: transferCall
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- destination
properties:
destination:
type: string
description: 'E.164 number, or a `sip:` URI to your own endpoint. SIP
hosts must be public — private and infrastructure ranges
are rejected.
'
example: '+16135551234'
responses:
'202':
description: Transfer accepted; the caller is being bridged.
content:
application/json:
schema:
type: object
properties:
callId:
type: string
destination:
type: string
status:
type: string
example: transferring
'400':
description: '`invalid_destination` — not E.164 and not a `sip:` URI.
`blocked_destination` — the SIP host is private or not allowed.
'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
description: '`destination_not_enabled` — the destination''s class (premium-rate
or high-cost international) is not enabled on this account; contact
support. `account_not_verified` — KYC gate.
'
'404':
description: '`call_not_found` — no active call with that id **on your account**.
Deliberately does not distinguish "does not exist" from "not
yours".
'
'409':
description: '`call_already_bridged` — the caller is connected elsewhere and
re-routing is currently disabled. Not returned in normal operation.
'
'422':
description: '`dnc_blocked` — the destination is on a suppression list.'
'502':
description: '`transfer_unavailable` — transient; safe to retry.'
servers:
- url: https://api.callnode.io
description: Production
components:
schemas:
Error:
type: object
properties:
error:
type: string
description: Stable machine-readable code, e.g. `invalid_from_number`.
message:
type: string
description: Human-readable explanation.
retryable:
type: boolean
description: Whether retrying the identical request could succeed.
required:
- error
- message
E164:
type: string
pattern: ^\+[1-9]\d{6,14}$
description: Plus sign followed by 7–15 digits.
example: '+16135551234'
OriginateRequest:
type: object
required:
- to
- from
description: 'Three mutually exclusive destination forms: E.164 `to` (PSTN), a `sip:`
URI `to` (direct SIP delivery), or `sipTrunkId` + an E.164/extension
`to` (BYOC via your saved trunk). Passing `sipTrunkId` together with a
`sip:` `to` is rejected with `invalid_request`.
'
properties:
to:
description: 'The destination. An E.164 number, a `sip:` URI, or — together with
`sipTrunkId` — an E.164 number or a 1–64 character extension the
trunk''s host understands.
'
oneOf:
- $ref: '#/components/schemas/E164'
- $ref: '#/components/schemas/SipUri'
- type: string
pattern: ^[0-9A-Za-z*#._\-]{1,64}$
description: Extension string. Only valid together with `sipTrunkId`.
sipTrunkId:
type: string
description: 'ID of a saved SIP trunk (Dashboard → SIP Trunks). Routes the call to
the trunk''s configured host (BYOC / PBX). Mutually exclusive with a
`sip:` `to`.
'
from:
allOf:
- $ref: '#/components/schemas/E164'
description: 'Must be a DID owned by your account with status `active`. Required for
every destination form — it becomes the caller ID presented to the
called party or to your SIP endpoint.
'
webhookUrl:
type: string
format: uri
description: 'Where your AI agent runs. Overrides the webhook stored on the `from` number.
Invoked once when the call connects (`call_started`), then once per turn —
for every caller utterance (`user_speech`) and every completed keypad entry
(`user_dtmf`, with the digit string in a `dtmf` field) — see the
Conversational Webhook guide.
'
webhookAuth:
$ref: '#/components/schemas/WebhookAuth'
realtime:
type: object
description: 'Realtime WebSocket mode for this call (see /docs/realtime): instead of the
per-turn webhook, CallNode opens a WebSocket to `url` when the call connects and
streams transcripts (and, on request, caller audio) to it; you stream audio back,
transfer or hang up. Overrides the from-number''s realtime setting. The webhook
stays the fallback if the socket cannot be reached. Billed per started minute of
socket time on top of the call minute (`realtimePerMinuteRate` on GET /api/plans).
'
properties:
url:
type: string
format: uri
description: wss:// URL on a public host.
auth:
$ref: '#/components/schemas/WebhookAuth'
required:
- url
metadata:
type: object
description: Opaque JSON, echoed back on status webhooks. Max 4 KB.
statusWebhookUrl:
type: string
format: uri
description: 'URL we POST call lifecycle events to (answered, completed, failed).
For SIP destinations, `call.failed` events carry the mapped
`failureCode` and may also include `sipCause` — the raw hangup cause
string (diagnostic passthrough; not enumerated).
'
maxDurationSecs:
type: integer
minimum: 5
maximum: 7200
default: 1800
description: Hard cap on call duration.
tcpaOverride:
type: boolean
default: false
description: Bypass the 8am–9pm called-party-local-time check. Audited.
SipUri:
type: string
pattern: ^sip:[A-Za-z0-9._+\-*#]{1,64}@[A-Za-z0-9.\-]+(:\d{1,5})?(;transport=(udp|tcp))?$
description: 'A SIP destination URI: `sip:user@host[:port][;transport=udp|tcp]`.
Port defaults to 5060 and transport to udp. TLS is not yet supported.
The host must be a public hostname or IP.
'
example: sip:agent@pbx.example.com:5060;transport=udp
OriginateResponse:
type: object
properties:
callId:
type: string
status:
$ref: '#/components/schemas/CallStatus'
createdAt:
type: string
format: date-time
Call:
type: object
properties:
callId:
type: string
status:
$ref: '#/components/schemas/CallStatus'
from:
$ref: '#/components/schemas/E164'
to:
type: string
description: The destination as requested — an E.164 number, a `sip:` URI, or an extension (trunk form).
createdAt:
type: string
format: date-time
originatedAt:
type:
- string
- 'null'
format: date-time
answeredAt:
type:
- string
- 'null'
format: date-time
endedAt:
type:
- string
- 'null'
format: date-time
durationSecs:
type:
- integer
- 'null'
costUsd:
type:
- string
- 'null'
description: Decimal string, e.g. "0.04".
failureCode:
type:
- string
- 'null'
description: 'Why the call failed. `no_answer`, `busy`, `carrier_rejected`,
`invalid_number`, `cancelled`, `max_duration_exceeded`, or — for SIP
destinations — `invalid_destination`, `endpoint_unreachable`,
`endpoint_rejected`.
'
sipTrunkId:
type:
- string
- 'null'
description: The trunk used for this call. Null for PSTN calls and direct-URI SIP calls.
sipUri:
type:
- string
- 'null'
description: The normalized SIP URI actually dialed. Null for PSTN calls.
phoneBookExempt:
type: boolean
description: True when the call was placed outside the 8am–9pm window to a number in the account's Phone Book, so no tcpaOverride was needed.
metadata:
type: object
WebhookAuth:
type: object
description: How CallNode authenticates to your webhook endpoint.
properties:
type:
type: string
enum:
- none
- basic
- bearer
- header
headerName:
type: string
description: Header name when `type` is `header`.
value:
type: string
description: The secret, token, or `user:pass` pair, depending on `type`.
required:
- type
CallStatus:
type: string
enum:
- originating
- ringing
- answered
- completed
- failed
- canceled
responses:
NotFound:
description: No such resource on this account.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Rate limit exceeded. See the rate-limit response headers.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing, unknown, or badly signed credentials — check the HMAC and the timestamp skew.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
IdempotencyKey:
name: X-Idempotency-Key
in: header
required: false
description: A UUID. Replaying the same key returns the original result rather than acting twice.
schema:
type: string
format: uuid
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-Api-Key
description: Your API key, e.g. `cn_live_...`.
TimestampAuth:
type: apiKey
in: header
name: X-Timestamp
description: Unix seconds as a string, used as the signature prefix.
SignatureAuth:
type: apiKey
in: header
name: X-Signature
description: '`hex(HMAC_SHA256(apiSecret, timestamp + "\n" + rawBody))`.'
x-refined-from:
- callnode-openapi.yaml
- callnode-io-openapi.yml