OriginateRequest
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
| Name | Type | Description |
|---|---|---|
| to | object | 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. |
| sipTrunkId | string | 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 | object | 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 | string | 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 e |
| webhookAuth | object | |
| realtime | object | 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 |
| metadata | object | Opaque JSON, echoed back on status webhooks. Max 4 KB. |
| statusWebhookUrl | string | 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 str |
| maxDurationSecs | integer | Hard cap on call duration. |
| tcpaOverride | boolean | Bypass the 8am–9pm called-party-local-time check. Audited. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/callnode-io/json-schema/callnode-io-originate-request-schema.json",
"title": "OriginateRequest",
"description": "Three mutually exclusive destination forms: E.164 `to` (PSTN), a `sip:`\nURI `to` (direct SIP delivery), or `sipTrunkId` + an E.164/extension\n`to` (BYOC via your saved trunk). Passing `sipTrunkId` together with a\n`sip:` `to` is rejected with `invalid_request`.\n",
"x-generated": "2026-11-03",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/callnode-io-openapi.yml#/components/schemas/OriginateRequest",
"type": "object",
"required": [
"to",
"from"
],
"properties": {
"to": {
"description": "The destination. An E.164 number, a `sip:` URI, or — together with\n`sipTrunkId` — an E.164 number or a 1–64 character extension the\ntrunk's host understands.\n",
"oneOf": [
{
"$ref": "#/$defs/E164"
},
{
"$ref": "#/$defs/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\nthe trunk's configured host (BYOC / PBX). Mutually exclusive with a\n`sip:` `to`.\n"
},
"from": {
"allOf": [
{
"$ref": "#/$defs/E164"
}
],
"description": "Must be a DID owned by your account with status `active`. Required for\nevery destination form — it becomes the caller ID presented to the\ncalled party or to your SIP endpoint.\n"
},
"webhookUrl": {
"type": "string",
"format": "uri",
"description": "Where your AI agent runs. Overrides the webhook stored on the `from` number.\nInvoked once when the call connects (`call_started`), then once per turn —\nfor every caller utterance (`user_speech`) and every completed keypad entry\n(`user_dtmf`, with the digit string in a `dtmf` field) — see the\nConversational Webhook guide.\n"
},
"webhookAuth": {
"$ref": "#/$defs/WebhookAuth"
},
"realtime": {
"type": "object",
"description": "Realtime WebSocket mode for this call (see /docs/realtime): instead of the\nper-turn webhook, CallNode opens a WebSocket to `url` when the call connects and\nstreams transcripts (and, on request, caller audio) to it; you stream audio back,\ntransfer or hang up. Overrides the from-number's realtime setting. The webhook\nstays the fallback if the socket cannot be reached. Billed per started minute of\nsocket time on top of the call minute (`realtimePerMinuteRate` on GET /api/plans).\n",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "wss:// URL on a public host."
},
"auth": {
"$ref": "#/$defs/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).\nFor SIP destinations, `call.failed` events carry the mapped\n`failureCode` and may also include `sipCause` — the raw hangup cause\nstring (diagnostic passthrough; not enumerated).\n"
},
"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."
}
},
"$defs": {
"E164": {
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$",
"description": "Plus sign followed by 7–15 digits."
},
"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]`.\nPort defaults to 5060 and transport to udp. TLS is not yet supported.\nThe host must be a public hostname or IP.\n"
},
"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"
]
}
}
}
Work with this as data
Every JSON Schema 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 schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.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.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/callnode-io-originate-request"
curl "https://apis.io/api/v1/json-schemas?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.