v1
latestOpenAPI 3.1.02026-08-04151221521.2 KBEnvironments
Resolve Environment for Branch
Resolve which environment matches a given branch.
Uses specificity-based matching:
- Exact match wins over wildcards (e.g., "main" matches production before preview)
- Prefix wildcards match by length (e.g., "feature/*" beats "*")
- Catch-all "*" has lowest priority
Returns 404 if no environment matches the branch.
get/agents/{namespace_slug}/{agent_name}/resolve-env
Path parameters
namespace_slugstring required
agent_namestring required
Query parameters
branchstring required
Response
Successful Response