Create an environment
Create a new environment
is_production: true.
The response includes the numeric environment id. Use it to create an Environment API key or delete the environment. Creating an environment also creates a default full-access Environment API key, but the secret is not returned.
Authorizations
An Environment API key from your Nango environment, or an Account API key for account-level endpoints.
Body
Environment name. Lowercase letters, digits, hyphens, and underscores only. Max 255 characters. The reserved name prod is always treated as production.
255^[a-z0-9_-]+$"staging"
Whether to mark the environment as production. Defaults to false, except for the reserved name prod.
Custom OAuth callback URL for this environment.
HMAC key used by the legacy public-key authorization flow.
1000Whether HMAC verification is enabled for the legacy public-key authorization flow.
Whether Slack notifications are enabled for this environment.
OpenTelemetry collector endpoint. Requires a plan with OpenTelemetry export. Pass an empty string to set an empty endpoint.
Headers sent with OpenTelemetry export requests. Requires a plan with OpenTelemetry export. Maximum 100 headers.
100Response
Successfully created an environment