v2.app.bland.ai. Every endpoint here mirrors something the agent builder does: saving a configuration, publishing it to an environment, branching to try a change, or routing a phone number to an agent.
It does not replace the rest of the Bland API. Calls, numbers, knowledge bases, tools, and the other groups in this reference work alongside it, and those endpoints are unchanged. Endpoints under Legacy at the end of the sidebar belong to the original platform (conversational pathways, personas, and similar). They still work for existing integrations, but new builds should use agents.
How an agent is structured
Most of this API follows from four ideas, so it is worth reading these before the endpoint pages. An agent is an org-scoped record. Creating one gives you three empty environments and no configuration, because an agent holds no configuration of its own. A version is a complete agent configuration, saved and never modified afterwards. Saving a version does not deploy it. Environments aredev, staging, and production. Each one pins a single version. Publishing moves the staging pin, promoting moves the production pin, and rolling back moves it to an earlier version. A call runs the version pinned to production unless the call’s agent_version selects another; see Send Call with an Agent.
Branches are dev workspaces. Save onto a branch to work without touching the dev timeline, then rebase and merge it back.
Three features build on those: checks gate promotions, experiments run a variant against an environment’s pin, and dispositions classify call outcomes. Experiments and dispositions require an enterprise plan, and dispositions are also enabled per organization.
Base URL and authentication
Every route lives underhttps://api.bland.ai/v2/agents. Send your API key in the authorization header.
Endpoints that change an agent, such as create, update, delete, save a version, publish, promote, and roll back, require an owner, admin, operator, or prompter role. With a full-access API key, the role checked is that of the user the key belongs to. That user is also recorded as created_by or deployed_by on what the request creates.
A restricted API key skips the role check but reaches only the endpoints its scopes cover. The agent, version, branch, publish, promote, and rollback endpoints accept agents:read or agents:write. Endpoints that accept no scope, such as List Agent Environments and List Agent Deployments, return 403 INSUFFICIENT_SCOPE to a restricted key.
A successful response returns your payload in data with errors set to null. On any error, data is null and errors carries one or more entries with an error code and a message.
Success
Error
Where to start
If you have not built an agent yet, Build your first agent walks through the dashboard first, which makes these endpoints easier to follow. To create one over the API, the shortest path to a live agent is Create Agent, then Create Agent Version, then Publish Agent and Promote Agent.Docs for agents: llms.txt