Skip to main content
POST
Restore Agent Version
Use this API to roll an agent back one version step. It deletes the current version N from the subcollection and decrements the root document’s version pointer to N-1. This is a single-step undo: calling it repeatedly walks backward through version history. It cannot go below version 1. There is no target-version parameter. The operation always undoes the most recent change.

Endpoint

POST https://api.velt.dev/v2/agents/versions/restore

Headers

x-velt-api-key
string
required
Your API key.
x-velt-auth-token
string
required

Body

Params

data
object
required

Example Requests

Response

Success Response

Failure Response

Errors: NOT_FOUND (agent does not exist) / FAILED_PRECONDITION (already at version 1; cannot go lower).