Stophy

Usage

Return daily credit and request counts for the authenticated key.

Return daily credit and request counts for the authenticated key.

Authorization

bearerAuth
AuthorizationBearer <token>

API key from your dashboard. Prefix with Bearer in the Authorization header.

In: header

Query Parameters

days?string

Time window: 'today', the last 7 days, or the last 30 days.

Default"7"
Value in"today" | "7" | "30"
tz?string

Timezone offset in minutes used to bucket activity into days. Defaults to UTC.

Default"0"

Response Body

application/json

application/json

GET
/v1/usage
curl -X GET "https://example.com/v1/usage"
{  "success": true,  "requestId": "string",  "data": {    "items": [      {        "date": "string",        "credits": "number",        "requests": "number"      }    ]  }}
{  "success": false,  "code": "UNAUTHORIZED",  "error": "string",  "details": null}