v0 Platform API/API Reference/Projects
Find Environment Variables
Retrieves all environment variables for a given project.
GET/v1/projects/{projectId}/env-vars
Usage
TypeScript Example
API Signature
Request
Path Parameters
projectId: string
The unique identifier of the project whose environment variables should be retrieved.
Query Parameters
decrypted?: 'true' | 'false'
Whether to return decrypted values. Defaults to false (encrypted).
Response
object: 'list'
data: object[]
id?: string
A unique identifier for the environment variable.
object?: 'environment_variable'
The object type.
key?: string
The name of the environment variable.
value?: string
The value of the environment variable.
decrypted?: boolean
Whether the value is decrypted or encrypted.
createdAt?: number
The timestamp when the environment variable was created.
updatedAt?: number
The timestamp when the environment variable was last updated.