Skip to main content
POST
Add an environment
The first one also adds production, so it turns environments on.
  • key is fixed once added, and production and all are reserved. The API’s environment field, the environment’s MCP URLs and Dashboard links carry it.
  • Each tool runs production’s version in it until a change, repair, push or merge gives it its own.
  • auto_repair, on unless false, repairs its failed runs automatically, in this environment only.
  • Once your team has environments, each API key belongs to one of them, so no API key or environment’s MCP URL adds another. Add it on the Dashboard or through a connected agent on the Admin MCP URL.
  • off_categories, off_sites and off_tools turn categories, sites and tools off in it for API keys and connected agents, as in update_settings. Added by an API key or connected agent, it also turns off everything production does.
  • Callers: an API key, an MCP OAuth token or a Dashboard session.
  • Permission: team:manage; an API key also needs team:manage.
  • Effect: Creates or changes something.
  • Errors: environment_exists, environment_limit_reached, environments_unavailable, and the errors any request can get.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
key
string
required

a string matching the pattern ^a-z [blocked]?$

Pattern: ^[a-z](?:[a-z0-9-]{0,30}[a-z0-9])?$
name
string
required

a string at most 40 character(s) long

Required string length: 1 - 40
auto_repair
boolean

Repair failed runs automatically, on unless false

off_categories
enum<string>[]

Catalog categories to turn off, such as flights: API keys and connected agents working here don't find their sites' tools, and their builds and runs there are refused

Maximum array length: 27
Available options:
retail,
travel,
flights,
events,
dev,
sales,
real_estate,
learning,
job_boards,
finance,
groceries,
services,
dining,
sports,
health,
suppliers,
logistics,
cars,
government,
news,
marketing,
business_tools,
games,
design,
social,
productivity,
other
Example:
off_sites
string[]

Sites to turn off by domain, such as delta.com, up to 200: no scheme, path or port. A domain covers its subdomains and tools built there later

Maximum array length: 200

a string matching the pattern ^(?=.{1,253}$)(?:A-Za-z0-9 [blocked]?.)+A-Za-z [blocked]?$

Pattern: ^(?=.{1,253}$)(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\.)+[A-Za-z](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?$
Example:
off_tools
string[]

Tools to turn off by ID, up to 500, such as a site's buy tool while its search tool stays on

Maximum array length: 500

a tool ID: tool_ and 32 lowercase hex digits

Response

The team's environments

The team's environments, production first; empty before it adds one

data
object[]
required