Agents API
The Agents API is a set of REST endpoints for building and shipping PolyAI agents without the UI. It covers the full agent lifecycle: create the agent, branch for parallel work, edit behavior and knowledge, provision telephony, publish through environments, and tweak runtime values after launch.
Use it when you want to automate agent setup from your own tooling — CRM workflows, CCaaS provisioning, internal platforms, or coding agents — instead of clicking through Agent Studio.
Also known as the builder APIs or Agent Studio APIs. This reference covers the same surface area.
How it differs from the Conversations API
The Agents API is the build and deploy layer. The Conversations API is the read and analyze layer. They’re separate services with separate base URLs, auth, and audiences.
If you want to ship an agent change, use the Agents API. If you want to know what happened in a call, use the Conversations API. See Getting started for the full distinction across all API families.
Resource model
The Agents API is organized around a small set of nested resources:
Agents and voice library entries are scoped to an account. Everything inside an agent except deployments, telephony, and real-time configs is scoped to a branch. The default branch is main; create additional branches for parallel development and merge them back.
Base URL
The Agents API uses the same regional base URL family as Alerts and Webhooks:
Most Agents API paths are prefixed with /v1/agents/{agentId}/…. Account-scoped endpoints (listing/creating agents, voice library) are prefixed with /v1/accounts/{accountId}/….
Do not use https://api.poly.ai without a region prefix — it returns an error. Always include the region.
Authentication
All endpoints authenticate with an API key sent in the x-api-key header. Keys are scoped to a workspace.
API keys for the Agents API are not yet available through self-service. Contact your PolyAI representative to request access.
Quick start
1. Create an agent
The response includes an agentId and a default main branch.
2. Update the agent’s behavior
3. Add a knowledge base topic
4. Publish to sandbox
5. Promote to pre-release, then live
Environments
Deployments run in one of three environments:
Use publish to push a draft into sandbox, then promote to move through pre-release and live. Use rollback to revert a deployment. See Environments for the full model.
Branches
Branches are isolated working copies of an agent. Create a branch for any non-trivial change:
Merge back to main when you’re ready:
Real-time configs
Real-time configs let you change runtime values (opening hours, seasonal messaging, holiday flags) without a publish cycle. Updates take effect immediately.
Define a JSON Schema for a config page, then PATCH variables against it:
Variants
Variants let you run one agent across many sites — hotel chains, restaurant groups, franchises — with site-specific values (phone number, address, hours). Define attributes (dimensions), then create variants (combinations).
See Variants for the conceptual model.

