Skip to main content
POST
Create Outbound Call
Creates an outbound call request. The call is queued and dispatched by the outbound scheduler; this endpoint returns as soon as the request is accepted, not when the call is connected. The agent used for the call is automatically resolved from the project — there is no agent selector. Each project corresponds to one agent.

Request

Headers

string
required
Bearer token using your developer key (dk_...).

Body

string
required
The project that will own this call. The authenticated user must be a member of this project.
string
required
The source phone number. Must be active in a number pool that the authenticated user is a member of, and must have an outbound trunk configured.
string
required
The destination phone number, in E.164 format (e.g. +886912345678). Must be different from fromNumber — a call dialing its own caller ID is rejected.
object
Optional key-value map injected into the agent session as runtime variables. Values can be referenced from your pathway and prompts.

Example

Response

Returns 200 OK once the call request is accepted into the dispatch queue.

Errors

Notes

  • Agent: The agent is resolved from projectId automatically. The configured agent for that project will handle the call.
  • From-number ownership: The caller (developer key user) must be a member of the number pool that owns fromNumber. Project membership is checked separately for projectId.
  • Variables: dynamicVariables are stringified into the LiveKit room metadata and made available to the agent for the duration of the session.
  • Concurrency: The same toNumber cannot have more than one in-flight outbound call at a time. Wait for the previous call to complete before retrying.