Personal access tokens

List personal access tokens

Changed on

Lists your own personal access tokens. You only ever see the tokens you created.

ℹ️ Note: Personal access tokens are managed with your own login session. A request authenticated with an API key, a personal access token included, is rejected with a 403.

get/pat

Request

  • Base URL
    https://api.nullplatform.com
  • URL
    https://api.nullplatform.com/pat
  • Auth
    HTTP bearer

Query parameters

searchstring

Matches a token's name, or the key or value of one of its tags. Case-insensitive, up to 255 characters.

statusstring

One or more statuses, separated by commas: active, expiring_soon (expires within the next 7 days), and expired.

expires_at:rangestring

Tokens that expire between two dates, inclusive, as from,to. A date without a time covers the whole UTC day.

expires_at:gtestring

Tokens that expire on or after this date.

expires_at:ltestring

Tokens that expire on or before this date.

sort'name:asc' | 'name:desc' | 'last_used_at:asc_nulls_last' | 'last_used_at:desc_nulls_last'

The order of the results. Tokens never used sort last when sorting by last_used_at.

limitinteger

Maximum number of tokens per page, from 1 to 100. Defaults to 30.

offsetinteger

The number of tokens to skip. Defaults to 0.

Response

The operation was successful.

Example response

{
  "paging": {
    "limit": 30,
    "total": 5
  },
  "results": [
    {
      "id": 1234,
      "name": "local-scripts",
      "masked_api_key": "AAAAxxxxxPTs=",
      "access": "same_as_user",
      "tags": [
        {
          "key": "team",
          "value": "platform"
        }
      ],
      "grants": [
        {
          "id": 5678,
          "nrn": "organization=1:account=2",
          "role_id": 700317756,
          "role_slug": "developer",
          "actions": [
            "application:read",
            "deployment:create"
          ]
        }
      ],
      "personal": true,
      "owner_id": 42,
      "acting_user_id": 42,
      "last_used_at": "2026-10-08T12:00:00.000Z",
      "expires_at": "2027-01-06T00:00:00.000Z",
      "created_at": "2026-10-08T00:00:00.000Z",
      "updated_at": "2026-10-08T00:00:00.000Z"
    }
  ]
}

Changes