Skip to content
Skip to Content

List a project's environments

GET
/projects/{projectId}/environments

Authorization

bearer
headerAuthorizationBearer <token>

An API key (opk_…) or a CLI token (opc_…).

Path parameters

projectId*string

The project's id.

Response body

List a project's environments

application/json
  1. response
data*array<>
nextCursor*|

Pass as cursor for the next page; null on the last.

Example request
curl "https://openpanel.sh/api/v1/projects/$PROJECT_ID/environments" \  -H "Authorization: Bearer $OPENPANEL_TOKEN"
Example response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "production": true    }  ],  "nextCursor": "string"}