Get the .env variables for an app
GET
/apps/{slug}/env
const url = 'https://your-server.example/api/apps/example/env';const options = {method: 'GET', headers: {cookie: 'session=<session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://your-server.example/api/apps/example/env \ --cookie session=<session>Manage and super_admin users get values. Viewers get every key with
value: "" and masked: true.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
App slug (lowercase, dash-separated).
Responses
Section titled “Responses”Env variables.
Media typeapplication/json
Array<object>
object
key
string
value
Empty for viewers.
string
masked
True when the value is withheld (viewers).
boolean
Example
[ { "key": "DB_PASSWORD", "value": "", "masked": true }]