---
title: "Per-day request counts for one access token"
method: GET
path: "/projects/{id}/access-tokens/{tokenId}/usage"
tags: ["Project Access Tokens"]
---

# Per-day request counts for one access token

`GET /projects/{id}/access-tokens/{tokenId}/usage`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/access-tokens/{tokenId}/usage`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Returns a zero-filled daily series of request counts for a single token,
oldest first, so the response always has exactly `days` entries.

`days` defaults to 30 and is capped at 60, matching how long per-day
counts are retained.

A project access token may read only its own usage; asking for another
token's returns `403`. A platform token may read any token in the
project.

## Path parameters

- `id` string, uuid, required
- `tokenId` string, uuid, required

## Query parameters

- `days` integer

## Response `200`

Successful response

- ProjectAccessTokenUsage: Zero-filled daily request counts for a single token, oldest first. Every day in the window is present, so a gap reads as zero rather than missing. Counts every request the token authenticated, including ones then refused — a read-only token attempting a write, or a token presented on another project's route. That is deliberate: after a leak, the probing is the part you want to see, and a counter that hid it would make a token look idle while it was being tried.
  - `token_id` string, uuid, required
  - `name` string, required
  - `token_prefix` string, required: The token's display prefix, which identifies the credential when its name does not. Revoking frees a name, so a project that rotated `ci-deploy` has two entries here both called `ci-deploy`. Not usable as a credential.
  - `days` integer, required: Number of daily entries returned, always equal to the requested window.
  - `daily` ProjectAccessTokenUsageDailyEntry[], required
    - `day` string, date, required: UTC day.
    - `requests` integer, required
  - `total_requests` integer, required

## Other responses

- `400`: Bad request - invalid window
- `401`: Unauthorized - invalid or missing token
- `403`: Forbidden - not the project owner
- `404`: Token not found

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/access-tokens/:tokenId/usage/get.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
