Environments
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
Request
- Base URLhttps://docs.terminaluse.com (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
namespace_slugstring required
agent_namestring required
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.