---
title: "Workspace Tokens API Reference | Linkbreakers"
description: "The API tokens that authenticate these endpoints: create, list, update and revoke them."
canonical: "https://linkbreakers.com/help/api/workspace-tokens"
---

# Workspace Tokens

The API tokens that authenticate these endpoints: create, list, update and revoke them.

7 entries on this page

## The workspace token object

A long-lived credential that lets back-end integrations call the workspace's API without a person signing in. Keeps audit metadata for security reviews.

`createdAt` string (date-time) 

Read-only

The timestamp when the token was created

`createdBy` string

The member who created the token (UUID of creator)

`fullAccess` boolean 

Read-only

True when the token may call every endpoint, including ones behind scopes added later. Tokens created without scopes have full access.

`id` string

The unique identifier of the workspace token (UUID)

`keyType` enum 

Read-only

The key type of the token (secret or publishable)

Allowed values

* `WORKSPACE_TOKEN_KEY_TYPE_SECRET` Secret key with full API access
* `WORKSPACE_TOKEN_KEY_TYPE_PUBLISHABLE` Publishable key with limited access
* `WORKSPACE_TOKEN_KEY_TYPE_UNSPECIFIED` Default value (should not be used)

`lastUsedAt` string (date-time) 

Read-only

The timestamp when the token was last used

`name` string

The name of the token

`scopes` array of enum 

Read-only

The scopes the token holds. With full access, every scope that exists today.

`support` boolean 

Read-only

True when Linkbreakers support issued the token to act on the workspace. Its calls do not count toward the workspace's API usage. Delete it to revoke support's access.

`updatedAt` string (date-time) 

Read-only

The timestamp when the token was last updated

`workspaceId` string

The workspace ID the token belongs to (UUID)

Example workspace token

```json
{
  "createdAt": "2026-03-14T09:30:00Z",
  "createdBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
  "fullAccess": false,
  "id": "e9c2a7f4-5d1b-4e8a-9c3f-6b0d2e8a4f17",
  "keyType": "WORKSPACE_TOKEN_KEY_TYPE_SECRET",
  "lastUsedAt": "2026-03-21T12:47:13Z",
  "name": "Production token",
  "scopes": [
    "API_SCOPE_LINKS_READ",
    "API_SCOPE_LINKS_WRITE"
  ],
  "support": false,
  "updatedAt": "2026-03-18T16:05:00Z",
  "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
}
```

### Parameters

`pageSize` integer (int64) 

query

Maximum number to return. Defaults to 100, capped at 1000.

`pageToken` string 

query

Cursor from a previous response's nextPageToken. Empty starts at the first page. Pages are ordered by (createdAt, id), which never change, so a record cannot move between pages while a client is walking them.

`cursor` string 

query

Opaque cursor from the previous page's nextPageToken. Same as pageToken; when both are sent, pageToken wins.

### Response

200

`nextPageToken` string

Cursor to continue listing tokens. Empty on the last page.

`tokens` array of object

Tokens scoped to the calling workspace

Fields: [The workspace token object](#workspace-tokens-object).

`totalCount` integer (int64)

How many records exist in total, so a client can tell a complete answer from a page of one. A local-first client reads absence from this list as deletion, and may only do so when the count it was given matches what it received: without that, one page would look like the whole model and everything beyond it would be removed locally.

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X GET "https://api.linkbreakers.com/v1/workspace-tokens" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

Response 200

```json
{
  "nextPageToken": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wMy0xNFQwOTozMDowMFoiLCJpZCI6ImI3ZTNkMWE5In0",
  "tokens": [
    {
      "createdAt": "2026-03-14T09:30:00Z",
      "createdBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
      "fullAccess": false,
      "id": "e9c2a7f4-5d1b-4e8a-9c3f-6b0d2e8a4f17",
      "keyType": "WORKSPACE_TOKEN_KEY_TYPE_SECRET",
      "lastUsedAt": "2026-03-21T12:47:13Z",
      "name": "Production token",
      "scopes": [
        "API_SCOPE_LINKS_READ",
        "API_SCOPE_LINKS_WRITE"
      ],
      "support": false,
      "updatedAt": "2026-03-18T16:05:00Z",
      "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
    }
  ],
  "totalCount": 2
}
```

### Parameters

`id` string 

path

Required

Identifier of the desired token (UUID)

### Response

200

`token` object

Token metadata (does not include the secret access token)

Fields: [The workspace token object](#workspace-tokens-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X GET "https://api.linkbreakers.com/v1/workspace-tokens/{id}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

Response 200

```json
{
  "token": {
    "createdAt": "2026-03-14T09:30:00Z",
    "createdBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
    "fullAccess": false,
    "id": "e9c2a7f4-5d1b-4e8a-9c3f-6b0d2e8a4f17",
    "keyType": "WORKSPACE_TOKEN_KEY_TYPE_SECRET",
    "lastUsedAt": "2026-03-21T12:47:13Z",
    "name": "Production token",
    "scopes": [
      "API_SCOPE_LINKS_READ",
      "API_SCOPE_LINKS_WRITE"
    ],
    "support": false,
    "updatedAt": "2026-03-18T16:05:00Z",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  }
}
```

### Response

200

`scopes` array of object

Every scope, ordered by resource then read before write.

5 child attributes

`access` enum

Whether the scope reads or writes the resource.

Allowed values

* `API_SCOPE_ACCESS_READ` Reads only.
* `API_SCOPE_ACCESS_WRITE` Reads and writes.

`description` string

What the scope allows.

`name` string

The scope string as it appears in OAuth grants and error messages (e.g. links:read).

`resource` string

The resource the scope covers (e.g. links).

`scope` enum

The scope.

Allowed values

* `API_SCOPE_LINKS_READ` Read links, their QR code images, tags, folders and link settings.
* `API_SCOPE_LINKS_WRITE` Create, update and delete links, tags, folders and link settings.
* `API_SCOPE_WORKFLOWS_READ` Read the workflow steps behind a link and validate them.
* `API_SCOPE_WORKFLOWS_WRITE` Create, connect, update, lay out and delete workflow steps.
* `API_SCOPE_QRCODES_READ` Read QR code designs and QR code templates.
* `API_SCOPE_QRCODES_WRITE` Change QR code designs and create, publish and delete QR code templates.
* `API_SCOPE_PAGE_THEMES_READ` Read page themes and page theme templates.
* `API_SCOPE_PAGE_THEMES_WRITE` Change page themes and create, publish and delete page theme templates.
* `API_SCOPE_MEDIA_READ` Read uploaded media.
* `API_SCOPE_MEDIA_WRITE` Upload and delete media.
* `API_SCOPE_DOMAINS_READ` Read custom domains and their DNS instructions.
* `API_SCOPE_DOMAINS_WRITE` Add, verify, update and delete custom domains.
* `API_SCOPE_VISITORS_READ` Read and search visitors and their attributes.
* `API_SCOPE_VISITORS_WRITE` Identify, update and delete visitors and their attributes.
* `API_SCOPE_ANALYTICS_READ` Read events, metrics, time series, analytics data and dashboards.
* `API_SCOPE_ANALYTICS_WRITE` Create, update and delete analytics dashboards and generate widget summaries.
* `API_SCOPE_WEBHOOKS_READ` Read webhooks.
* `API_SCOPE_WEBHOOKS_WRITE` Create, update and delete webhooks.
* `API_SCOPE_INTEGRATIONS_READ` Read the Slack and Google Forms integrations.
* `API_SCOPE_INTEGRATIONS_WRITE` Connect, configure, test, sync and disconnect the Slack and Google Forms integrations.
* `API_SCOPE_WORKSPACE_READ` Read the workspace and its settings.
* `API_SCOPE_WORKSPACE_WRITE` Update the workspace, request enrollment and delete the workspace.
* `API_SCOPE_MEMBERS_READ` Read workspace members.
* `API_SCOPE_MEMBERS_WRITE` Update, revoke, sign out and remove members. Inviting a member or changing a sign-in email or password needs full access.
* `API_SCOPE_TOKENS_READ` Read API tokens and their scopes, never their secrets.
* `API_SCOPE_TOKENS_WRITE` Create, update and delete API tokens, limited to the scopes the calling token holds.
* `API_SCOPE_BILLING_WRITE` Open checkout, credit top-up and billing portal sessions.
* `API_SCOPE_ASSISTANT_READ` Read the Assistant conversation.
* `API_SCOPE_ASSISTANT_WRITE` Send files to the Assistant, clear the conversation and contact support.
* `API_SCOPE_AGENTS_READ` Read agents and their knowledge documents.
* `API_SCOPE_AGENTS_WRITE` Create, update and delete agents and their knowledge documents.
* `API_SCOPE_UNSPECIFIED` Not a scope. Rejected wherever a scope is expected.

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X GET "https://api.linkbreakers.com/v1/workspace-tokens/scopes"
```

Response 200

```json
{
  "scopes": [
    {
      "access": "API_SCOPE_ACCESS_READ",
      "description": "Read links, their QR code images, tags, folders and link settings.",
      "name": "links:read",
      "resource": "links",
      "scope": "API_SCOPE_LINKS_READ"
    }
  ]
}
```

### Parameters

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`keyType` enum 

Required

The key type of the token (required)

Allowed values

* `WORKSPACE_TOKEN_KEY_TYPE_SECRET` Secret key with full API access
* `WORKSPACE_TOKEN_KEY_TYPE_PUBLISHABLE` Publishable key with limited access
* `WORKSPACE_TOKEN_KEY_TYPE_UNSPECIFIED` Default value (should not be used)

`name` string

The name of the token

`scopes` array of enum

The scopes the token may use. Leave empty for full access. A write scope also grants the read scope of the same resource. Publishable keys take no scopes. A token can only grant scopes it holds itself.

### Response

200

`accessToken` string

The actual JWT token to be used for authentication. It is returned only once and cannot be retrieved again.

`token` object

The workspace token

Fields: [The workspace token object](#workspace-tokens-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/workspace-tokens" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "keyType": "WORKSPACE_TOKEN_KEY_TYPE_SECRET",
  "name": "Zapier sync",
  "scopes": [
    "API_SCOPE_LINKS_READ",
    "API_SCOPE_LINKS_WRITE"
  ]
}'
```

Response 200

```json
{
  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ3c2lkIjoiYzBkM2NhZmUiLCJ0aWQiOiJlOWMyYTdmNCJ9.Qm9uam91ciBMeW9u",
  "token": {
    "createdAt": "2026-03-14T09:30:00Z",
    "createdBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
    "fullAccess": false,
    "id": "e9c2a7f4-5d1b-4e8a-9c3f-6b0d2e8a4f17",
    "keyType": "WORKSPACE_TOKEN_KEY_TYPE_SECRET",
    "lastUsedAt": "2026-03-21T12:47:13Z",
    "name": "Production token",
    "scopes": [
      "API_SCOPE_LINKS_READ",
      "API_SCOPE_LINKS_WRITE"
    ],
    "support": false,
    "updatedAt": "2026-03-18T16:05:00Z",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  }
}
```

### Parameters

`id` string 

path

Required

Identifier of the token to update (UUID)

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`fullAccess` boolean

Set to true to give the token full access again. Cannot be combined with scopes.

`name` string

New name for the token. Left unchanged when omitted.

`scopes` array of enum

Replace the token's scopes with these. Cannot be combined with fullAccess.

### Response

200

`token` object

Token metadata (does not include the secret access token)

Fields: [The workspace token object](#workspace-tokens-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X PATCH "https://api.linkbreakers.com/v1/workspace-tokens/{id}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "fullAccess": false,
  "name": "Zapier sync",
  "scopes": [
    "API_SCOPE_LINKS_READ"
  ]
}'
```

Response 200

```json
{
  "token": {
    "createdAt": "2026-03-14T09:30:00Z",
    "createdBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
    "fullAccess": false,
    "id": "e9c2a7f4-5d1b-4e8a-9c3f-6b0d2e8a4f17",
    "keyType": "WORKSPACE_TOKEN_KEY_TYPE_SECRET",
    "lastUsedAt": "2026-03-21T12:47:13Z",
    "name": "Production token",
    "scopes": [
      "API_SCOPE_LINKS_READ",
      "API_SCOPE_LINKS_WRITE"
    ],
    "support": false,
    "updatedAt": "2026-03-18T16:05:00Z",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  }
}
```

### Parameters

`id` string 

path

Required

Identifier of the token to revoke (UUID)

### Response

200

An empty JSON object.

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X DELETE "https://api.linkbreakers.com/v1/workspace-tokens/{id}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

---

Source: https://linkbreakers.com/help/api/workspace-tokens
