Skip to content
Skip to Content

What a service's containers get

GET
/services/{serviceId}/env

The variables of the project, its environment and the service, merged with the narrowest winning, as the next deployment will use them. Secrets come without their value.

Authorization

bearer
headerAuthorizationBearer <token>

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

Path parameters

serviceId*string

The service's id.

Response body

What a service's containers get

application/json
  1. response
data*array<>
Example request
curl "https://openpanel.sh/api/v1/services/$SERVICE_ID/env" \  -H "Authorization: Bearer $OPENPANEL_TOKEN"
Example response
{  "data": [    {      "name": "string",      "value": "string",      "secret": true,      "scope": "project",      "variableId": "eae575ee-abaf-4fe6-839b-c9f504c6a4a0"    }  ]}