Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

List service tokens

GET/v1/workspaces/{workspaceId}/service-tokensList service tokens

Returns the service tokens for the given workspace, newest first.

Parameters

workspaceIdstringpathrequired

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

cursornull | stringquery

Cursor for pagination

limitintegerquery

Page size, 1-100

default 100 · maximum 100 · minimum 1

Responses

200Returns the list of service tokens. Empty when the workspace does not exist or the caller is not a member of it.application/json
object
dataarray of objectrequired
Show child attributes
Show array items
createdAtstring · date-timerequired
expiresAtnull | string · date-time
idstringrequired

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

namestringrequired
typestringrequired

const "serviceToken"

valueHintstringrequired
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",
      "expiresAt": "2026-06-09T00:00:00Z",
      "id": "string",
      "name": "string",
      "type": "serviceToken",
      "valueHint": "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"
  }
}
Documentation menu