- Provision agents from CI/CD as part of an environment promotion
- Migrate prompts from a config repo to production
- Run A/B tests on prompt variants
Authentication
All endpoints require a bearer credential. See Authentication.Create an agent
agent_id. The agent starts as a stub — no version, no config — until you create a version.
Create a version
Versions hold the actual config (voice, model, prompt, tools, knowledge bases).The agent
config object is large and strongly typed. Fetch its authoritative JSON Schema from GET /core/agent-config-schema rather than hand-writing it, and use the dashboard’s agent builder to generate a valid config to start from.Publish a version
phone_numbers and a direction (inbound, outbound, or both) in the publish body. See Assigning agents to numbers.
Update an existing draft
To iterate on a draft without creating a new version:Auto-generate instructions
If you have a purpose description but want Anyreach to draft the conversation flow:GET /core/agents/$AGENT_ID/versions/$VERSION until generation completes.
Deploy as SIP
For BYOC setups, expose the agent as a SIP endpoint (requires at least one published version):GET response then includes a sip_endpoint object with the SIP URI to point your trunk at. See SIP trunking and BYOC.

