account-access

Create a personal access token

Changed on

Creates a personal access token or exchanges a supported OAuth credential.

post/me/tokens

Request

  • Base URL: https://eu.bisibility.com/api/v1
  • URL: https://eu.bisibility.com/api/v1/me/tokens
  • Auth: HTTP bearer

Headers

Bisibility-API-Version'v1'

API contract version requested by the client. Omit this header to use the current backward-compatible behavior.

X-Bisibility-Source'sdk' | 'cli' | 'mcp'

Declares the client that produced the request for usage reporting: sdk, cli or mcp. Optional; any other value counts as api. It never changes authentication or which budget applies (every bearer-authenticated request counts against the API, MCP and SDK budget).

Request body

expires_in_days30 | 90 | 365 | null nullable
namestring required
scope'admin' | 'read' | 'write'

Response

Created

created_atstring date-time required
expires_atstring date-time nullable required
idstring required
last_used_atstring date-time nullable required
namestring required
prefixstring required
revoked_atstring date-time nullable required
scope'admin' | 'read' | 'write' required
masked_valuestring required
tokenstring required

Example response

{
  "id": "pat_a00000000000000000000000",
  "prefix": "bsb_pat_live_xxxxxxxx",
  "token": "bsb_pat_live_..."
}

Changes

    • info

      media type application/json was changed to a more specific media type application/problem+json for the response status

    • info

      media type application/json was changed to a more specific media type application/problem+json for the response status

    • info

      media type application/json was changed to a more specific media type application/problem+json for the response status

    • info

      media type application/json was changed to a more specific media type application/problem+json for the response status

    • info

      media type application/json was changed to a more specific media type application/problem+json for the response status