Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

Get list of workspaces

GET/v1/workspacesGet list of workspaces

Returns the list of workspaces the current token can access.

Parameters

cursornull | stringquery

Cursor for pagination

limitnumberquery

Limit for pagination

default 100

Responses

200Returns the list of workspaces the current token can access.application/json
object
dataarray of objectrequired
Show child attributes
Show array items
createdAtstring · date-timerequired
idstringrequired

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

namestringrequired
typestringrequired

const "workspace"

urlstring · urirequired
paginationobjectrequired
Show child attributes
hasMorebooleanrequired

Whether there are more items to paginate

nextCursornull | stringrequired

Next cursor to continue pagination

Example response
{
  "data": [
    {
      "createdAt": "2026-06-09T00:00:00Z",
      "id": "string",
      "name": "string",
      "type": "workspace",
      "url": "https://example.com"
    }
  ],
  "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"
  }
}
Documentation menu