3.1 KiB
Return to top
List Envs
=======================================================================================================
GET
/services/{uuid}/envs
List all 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
Path Parameters
uuid*
UUID of the service.
Type
string
Required
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
Authorization
bearerAuth
Variables
Key
Value
uuid*
Try it out
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