Environment
List environment variables (secrets masked): every entry, or with ?environment= the one value each name has there
get/projects/{projectId}/env
Request
- Base URL: https://hostingsurge.com/api/v1
- URL: https://hostingsurge.com/api/v1/projects/{projectId}/env
- Auth: one of:
- HTTP bearer
- API key in cookie __Host-hs_session
Path parameters
projectIdstring uuid required
Example:3f2b8a4e-5c1d-4e8f-9a7b-2c6d1e0f4a5b
Query parameters
reveal'0' | '1' | 'true' | 'false'
Return secret values (needs the reveal scope)
environment'production' | 'preview' | 'development'
Only the value each name has in this environment (production, preview or development)
gitBranchstring
With environment=preview: that branch's own value first, as its preview gets it
Response
Variables
Changes
No recorded changes to this operation across all 1 revision of this API.