---
title: "Get current API key"
method: GET
path: "/api/usage/token"
---

# Get current API key

`GET /api/usage/token`

Retrieve usage, quota, expiration, and model-limit details for the CometAPI API key sent in the bearer Authorization header.

## Response `200`

Current API key usage details.

- object
  - `code` boolean, required — Whether the request succeeded.
  - `message` string, required — Status message.
  - `data` object, required
    - `object` string, required — Object type.
    - `name` string, required — Display name of the bearer API key used by the request.
    - `total_granted` integer, required — Total quota assigned to this key in CometAPI internal quota units.
    - `total_used` integer, required — Quota consumed by this key in CometAPI internal quota units.
    - `total_available` integer, required — Remaining quota available to this key in CometAPI internal quota units.
    - `unlimited_quota` boolean, required — Whether the key bypasses remaining-quota checks.
    - `model_limits` object, required — Model restrictions for this key, keyed by model ID. Empty when no model limits are configured.
    - `model_limits_enabled` boolean, required — Whether model restrictions are active for this key.
    - `expires_at` integer, required — Unix timestamp in seconds when the key expires. `0` means no expiration in this usage response.

---

[API](https://skmtc.net/cometapi/apis/create-api-key.md) · [All operations](https://skmtc.net/cometapi/apis/create-api-key/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cometapi/create-api-key/versions/0863102dbf34/schema)
