v10
latestOpenAPI 3.1.02026-08-083641,4021.9 MBList Agent Branches
Returns a list of branches an agent has
Path parameters
The id of an agent. This is returned on agent creation.
The id of an agent. This is returned on agent creation.
Query parameters
Whether archived branches should be included
Whether archived branches should be included
How many results at most should be returned
How many results at most should be returned
Whether 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.
Whether 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.
Headers
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.
Response
Successful Response
Example response
{
"results": [
{
"access_info": {
"access_source": "creator",
"creator_email": "john.doe@example.com",
"creator_name": "John Doe",
"is_creator": true,
"role": "admin"
}
}
]
}