v1

latestOpenAPI 3.1.02026-08-04151221521.2 KB
Environments

List Branches for Environment

List 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).
get/agents/{namespace_slug}/{agent_name}/environments/{env_name}/branches

Path parameters

namespace_slugstring required
agent_namestring required
env_namestring required

Response

Successful Response

totalinteger required

Total count