Set an agent's primary number
The primary number is the default caller ID for outbound calls placed through this agent (and for inbound it represents the number the agent is most associated with). Must already be attached to the agent.
Authorizations
API key starting with sk_
Path Parameters
Body
Response
Agent with updated primary number
Reusable call-behavior primitive. Calls dispatched against this
agent inherit persona, instructions, voice, language,
returns, tools, webhook_url, and voicemail_action.
Human-readable label.
"Appointment reminders"
Inbound agents answer incoming calls on their attached numbers.
Outbound agents are dispatched via POST /v1/calls and use their
attached numbers as caller ID.
inbound, outbound Identity/policy for the agent. Null falls back to the canonical default persona at call-render time.
Default task for calls handled by this agent. Outbound calls can replace this per call via the instructions field on POST /v1/calls.
BCP-47 language code.
Schema for structured data extraction.
{
"confirmed": "boolean",
"reschedule_to": "string"
}In-call tools the agent may invoke.
Default webhook URL for calls handled by this agent.
hangup, leave_message Default caller ID for outbound calls (also indicates the "owning" number for inbound agents).
Full set of phone numbers attached to this agent. Present on detail and mutation responses.