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
| 200 | The account summary. |
| 401 | Missing or invalid key. |
| 429 | Rate 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
| Name | In | Type | Description |
|---|---|---|---|
from | query | string | First day, YYYY-MM-DD. Default: 30 days before `to`. |
to | query | string | Day after the last day, YYYY-MM-DD. Default: tomorrow (UTC). |
Responses
| 200 | Usage statistics. |
| 400 | Invalid range. |
| 401 | Missing or invalid key. |
Example request
curl -X GET "https://api.qriton.com/v1/usage" \
-H "Authorization: Bearer $QRITON_API_KEY"