---
title: "Get usage statistics"
method: GET
path: "/api/v1/account/usage"
tags: ["Account"]
---

# Get usage statistics

`GET /api/v1/account/usage`

Lifetime task count and credit totals for the API key owner.

## Response `200`

Usage statistics

- UsageResponse
  - `code` 200, required
  - `data` UsageData, required
    - `tasks_created` integer, required — Lifetime count of tasks created by this account.
    - `credits_used` integer, required — Lifetime sum of `credits_cost` across all tasks (includes failed/refunded).
    - `credits_topped_up` integer, required — Lifetime sum of credit top-ups into this account.

## Other responses

- `401` — Missing or invalid API key.
- `429` — Rate limit exceeded. Default quota is 120 requests per 60 seconds per API key.
- `500` — Unexpected server error. Retry only when the operation is known to be safe; task creation may have an ambiguous outcome until idempotency support is available.

---

[API](https://skmtc.dev/sunor/apis/sunor-api.md) · [All operations](https://skmtc.dev/sunor/apis/sunor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sunor/sunor-api/revisions/59314c3f36f7/schema)
