API referenceAgents and workflowsAgent sessions
List a repository's branches (default branch flagged first) for the session branch picker
Requires the agent_sessions:read permission.
AuthorizationBearer <token>
An access token from this zone's POST /oauth/token, or a session token from POST /api/v1/auth/login. Send it as Authorization: Bearer <token>.
In: header
Query Parameters
repo?string
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/agent-sessions/branches"{ "items": [ { "default": true, "name": "string", "protected": true } ]}