List environments
Return all environments the authenticated credential has access to under the tenant.
GET
Every tenant has exactly one permanent live environment and zero or more sandbox environments. Results are sorted by
type then name alphabetically (live first).
Access scoping rules:
- API key callers receive only the environments their key is scoped to.
- Admin users receive all active environments by default. With
includeAll=truethey also receive disabled environments. - Non-admin users receive only the environments they are a member of.
Query parameters
When
Admin callers will also receive disabled environments in the response.
Non-admin callers always return only their accessible environments regardless of this flag.
true, each environment object includes a hasAccess boolean indicating whether the caller is a member.Admin callers will also receive disabled environments in the response.
Non-admin callers always return only their accessible environments regardless of this flag.
Returns
An array of environment objects. WhenincludeAll=true, each object also includes hasAccess.
Environment ID (MongoDB ObjectId).
Owning tenant identifier.
Human-readable display name (e.g.
"Live", "Staging Sandbox").Environment type —
"live" or "sandbox". Each tenant has exactly one "live" environment."active" or "disabled". Disabled environments reject all incoming API requests.API version configured for this environment. Currently always
"v1".Number of webhook delivery retry attempts for this environment. Default
3. Maximum effective value is 10.When
true, extended request and event logs are captured for this environment. Default false.Per-minute API rate-limit override for this environment.
null or absent means the tenant-level default applies.Only present when
includeAll=true is passed. true if the calling user is a member of this environment, false otherwise.ISO 8601 UTC creation timestamp.
ISO 8601 UTC last-modified timestamp.
Error codes
| Status | Meaning |
|---|---|
400 | tenantId could not be resolved from the authenticated credential. |
401 | Missing or invalid API key pair. |