Skip to main content
POST
/
v1
/
accounts
/
{account_id}
/
calls
Create call
curl --request POST \
  --url https://api.itellico.ai/v1/accounts/{account_id}/calls \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "type": "phone",
  "agent_id": "<string>",
  "from_number": "<string>",
  "to_number": "<string>",
  "medium": "<string>",
  "device_fingerprint": "<string>",
  "external_id": "<string>",
  "initial_text": "<string>",
  "audio_input_enabled": true,
  "audio_output_enabled": true,
  "skip_greeting_on_initial_text": true,
  "test_variables": {},
  "overrides": {}
}
'
{
  "id": "<string>",
  "type": "<string>",
  "status": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "modified": "2023-11-07T05:31:56Z",
  "direction": "<string>",
  "answer_status": "waiting",
  "agent_id": "<string>",
  "agent_name": "<string>",
  "from_number": "<string>",
  "to_number": "<string>",
  "external_id": "<string>",
  "started_at": "2023-11-07T05:31:56Z",
  "ended_at": "2023-11-07T05:31:56Z",
  "duration_seconds": 123,
  "success": true,
  "join": {
    "token": "<string>",
    "livekit_url": "<string>",
    "room_sid": "<string>"
  }
}

Authorizations

X-API-Key
string
header
required

Path Parameters

account_id
string<uuid4>
required

Body

application/json
type
enum<string>
required

Call type. Use phone for outbound SIP and web for browser-based calls.

Available options:
phone,
web
agent_id
string
required

Agent UUID

from_number
string | null

Source E.164 phone number for phone calls

to_number
string | null

Destination E.164 phone number for phone calls

medium
string | null

Optional compatibility field. web calls always use WEB.

device_fingerprint
string | null

Optional client/device fingerprint for web calls

external_id
string | null

Optional idempotency/correlation key

initial_text
string | null

Optional first user message injected into web call context

audio_input_enabled
boolean | null
audio_output_enabled
boolean | null
skip_greeting_on_initial_text
boolean | null
test_variables
Test Variables · object

Optional runtime variables exposed to the call worker

overrides
Overrides · object

Optional runtime override object. Use overrides.agent with the same JSON shape as Agent PATCH (/v1/accounts/{account_id}/agents/{agent_id}), plus optional overrides.amd_mode ('text'|'ml') for phone calls.

Response

Created

id
string<uuid4>
required
type
string
required
status
string
required
created
string<date-time>
required
modified
string<date-time>
required
direction
string | null
answer_status
enum<string> | null

How the call was answered when known (waiting, human, machine, user_rejected, user_unavailable, user_busy, or unknown).

Available options:
waiting,
human,
machine,
user_rejected,
user_unavailable,
user_busy,
unknown
agent_id
string<uuid4> | null
agent_name
string | null
from_number
string | null
to_number
string | null
external_id
string | null
started_at
string<date-time> | null
ended_at
string<date-time> | null
duration_seconds
integer | null
success
boolean
default:true
join
CallJoinV1Out · object

LiveKit connection details returned for web calls.