List Agent Versions
Agent API Endpoints
List Agent Versions
Retrieve a history of all saved configurations (versions) for a specific agent.
GET
List Agent Versions
Retrieve a complete history of all configurations (versions) for a specific Voice Agent. Every time you update an agent’s settings—whether changing its LLM, modifying its prompt, or attaching a new tool—a new version is saved. This endpoint allows you to audit those changes or fetch older configurations.Documentation Index
Fetch the complete documentation index at: https://docs.lyzr.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authentication Required: You must include your API key in the
x-api-key header to authenticate this request.Required Parameters
You must pass the target agent’s unique identifier in the URL.agentId: The 24-character string ID of the agent whose version history you want to retrieve.
Understanding the Response
The API returns an array ofversions belonging to the agent. Each object in this array represents a distinct snapshot in time:
version_id: A unique UUID for this specific configuration state.active: A boolean flag (trueorfalse). Only one version can be active at a time. The active version is the one currently used when initiating a new LiveKit session.config: The full configuration dictionary (prompts, models, avatars, tools) exactly as it existed when this version was saved.created_at: The timestamp of when this version was generated.
Common Use Cases
- Auditing/Debugging: If an agent suddenly starts behaving unexpectedly, you can list versions to compare the current
active: trueconfig against older, stable versions. - Rollback Preparation: By fetching the
version_idof an older, successful configuration, you can prepare your application to rollback or activate that previous state.