# List service tokens (/docs/rest-api/endpoints/service-tokens/get-workspaces-by-workspace-id-service-tokens)

> For the complete Prisma documentation index, see [llms.txt](https://www.prisma.io/docs/llms.txt). A markdown version of any docs page is available by appending `.md` to its URL.

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

Location: REST API > Endpoints > Service Tokens > List service tokens

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

## API reference

### List service tokens

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

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

#### Parameters

- `workspaceId` (path, string, required)
- `cursor` (query, string | null, optional): Cursor for pagination
- `limit` (query, integer, optional): Page size, 1-100

#### Responses

- `200`: Returns the list of service tokens. Empty when the workspace does not exist or the caller is not a member of it.
- `401`: Missing or invalid authorization token.

## Related pages

- [`Create service token`](https://www.prisma.io/docs/rest-api/endpoints/service-tokens/post-workspaces-by-workspace-id-service-tokens): Creates a new service token for the given workspace. The `value` field is returned exactly once in this response and is never stored — copy it immediately.
- [`Delete service token`](https://www.prisma.io/docs/rest-api/endpoints/service-tokens/delete-workspaces-by-workspace-id-service-tokens-by-service-token-id): Revokes the service token with the given ID by deleting it.