v1
latestSwagger 2.02026-07-13180103150.2 KBenvironmentVariables
Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI.
get/accounts/{account_id}/env
Path parameters
account_idstring required
Scope response to account_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
site_idstring
If specified, only return environment variables set on this site
Response
OK