Account endpoints

GET /v1/account

Plan, quota and billing state of the key's account

Returns the plan that applies now, the allowance of the current window and how much of it is used. Not counted toward the quota.

Responses

200The account summary.
401Missing or invalid key.
429Rate limited.

Example request

curl -X GET "https://api.qriton.com/v1/account" \
  -H "Authorization: Bearer $QRITON_API_KEY"

GET /v1/usage

Usage statistics per day, key and operation

Calls, calls counted toward the quota, errors, rate-limited calls and latency bands (p50, p95) for the account, by day, by key and by operation. At most 92 days per request. Not counted toward the quota.

Parameters

NameInTypeDescription
fromquerystringFirst day, YYYY-MM-DD. Default: 30 days before `to`.
toquerystringDay after the last day, YYYY-MM-DD. Default: tomorrow (UTC).

Responses

200Usage statistics.
400Invalid range.
401Missing or invalid key.

Example request

curl -X GET "https://api.qriton.com/v1/usage" \
  -H "Authorization: Bearer $QRITON_API_KEY"