---
title: "Ask to pair this token with a workbench origin; the token's owner approves it once in their browser."
method: POST
path: "/workbench/pairing-requests"
tags: ["Workbench"]
---

# Ask to pair this token with a workbench origin; the token's owner approves it once in their browser.

`POST /workbench/pairing-requests`

## Request

- Base URL: `https://www.livediagram.app/api`
- URL: `https://www.livediagram.app/api/workbench/pairing-requests`
- Auth: HTTP bearer

## Request body

- WorkbenchPairingRequestCreate
  - `name` string
  - `origin` string, required

## Response `200`

Success.

- union
  - object
    - `pairing` WorkbenchPairing, required
      - `id` string, required
      - `name` string, nullable, required
      - `origin` string, required
      - `pairedAt` number, required
      - `tokenId` string, required
    - `status` 'paired', required
  - object
    - `code` string, required
    - `expiresAt` number, required
    - `interval` number, required
    - `pairingUrl` string, required
    - `status` 'pending', required

## Other responses

- `400`: Error.
- `401`: Error.
- `403`: Error.
- `429`: Error.

---

[API](https://skmtc.dev/livediagram/apis/livediagram-api.md) · [All operations](https://skmtc.dev/livediagram/apis/livediagram-api/llms.txt) · [OpenAPI document](https://skmtc.dev/livediagram/apis/livediagram-api/revisions/f286d27acfd2?raw)
