---
title: "Retrieve advanced API usage analytics"
method: GET
path: "/v1/usage"
tags: ["usage"]
---

# Retrieve advanced API usage analytics

`GET /v1/usage`

Retrieves API usage data with advanced features including time bucketing, multi-dimensional breakdowns, and pagination. All timestamps should be in RFC3339 format.

## Query parameters

- `start_time` string, required
- `end_time` string, required
- `bucket_width` 'hour' | 'day'
- `breakdown_type` string[]
- `page_size` number
- `next_page_token` string

## Response `200`

Usage analytics data successfully retrieved.

- UsageAnalyticsResponse
  - `data` UsageBucket[], required — Array of time buckets containing usage data
    - `starting_at` string, required — RFC3339 timestamp for bucket start
    - `ending_at` string, required — RFC3339 timestamp for bucket end
    - `results` UsageResult[], required — Array of usage results within this time bucket
      - `voice_id` string — Voice identifier
      - `voice_name` string — Human-readable voice name
      - `api_key` string — API key used
      - `model` string — Model used
      - `minutes_used` number, required — Total minutes of API usage
  - `next_page_token` string — Pagination token for next page
  - `total` number, required — Total number of time buckets across all pages

## Other responses

- `400` — Bad Request: Invalid request parameters
- `401` — Unauthorized: Invalid API key
- `408` — Request Timeout: Processing took longer than 30 seconds
- `500` — Internal Server Error: Failed to get usages

---

[API](https://skmtc.net/supertoneapi/apis/supertone-public-api.md) · [All operations](https://skmtc.net/supertoneapi/apis/supertone-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/supertoneapi/supertone-public-api/revisions/1ac6d0957e70/schema)
