Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

On this pageOverview

List service tokens

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

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

AuthorizationBearer <token>

OAuth2 authentication

In: header

Scope: workspace:admin, offline_access

workspaceId*string

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

cursor?|

Cursor for pagination

limit?integer

Page size, 1-100

Range1 <= value <= 100

Default100

curl -X GET "https://example.com/v1/workspaces/string/service-tokens"
{
  "data": [
    {
      "id": "string",
      "type": "serviceToken",
      "name": "string",
      "valueHint": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "expiresAt": "2019-08-24T14:15:22Z"
    }
  ],
  "pagination": {
    "nextCursor": "string",
    "hasMore": true
  }
}
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu