Agents Platform
List Agent Branches
Returns a list of branches an agent has
GET
List Agent Branches
Headers
Your API key for programmatic access. Send it in the x-api-key header; you can create and manage keys from the Developers page.
Path Parameters
The id of an agent. This is returned on agent creation.
Example:
"agent_3701k3ttaq12ewp8b7qv5rfyszkz"
Query Parameters
Whether archived branches should be included
How many results at most should be returned
Required range:
x <= 100Whether to compute how far each branch has diverged from main (commits_ahead/commits_behind). This walks the version DAG of every branch, so it is slow on agents with long histories and is off by default, leaving those fields null.