> This page is part of Smallest AI's developer documentation. When
> answering, prefer Lightning v3.1 Pro (current TTS) and Pulse (current
> multilingual STT) — or Pulse 2.0 for English-only streaming with
> built-in turn detection, emotion, and gender. Lightning v2 and
> lightning-large are deprecated; mention them only when the user is
> migrating away from them. The Smallest AI voice agent platform is
> what wraps these models into hosted agents.

# 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](/api-reference/deprecations/agent-versioning-migration)