Activate Agent Version
Agent API Endpoints
Activate Agent Version
Set a specific historical version of an agent as the active configuration.
POST
Activate Agent Version
Restore or activate a specific historical configuration of your Voice Agent. When you make changes to an agent, a new version is created. If an update causes unexpected behavior, or if you simply want to revert to a previously stable setup, you can use this endpoint to promote an olderDocumentation Index
Fetch the complete documentation index at: https://docs.lyzr.ai/llms.txt
Use this file to discover all available pages before exploring further.
versionId to become the currently active configuration.
Authentication Required: You must include your API key in the
x-api-key header to authenticate this request.Required Parameters
You need two pieces of information in the URL path to make this request:agentId: The 24-character string ID of the parent agent.versionId: The exact UUID of the version you wish to activate (you can retrieve this using the List Agent Versions endpoint).
What Happens on Activation?
When you successfully activate a version (returning a200 OK status), the following occurs:
- The agent’s live configuration is immediately replaced with the payload from the specified
versionId. - Any new LiveKit sessions initiated for this
agentIdwill use this newly activated configuration. - The API returns the complete, updated
agentobject so you can verify the settings have been applied in your application.
Note on active sessions: Activating a new version will not disrupt or alter any ongoing voice calls. The changes will only apply to the next session created after this request succeeds.
Authorizations
Path Parameters
The unique identifier of the agent.
Example:
"f790923795a23467555c0ad6"
The UUID of the specific version to activate.
Example:
"3052daF7-8cbB-61dE-8820-dAb2019F43fd"
Response
Agent version successfully activated.