Skip to main content
POST
Create agent
Creates a new AI agent. The agent immediately becomes available to attach to phone numbers and use for outbound calls.

Request

Body parameters

Only name is recommended in practice — every other field has a sensible default. You can create a working agent with a one-line payload.

Core

Behaviour

Call controls

Functions (tools the agent can call mid-conversation)

How to stop the agent texting or transferring. These two are controlled by your prompt, not by a flag. The engine’s own rules tell the model to text only if the developer prompt asks it to, and the same holds for transfers - so a prompt that never mentions texting produces an agent that never texts. func_send_sms and func_cold_transfer are kept because removing a field developers may already send would break them silently, but they have no effect.
A prompt instruction is reliable but not absolute - a language model can still ignore one. If you need a hard guarantee that a number never texts or never transfers, do not rely on the prompt alone. Get in touch: a per-number switch is on the roadmap and is worth building against a real requirement rather than a guess.

Other

Response

201 Created:
Save the agent_id — you’ll use it for every subsequent operation.

Next step

Attach a phone number, on Twilio or Telnyx, so the agent can make and receive calls. See Import phone number.

Errors

See Errors for handling patterns.