Skip to main content
GET
Get Latest Agent Version

Overview

Returns the head of the agent’s dev timeline, including the full configuration snapshot. Pass branch to read a branch’s head instead; a branch with no saves of its own returns the version it was cut from. Use the returned id and revision as parent_version_id and parent_revision in Create Agent Version to save safely on top of it.

Headers

string
required
Your API key for authentication.

Path Parameters

string
required
The agent’s unique identifier. A fresh agent with no saved versions returns 404 NO_VERSIONS.

Query Parameters

string
An open branch’s ID. Returns that branch’s newest save, falling back to its base version when the branch has none. Returns 404 BRANCH_NOT_FOUND if the branch is not open or does not belong to this agent.

Response

object
The newest version, with its snapshot.
null | array
null on success, or a list of error objects if the request failed.

Docs for agents: llms.txt