---
title: "Get Api Key Stats"
method: GET
path: "/api/v1/config/api-keys/{key_id}/stats"
tags: ["api-keys"]
---

# Get Api Key Stats

`GET /api/v1/config/api-keys/{key_id}/stats`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/config/api-keys/{key_id}/stats`
- Auth: none declared

Get API key usage statistics.

## Path parameters

- `key_id` string, required: Public id of the API key (`akey_` + 22 base62 characters).

## Query parameters

- `days` integer

## Response `200`

Successful Response

- APIKeyStats: API key usage statistics.
  - `total_requests` integer, required: Total requests in period
  - `daily_stats` DailyStats[], required: Daily breakdown
    - `date` string, required: Date in ISO format (YYYY-MM-DD)
    - `count` integer, required: Number of requests on this date
  - `period_start` string, required: Start date of statistics period
  - `period_end` string, required: End date of statistics period

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/09f17f5ada29?raw)
