[Skip to content](https://coolify.io/docs/api-reference/api/operations/list-envs-by-service-uuid#VPContent) Return to top List Envs[​](https://coolify.io/docs/api-reference/api/operations/list-envs-by-service-uuid#list-envs) ======================================================================================================= GET /services/{uuid}/envs List all envs by service UUID. Authorizations[​](https://coolify.io/docs/api-reference/api/operations/list-envs-by-service-uuid#authorizations) ----------------------------------------------------------------------------------------------------------------- bearerAuth Go to `Keys & Tokens` / `API tokens` and create a new token. Use the token as the bearer token. Type HTTP (bearer) Parameters[​](https://coolify.io/docs/api-reference/api/operations/list-envs-by-service-uuid#parameters) --------------------------------------------------------------------------------------------------------- ### Path Parameters uuid\* UUID of the service. Type string Required Responses[​](https://coolify.io/docs/api-reference/api/operations/list-envs-by-service-uuid#responses) ------------------------------------------------------------------------------------------------------- 200400401404 All environment variables by service UUID. Content-Type application/json SchemaJSON JSON \[\ \ {\ \ "id": 0,\ \ "uuid": "string",\ \ "resourceable\_type": "string",\ \ "resourceable\_id": 0,\ \ "is\_literal": true,\ \ "is\_multiline": true,\ \ "is\_preview": true,\ \ "is\_runtime": true,\ \ "is\_buildtime": true,\ \ "is\_shared": true,\ \ "is\_shown\_once": true,\ \ "key": "string",\ \ "value": "string",\ \ "real\_value": "string",\ \ "comment": "string",\ \ "version": "string",\ \ "created\_at": "string",\ \ "updated\_at": "string"\ \ }\ \ \] GET /services/{uuid}/envs Playground[​](https://coolify.io/docs/api-reference/api/operations/list-envs-by-service-uuid#playground) --------------------------------------------------------------------------------------------------------- Authorization bearerAuth Variables Key Value uuid\* Try it out Samples[​](https://coolify.io/docs/api-reference/api/operations/list-envs-by-service-uuid#samples) --------------------------------------------------------------------------------------------------- BrunocURLJavaScriptPHPPython Bruno GET https://app.coolify.io/api/v1/services/%7Buuid%7D/envs Headers authorization: Token cURL curl 'https://app.coolify.io/api/v1/services/{uuid}/envs' \ --header 'Authorization: Token' JavaScript fetch('https://app.coolify.io/api/v1/services/{uuid}/envs', { headers: { Authorization: 'Token' } }) PHP $ch = curl_init("https://app.coolify.io/api/v1/services/{uuid}/envs"); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Token']); curl_exec($ch); curl_close($ch); Python requests.get( "https://app.coolify.io/api/v1/services/{uuid}/envs", headers={ "Authorization": "Token" } ) Powered by [VitePress OpenAPI](https://github.com/enzonotario/vitepress-openapi)