Skip to Content

Usage summary

Returns a usage summary. The `cache` block holds this key's own cache hit rate, for today and for this month.

GET
/v1/usage

Returns a usage summary. The cache block holds this key's own cache hit rate, for today and for this month.

Authorization

headerX-API-KEY<token>

Response Body

OK

application/json
  1. response
data*
meta?
Example Request
curl -X GET 'https://api.agenttweet.com/v1/usage'
Example Response
{  "data": {},  "meta": {    "count": 0,    "cursor": "string",    "provider": "string",    "cached": true,    "tokens_raw": 0,    "tokens_flat": 0,    "tokens_saved": 0,    "tokens_saved_pct": 0,    "tokens_billed": 0,    "cost_usd": 0,    "balance_usd": 0,    "request_id": "string"  }}