List Branches
List all branches for an agent.
Each branch represents a git branch (e.g., main, staging, feature-x). By default, retired branches are excluded.
GET
List Branches by Agent
Query Parameters
Include retired branches in results
Previous
List Environment BranchesList all branches that match this environment's branch rules.
For wildcard environments (like preview with ["*"]),
returns all non-retired branches for the agent.
For specific branch rules (like production with ["main"]),
returns only the matching branch(es).
Branches are sorted by updated_at descending (most recent first).
Next
List Branches by Agent