v1
latestOpenAPI 3.1.02026-08-04151221521.2 KBEnvironments
Create Environment
Create a new environment for an agent.
Environments define deployment targets with branch matching rules.
The is_prod flag cannot be set via API - production environment is protected.
**Branch Rules:**
- Exact match: ["main"] or ["develop"]
- Wildcard: ["feature/*"] matches feature/foo, feature/bar
- Catch-all: ["*"] matches any branch
post/agents/{namespace_slug}/{agent_name}/environments
Path parameters
namespace_slugstring required
agent_namestring required
Request body
Response
Successful Response