Usage
Endpoints
Usage
Retrieve API usage statistics, credit consumption, and request counts.
GET
Usage
Retrieve your API usage statistics including request counts, credit consumption, and cache hit rates. This endpoint is free.Documentation Index
Fetch the complete documentation index at: https://developers.trynawa.com/llms.txt
Use this file to discover all available pages before exploring further.
Request
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
from | string | No | Start date (ISO 8601). Default: start of current month. |
to | string | No | End date (ISO 8601). Default: now. |
group_by | string | No | Group by: day, week, month, endpoint. Default: day. |
Example request
Response
Success response (200)
Result fields
| Field | Type | Description |
|---|---|---|
total_requests | integer | Total API requests in the period |
total_cost | number | Total credit cost in USD |
cache_hit_rate | number | Percentage of requests served from cache (0–1) |
by_endpoint | array | Breakdown by endpoint |
balance | object | Current balance and credit history |