v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Service Accounts

Get an access token for a service account

Get a specific access token for a service account by its ID.

get/api/v2/service_accounts/{service_account_id}/access_tokens/{token_id}

Path parameters

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

The ID of the service account.

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": "ddsat_abc123",
      "scopes": [
        "dashboards_read",
        "dashboards_write"
      ]
    },
    "relationships": {
      "owned_by": {
        "data": {
          "id": "00000000-0000-0000-2345-000000000000",
          "type": "service_account"
        }
      }
    },
    "type": "service_access_tokens"
  }
}