On this page
List environments
List the organization’s production and sandbox environments. current identifies the environment selected by your key.
Operation ID: environments.list.
Request
GET /api/v1/environments
- TypeScript SDK:
client.environments.list(path arguments usepath). - MCP tool:
sdk_client_callwithoperationId: "environments.list"(path arguments useinput.path). Legacy alias:environments_list. Connect to your authenticated/mcpendpoint with an API key for the same environment. - Minimum API key role: viewer.
- Idempotency: No idempotency header required.
Read resource IDs from earlier responses and use a key for the same environment.
Request example
Set each path variable to an ID returned by an earlier API request.
Set CUMULUS_BASE_URL to your workspace API URL and CUMULUS_API_KEY to a key for that environment. Example values are synthetic.
cURL
curl --fail-with-body -sS "${CUMULUS_BASE_URL%/}/api/v1/environments" \
-H "Authorization: Bearer $CUMULUS_API_KEY"
TypeScript
import { Cumulus } from "@cumulus/sdk";
const baseUrl = process.env.CUMULUS_BASE_URL;
const apiKey = process.env.CUMULUS_API_KEY;
if (!baseUrl || !apiKey) throw new Error("Set CUMULUS_BASE_URL and CUMULUS_API_KEY");
const client = new Cumulus({ baseUrl, apiKey });
const response = await client.environments.list({});
Integration notes
Use current to identify the key’s environment. For an import, copy the selected environment’s tenant_id into reference.tenant_id.
Supply the environment slug and tenant ID when asking Cumulus to configure capacity or run admission.
Input schema
Path, query and header parameters
No path or query parameters.
JSON request body
This operation has no JSON request body.
Complete OpenAPI schema
{
"parameters": [],
"requestBody": null
}
Responses
HTTP 200
List this organization's production and sandbox environments
application/json
| Field | Type or values | Required | Description and limits |
|---|---|---|---|
current | "production" · "sandbox" | Required | — |
items | array of object | Required | — |
items[].kind | "production" · "sandbox" | Required | — |
items[].tenant_id | string (uuid) | Required | pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$. |
items[].slug | string | Required | minLength: 1. |
items[].name | string | Required | minLength: 1. |
items[].display_name | string or null | Required | — |
Error responses
| HTTP | Description |
|---|---|
| 4XX | Typed error (ApiError) |
| 5XX | Typed error (ApiError) |
Errors use the shared error envelope. Inspect error.code, retryable, outcome and details before retrying.
Complete OpenAPI schema
{
"200": {
"description": "List this organization's production and sandbox environments",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EnvironmentsListResponse200"
}
}
}
},
"4XX": {
"description": "Typed error (ApiError)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
}
},
"5XX": {
"description": "Typed error (ApiError)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
}
}
}
Referenced schemas
Expand the complete OpenAPI definitions for integrations that generate their own clients.
Complete OpenAPI schema
{
"components": {
"schemas": {
"EnvironmentsListResponse200": {
"type": "object",
"properties": {
"current": {
"type": "string",
"enum": [
"production",
"sandbox"
]
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"production",
"sandbox"
]
},
"tenant_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
},
"slug": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"minLength": 1
},
"display_name": {
"nullable": true,
"type": "string"
}
},
"required": [
"kind",
"tenant_id",
"slug",
"name",
"display_name"
],
"additionalProperties": false
}
}
},
"required": [
"current",
"items"
],
"additionalProperties": false
},
"ApiError": {
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"unauthenticated",
"forbidden",
"not_found",
"conflict",
"invalid_request",
"idempotency_conflict",
"policy_denied",
"capability_unavailable",
"provider_unavailable",
"knowledge_unavailable",
"publication_invalid",
"run_not_active",
"rate_limited",
"outcome_unknown",
"internal"
]
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"outcome": {
"type": "string",
"enum": [
"none",
"unknown"
]
},
"details": {
"type": "object",
"additionalProperties": {}
}
},
"required": [
"code",
"message",
"retryable",
"outcome"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
}
}
}
}
Errors and recovery
See API error handling and Troubleshooting.