Skip to content

Dispatch one ad-hoc AI-agent call to a raw number

POST
/voice/calls

Dispatch a single AI-agent call to an arbitrary number right now.

No dialer session or contact list required - this wraps voice’s POST /api/call/start (voice/graph8_livekit/routers/call.py:19), the one-off “call this number” primitive that previously had no public surface at all. Places a REAL call and is billable upstream (voice checks the org’s subscription and concurrent-call cap before dispatching). Send an Idempotency-Key header to make a retry safe - every POST on this API already honors it via the app-wide IdempotencyMiddleware, so no extra field is needed here.

Org is pinned server-side; phone numbers are normalized to E.164 by voice itself (a malformed number 400s with an actionable message).

Authorizations

Parameters

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

Body for dispatching one AI-agent call to an arbitrary number.

No dialer session or contact list required - this is the “call this one number right now” primitive (voice/graph8_livekit/routers/call.py:19). Places a REAL call and is billable; send an Idempotency-Key header to make a retry safe (honored automatically by the Developer API’s idempotency middleware on every POST - no extra body field needed).

object
agent_id
Any of:
string
agent_name
Any of:
string
callback_url
Any of:
string
campaign_id
Any of:
string
contact_id
Any of:
string
dry_run

If true, the call is validated but not actually dispatched.

boolean
email
Any of:
string
entity_type
Any of:
string
Allowed values: agent twin
event_id
Any of:
integer
first_name
Any of:
string
from_phone
required

Caller ID. Must be one of the org’s numbers.

string
>= 9 characters <= 16 characters
last_name
Any of:
string
studio_campaign_id
Any of:
string
timezone

IANA timezone for the callee.

string
default: America/New_York
to_phone
required

Number to call. Normalized server-side.

string
>= 1 characters <= 16 characters

Responses

201

Successful Response

object
data
required

Echo of voice’s AgentDispatchResponse.

object
message
required
string
room_name
required
string
status
required
string
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string