environmentVariables
List environment variables for a site
Returns all environment variables for a site. This convenience method behaves the same as getEnvVars but doesn't require an account_id as input.
get/api/v1/sites/{site_id}/env
Request
- Base URLhttps://api.netlify.com/api/v1
- URLhttps://api.netlify.com/api/v1/api/v1/sites/{site_id}/env
- AuthOAuth 2Implicit: https://app.netlify.com/authorize
Path parameters
site_idstring required
Scope response to site_id
Query parameters
context_name'all' | 'dev' | 'dev-server' | 'branch-deploy' | 'deploy-preview' | 'production'
Filter by deploy context
scope'builds' | 'functions' | 'runtime' | 'post_processing'
Filter by scope
Response
OK
Changes
No recorded changes to this operation across all 65 revisions of this API.