Create an environment
Environments
Create an environment
Create a reusable environment in your own catalog.
POST
Create an environment
Creates a new custom environment in your catalog. Once created, reference it by
id (e.g. "environments": ["wide-browser"]) from any agent. Most users define environments inline on the agent instead; reach for this endpoint to reuse one environment across several agents.
Returns 201 with the created Environment object.
Request body
The body is a Browser spec.Catalog identifier, kebab-case with an optional single
org/ namespace prefix. The h/ prefix is reserved for H employees (rejected with 403 otherwise). Immutable after creation.Environment type. Currently only
web. Defaults to web.Run without a visible window.
Viewport width in pixels. Must be a positive integer.
Viewport height in pixels. Must be a positive integer.
Initial URL to open. Pass
null to start on a blank page.How the agent perceives and drives the browser:
visual (default), multimodal, or text. See Modes.Examples
Response
Errors
| Status | Cause |
|---|---|
403 | Attempted to use the reserved h/ namespace without H employee privileges. |
409 | An environment with this id already exists in your catalog. |
422 | Body fails validation; common cases: invalid id shape, missing required field. |