List a project's environments
GET
bearerheader
AuthorizationBearer <token>An API key (opk_…) or a CLI token (opc_…).
projectId*stringThe project's id.
List a project's environments
application/json- response
data*array<>nextCursor*|Pass as cursor for the next page; null on the last.
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"}Give a member access to a project PUT
Overrides their organization role on this project: none hides it, view, deploy or admin; null lets the role decide again. The owner always has admin.
Create an environment POST
An environment beside production, such as staging, with its own services, variables and private network on each server, so its services may share names with production's. Project admins only.