Skip to navigation

Agent versioning: the v1 draft and version endpoints are removed

The v1 agent-versioning endpoints under /agent/{id}/drafts and /agent/{id}/versions have been removed. Calls to them now fail with 404 Not Found (401 for PATCH /agent/{id}/versions/{versionId}), including the by-id reads and test calls that kept working after the branch model launched. To change an agent’s config from code, write to its branch draft with PUT /agent/{id}/branches/{branchId}/draft, then publish with POST /agent/{id}/branches/{branchId}/draft/publish. A stored v1 versionId still works as a revisionId on the branch revision endpoints.

Also in the docs:

  • The Post-Call Metrics and ElevenLabs migration guides now use the branch endpoints in their examples.
  • GET /agent no longer returns activeVersionId or versionId. Use GET /agent/{id}/branches to find the live branch and its latest revision.
  • When you create an agent and send language, include switching, even if only as {"isEnabled": false}. Without it the request fails with 400.

→ v1 → v2 migration guide