Use this API to roll back an agent one version step. The current versionDocumentation Index
Fetch the complete documentation index at: https://velt-raghul-agent-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
N is deleted from the versions subcollection and the main document’s version pointer is decremented to N-1.
This is a single-step undo. Call it repeatedly to walk backward through version history. The operation cannot go below version 1 — the agent must always have at least one version on file.
There is no target-version parameter. The operation always undoes the most recent change.
POST https://api.velt.dev/v2/agents/versions/restore
| Field | Type | Description |
|---|---|---|
data.version | number | The version the agent was restored to (N-1) |
NOT_FOUND (agent does not exist) / FAILED_PRECONDITION (already at version 1; cannot go below).