API ReferenceAgents
List Versions
List an agent's versions, newest first.
List an agent's versions, newest first.
Every version is returned unless limit is set (200 at most). status keeps
only versions in that status: status=active with limit=1 is the version runs
use by default. before pages back: pass the last version number of the
previous page to get the versions below it; a page shorter than limit is the
last.
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Path Parameters
agent_id*Agent Id
Query Parameters
limit?|null
before?integer|null
status?|null
Header Parameters
X-API-Key?string|null
Response Body
application/json
application/json
curl -X GET "https://api.levainlabs.com/api/v1/agents/string/versions"[
{
"id": "string",
"agent_id": "string",
"version": 0,
"description": "string",
"status": "string",
"parent_version": 0,
"created_at": "string",
"updated_at": "string",
"last_commit_at": "string",
"diverged_from_parent": true,
"published_at": "string"
}
]