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

# Per-day request counts for every access token in a project

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

## Request

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

Returns a zero-filled daily series of request counts for each of the
project's access tokens, oldest first. Every day in the window is
present, so a gap reads as zero rather than missing.

Revoked tokens are included, because the traffic they made before
revocation is usually the reason you are looking.

`days` defaults to 30 and is capped at 60, which is also how long per-day
counts are retained — a longer window cannot be answered.

A platform token sees every token in the project. A project access token
sees only its own row, so it can watch its own traffic without being
able to enumerate the project's other credentials by name.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `days` integer

## Response `200`

Successful response

- ProjectAccessTokenUsage[]
  - `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`: Project 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/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)
