environmentVariables
List environment variables for a team or site
Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI.
get/accounts/{account_id}/env
Request
- Base URLhttps://api.netlify.com/api/v1
- URLhttps://api.netlify.com/api/v1/accounts/{account_id}/env
- AuthOAuth 2Implicit: https://app.netlify.com/authorize
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
Changes
No recorded changes to this operation across all 65 revisions of this API.