v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Key Management

Get a personal access token

Get a specific personal access token by its ID.

get/api/v2/personal_access_tokens/{token_id}

Path parameters

token_idstring required
Example:00000000-0000-1234-0000-000000000000

The ID of the access token.

Response

OK

Example response

{
  "data": {
    "attributes": {
      "created_at": "2024-01-01T00:00:00+00:00",
      "expires_at": "2025-12-31T23:59:59+00:00",
      "last_used_at": "2025-06-15T12:30:00+00:00",
      "modified_at": "2024-06-01T00:00:00+00:00",
      "name": "My Access Token",
      "public_portion": "ddpat_abc123",
      "scopes": [
        "dashboards_read",
        "dashboards_write"
      ]
    },
    "relationships": {
      "owned_by": {
        "data": {
          "id": "00000000-0000-0000-2345-000000000000",
          "type": "users"
        }
      }
    },
    "type": "personal_access_tokens"
  }
}