Retrieve the environment variables of a project by id or name
Changed onRetrieve the environment variables for a given project by passing either the project id or name in the URL.
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v10/projects/{idOrName}/env
- Auth: HTTP bearer
Path parameters
The unique project identifier or the project name
Query parameters
If defined, the git branch of the environment variable to filter the results (must have target=preview)
If true, the environment variable value will be decrypted
The source that is calling the endpoint.
The unique custom environment identifier within the project
The custom environment slug (name) within the project
The Team identifier to perform the request on behalf of.
The Team slug to perform the request on behalf of.
Response
The list of environment variables for the given project
Example response
{
"pagination": {
"count": 20,
"next": 1540095775951,
"prev": 1540095775951
}
}Changes
- breaking
added
subschema #1subschema #2subschema #3to the response bodyoneOflist for the response status - info
removed
subschema #1subschema #2subschema #3from the response bodyoneOflist for the response status
- breaking
- info
added the non-success response with the status
- info