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

Changes

No recorded changes to this endpoint across all 1 revision of this API.