List Node.js environment variables
Lists the Node.js environment variables currently set for the website.
Lists the Node.js environment variables currently set for the website. Values are always
masked as ******** and cannot be read back through this API. Use this endpoint to see
which keys are configured or to verify a change, not to read values.
To change variables, use the Replace Node.js environment variables endpoint. It replaces
the whole set, so never copy the masked values from this response into that request; send
the full desired set with real values taken from the project .env file or the user
prompt instead.
API Token authentication
u123456789Domain name
mydomain.tldSuccess response
Array of Hosting.V1.NodeJs.EnvVarResource
Environment variable name
DATABASE_URLAlways the literal string ********. Real values cannot be read back through this API.
********Unauthenticated response
Error response
GET /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"key": "DATABASE_URL",
"value": "********"
}
]Last updated
Was this helpful?