Lists environments in the current workspace with pagination, sorted by created_at in descending order. Archived items are excluded by default.
Prerequisites
Endpoint and authentication are configured. See Overview and authentication.
Endpoint
GET /environments
Query parameterslimitint (Optional) Default 20Number of items per page, maximum 100page string (Optional) Default —Omit on the first call; pass next_page from the previous response for subsequent callsinclude_archived bool (Optional) Default falseWhether to include archived environments | Request example |
Environment object fieldsidstringEnvironment ID, format: env_<ULID>type stringFixed value environmentname / description / scope / config / metadata string / objectBasic environment attributes and full runtime configuration (sandbox type, pre-installed dependencies, networking policy)archived_at string | nullArchive time; null when not archivedcreated_at / updated_at stringCreation / last update time, ISO 8601 | Response exampledata (an array of Environment objects), next_page (cursor for the next page), and request_id (unique identifier for this request). Environment object fields are as follows: |