Documentation Index
Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
Use this file to discover all available pages before exploring further.
GET /v1/environments
Lists all non-archived environments under the current account, with pagination.
| Header | Required | Description |
|---|
Authorization | Yes | Bearer <PAT> |
Query parameters
| Parameter | Type | Required | Description |
|---|
limit | integer | No | Items per page (default 20) |
after_id | string | No | Cursor; returns records after this ID |
before_id | string | No | Cursor; returns records before this ID |
See Pagination for cursor semantics.
Example request
curl -s -X GET 'https://openapi.qoder.sh/api/v1/cloud/environments' \
-H "Authorization: Bearer $QODER_PAT"
Example response
HTTP 200 OK
{
"data": [
{
"id": "env_019e3bb39b6774d8878cd0b9d237574b",
"type": "environment",
"name": "doc-test-env",
"description": "",
"status": "ready",
"config": {
"type": "cloud",
"networking": {
"type": "limited"
},
"packages": {
"apt": [
"curl"
]
}
},
"created_at": "2026-05-18T15:28:07.017808Z",
"updated_at": "2026-05-18T15:28:07.017808Z"
},
{
"id": "env_019e2590d33f711fabf42f2857cecd8a",
"type": "environment",
"name": "default",
"description": "",
"status": "ready",
"config": {
"type": "cloud",
"networking": {
"allow_package_managers": true,
"type": "limited"
},
"packages": {}
},
"created_at": "2026-05-14T08:18:28.800813Z",
"updated_at": "2026-05-14T08:18:28.800813Z"
}
],
"first_id": "env_019e3bb39b6774d8878cd0b9d237574b",
"has_more": false,
"last_id": "env_019e2590d33f711fabf42f2857cecd8a"
}
Response fields
| Field | Type | Description |
|---|
data | array | Array of environment objects |
first_id | string | ID of the first record on this page |
last_id | string | ID of the last record on this page |
has_more | boolean | Whether more records remain |
Errors
| HTTP | Type | Trigger |
|---|
| 401 | authentication_error | PAT invalid or expired |
| 403 | permission_error | Not authorized for this resource |
See Errors for the full error envelope.