Skip to main content
POST
Creates a voice agent: a reusable, named destination you can reference by its id in the connectTo field on place a call, answer a call, or dequeue, as well as the to field when dialing a monitor leg. Referencing an agent by id keeps its underlying number out of your request payloads. Every dial is compliance-screened regardless of whether the destination is a raw number or an agent. Requires the voice_calls.write scope and the Voice Calls product entitlement.

Body Parameters

string
required
A human-readable label for the agent.
string
default:"phone"
The agent’s destination type. Only phone is supported today.
string
required
The destination phone number in E.164 format (e.g. +14155559876). It is normalized to digits when stored.

Response Fields

object
The created agent.

Examples

Error Codes