Place an AI voice call
Authentication
Your Dial API key, sent as Authorization: Bearer sk_live_...
Headers
A unique client-generated key (e.g. a UUID) identifying this call attempt. Reuse the same key when retrying a failed or ambiguous request: if the original attempt placed the call, the retry returns that call with 200 instead of placing a second one. Keys are scoped to your account.
Request
The Dial number to call from, referenced flexibly: a phone-number ID, one of your numbers in E.164 format, or a number’s nickname. A nickname shared by more than one of your numbers is rejected with 400. Provide exactly one of fromNumber or fromNumberId.
ID of the Dial number to call from. Legacy alternative to fromNumber — provide exactly one of the two.
BCP-47 language tag for the voice agent. Optional — when omitted, Dial detects the language from the destination number’s country prefix and the agent handles both that language and en-US. Pass an explicit tag to pin the call to a single language.
Gender of the AI voice agent for this call. Optional — when omitted, the voice is female (the default for every language). Pass male or female to choose explicitly; the choice also tells the agent how to refer to itself in gendered languages.
Forward-to number in E.164 format. Optional — when set, the agent waits for a real human (riding out hold music and IVR menus) and then cold-transfers the call to this number. Must differ from both to and the call’s from number. When the hand-off occurs, the call’s transferredAt is stamped.
Response
A call with this Idempotency-Key was already placed — returns the original call instead of dialing again.