---
title: "GET /tokens/{id}"
method: GET
path: "/tokens/{id}"
tags: ["tokens"]
---

# GET /tokens/{id}

`GET /tokens/{id}`

## Request

- Base URL: `https://api.axiom.co/v2`
- URL: `https://api.axiom.co/v2/tokens/{id}`
- Auth: OAuth 2
  - Authorization code: `https://accounts.google.com/o/oauth2/v2/auth`
  - Token URL: `https://www.googleapis.com/oauth2/v4/token` scopes: `apiTokens|read`
- TypeScript: <https://skmtc.dev/axiom/apis/axiom-public-api/docs/tokens/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves an active API token by ID. The response doesn't include the token's secret value.

## Path parameters

- `id` string, required

## Response `200`

API token.

- APIToken
  - `apiLastUsed` string, date-time, nullable: When the token was last used on an API other than ingest
  - `auditIdentity` string: Audit identity of the token
  - `datasetCapabilities` DatasetCapabilities, required
  - `description` string: Description of the token
  - `expiresAt` string, date-time, nullable: Expiration date of the token (ISO 8601 format)
  - `id` string, required: ID of the token
  - `ingestLastUsed` string, date-time, nullable: When the token was last used to ingest
  - `name` string, required: Name of the token
  - `orgCapabilities` OrgCapabilities, required
    - `annotations` string[]: Annotations capability
    - `apiTokens` string[]: API tokens capability
    - `auditLog` string[]: Audit Log capability
    - `billing` string[]: Billing capability
    - `dashboards` string[]: Dashboards capability
    - `datasets` string[]: Datasets capability
    - `endpoints` string[]: Endpoints capability
    - `integrations` string[]: Integrations capability
    - `labels` string[]: Labels capability
    - `monitors` string[]: Monitors capability
    - `notifiers` string[]: Notifiers capability
    - `rbac` string[]: Access control capability
    - `sharedAccessKeys` string[]: Shared access keys capability
    - `users` string[]: Users capability
    - `views` string[]: Views capability
  - `samlAuthenticated` boolean
  - `viewCapabilities` ViewCapabilities

## Other responses

- `404`: API token not found or expired.

## Changes

- **2026-10-16** (v2) `fbc1b8430feb`: 1 info
  - added the non-success response with the status `404`
- **2026-10-14** (v2) `8920e1697284`: 2 warning, 4 info
  - removed the optional property `datasetCapabilities/additionalProperties/data` from the response with the `200` status
  - removed the optional property `orgCapabilities/flows` from the response with the `200` status
  - added the optional property `apiLastUsed` to the response with the `200` status
  - added the optional property `auditIdentity` to the response with the `200` status
  - …2 more

[Operation history](https://skmtc.dev/axiom/apis/axiom-public-api/changes/tokens/:id/get.md)

---

[API](https://skmtc.dev/axiom/apis/axiom-public-api.md) - [All operations](https://skmtc.dev/axiom/apis/axiom-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/axiom/apis/axiom-public-api/revisions/7e39a295e3ba?raw)
