projects

Retrieve the decrypted value of an environment variable of a project by id

Changed on

Retrieve the environment variable for a given project.

get/v1/projects/{idOrName}/env/{id}

Request

  • Base URL: https://api.vercel.com
  • URL: https://api.vercel.com/v1/projects/{idOrName}/env/{id}
  • Auth: HTTP bearer

Path parameters

idOrNamestring required

The unique project identifier or the project name

Example:prj_XLKmu1DyR1eY7zq8UgeRKbA7yVLA
idstring required

The unique ID for the environment variable to get the decrypted value.

Query parameters

teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l

The Team identifier to perform the request on behalf of.

slugstring
Example:my-team-url-slug

The Team slug to perform the request on behalf of.

Response

OR
OR

Changes

    • breaking

      added subschema #1 subschema #2 subschema #3 to the response body oneOf list for the response status

    • info

      removed subschema #1 subschema #2 from the response body oneOf list for the response status

    • info

      added the non-success response with the status