Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

List environment variables

GET/v1/environment-variablesList environment variables

⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️

Returns a paginated list of environment variables. All filters are optional; combine projectId, class, and key to look up a specific variable by name.

Parameters

cursornull | stringquery

Cursor for pagination

limitnumberquery

Limit for pagination

default 100

projectIdstringquery

pattern ^(proj_)?([cC][^\s-]{8,}|[a-z0-9]+)$

classstringquery

one of "production", "preview"

one of "production", "preview"

keystringquery

maxLength 256 · minLength 1 · pattern ^[A-Z_][A-Z0-9_]*$

branchIdstringquery

pattern ^(br_)?([cC][^\s-]{8,}|[a-z0-9]+)$

Responses

200Returned the page of environment variables.application/json
object
dataarray of objectrequired
Show child attributes
Show array items
branchIdnull | stringrequired
classstringrequired

one of "production", "preview"

createdAtstring · date-timerequired
idstringrequired
isManagedBySystembooleanrequired
keystringrequired
projectIdstringrequired
typestringrequired

const "environment-variable"

updatedAtstring · date-timerequired
urlstring · urirequired
valueKidstringrequired
paginationobjectrequired
Show child attributes
hasMorebooleanrequired

Whether there are more items to paginate

nextCursornull | stringrequired

Next cursor to continue pagination

Example response
{
  "data": [
    {
      "branchId": "string",
      "class": "preview",
      "createdAt": "2026-06-09T00:00:00Z",
      "id": "string",
      "isManagedBySystem": true,
      "key": "string",
      "projectId": "string",
      "type": "environment-variable",
      "updatedAt": "2026-06-09T00:00:00Z",
      "url": "https://example.com",
      "valueKid": "string"
    }
  ],
  "pagination": {
    "hasMore": true,
    "nextCursor": "string"
  }
}
401Missing or invalid authorization token.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
422Invalid request.application/json
object
errorobjectrequired
Show child attributes
codestringrequired
hintstring
messagestringrequired
Example response
{
  "error": {
    "code": "string",
    "hint": "string",
    "message": "string"
  }
}
Documentation menu