For the complete documentation index, see llms.txt. This page is also available as Markdown.

List Node.js environment variables

Lists the Node.js environment variables currently set for the website.

List Node.js environment variables

get

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.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
usernamestringRequiredExample: u123456789
domainstringRequired

Domain name

Example: mydomain.tld
Responses
200

Success response

application/json
keystringOptional

Environment variable name

Example: DATABASE_URL
valuestringOptional

Always the literal string ********. Real values cannot be read back through this API.

Example: ********
get/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env
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?