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.| Agents API | Conversations API | |
|---|---|---|
| Purpose | Build and deploy agents | Read call data and transcripts |
| Direction | Write (create, update, deploy) | Read (query, retrieve) |
| Base URL | api.{region}.poly.ai/v1/agents/… | api.{region}.platform.polyai.app/v3/… |
| Auth | API key (workspace-scoped) | API key (project-scoped) |
| Who uses it | Developers automating agent builds | Analysts, integrations pulling call data |
Resource model
The Agents API is organized around a small set of nested resources: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:| Region | Base URL |
|---|---|
| US | https://api.us.poly.ai |
| UK | https://api.uk.poly.ai |
| EU | https://api.eu.poly.ai |
/v1/agents.
Authentication
All endpoints authenticate with an API key sent in thex-api-key header. Keys are scoped to a workspace.
API keys for the Agents API are not yet available through self-service. Email developers@poly.ai to request access.
Quick start
1. Create an agent
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:| Environment | Purpose |
|---|---|
sandbox | Safe space for testing without affecting production calls |
pre-release | Staging for final validation before going live |
live | Production — serves real customer traffic |
publish to push a draft into sandbox, then promote to move through pre-release and live. Use rollback to revert a deployment. See Environments and versions for the full model.
Branches
Branches are isolated working copies of an agent. Create a branch for any non-trivial change: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 Variant management for the conceptual model.Error responses
| Status | Description |
|---|---|
| 400 | Validation error - check request body or parameters |
| 401 | Missing or invalid API key |
| 403 | API key lacks permission for the workspace or resource |
| 404 | Resource not found |
| 409 | Conflict - e.g. merging a branch with diverged state |
| 422 | Malformed ID or schema validation error |
| 500 | Internal server error |
Example error response
Related
Environments and versions
How sandbox, pre-release, and live environments fit together.
Variant management
Run one agent across many sites with attribute-driven variants.
Telephony
Provision phone numbers and route them to connectors.
Managed topics
How knowledge base topics power retrieval and actions.

