Agents represent AI personas (e.g., Support Bot, Sales Agent) that can have phone numbers attached to them. Each agent can be configured with a voice mode, system prompt, greeting message, and voice selection.
Agents support two voice modes for handling calls:
webhook (default) — Forwards call transcripts to your configured webhook URL. You process the transcript with your own AI backend and return a response.hosted — Uses a built-in LLM with the agent’s systemPrompt. No webhook is needed for voice conversations; the platform handles the AI interaction directly.Create a new agent.
List all agents for this project.
Get a single agent with its attached numbers.
Update an agent’s configuration. Use this to change voice mode, system prompt, greeting, or voice.
All fields are optional. Only include the fields you want to update.
Delete an agent. Phone numbers, conversations, and calls associated with the agent will have their agent reference cleared but will not be deleted.
Attach an existing phone number to an agent. The number must belong to the same project and must not be released.
List all conversations for a specific agent.
List all calls for a specific agent.
List all available TTS voices that can be used with the voice field when creating or updating agents.
Use the returned voice identifiers (e.g., "Polly.Amy", "Polly.Joanna") in the voice field when creating agents, updating agents, or making outbound calls.