Get usage
https://my.neuronai.uz/api/v1/usageReturns your organization's spend and request counts for the last 7, 30 or 90 days, by service and by API key. Reading usage is free.
account:read ruxsatli API kalit kerak.
Soʻrov parametrlari
daysintegerIxtiyoriyStandart:30How many days to count, today included.
Ruxsat etilgan qiymatlar:
73090
Javob
200application/jsonUsage totals grouped by service and by API key.
dataobjectMajburiyrequest_idstringMajburiyFormat: uuid
Sarlavhalar
X-Request-IdstringIxtiyoriyIdentifies this request. A JSON body carries it as
request_idtoo; quote it to support.Format: uuid
X-RateLimit-LimitintegerIxtiyoriyThe requests a minute the rate limit on this endpoint allows. Sent once the limit has counted the request, so not when the key itself is refused.
X-RateLimit-RemainingintegerIxtiyoriyHow many of them are left this minute.
Xatolar
- 401
The API key is missing or not recognized (
invalid_api_key), revoked (api_key_revoked), disabled (api_key_disabled) or expired (api_key_expired). - 403
The key lacks the permission this endpoint needs (
insufficient_permissions), or the client IP is not in its allowlist (ip_not_allowed). - 422
The request failed validation (
invalid_request).error.fieldsnames each invalid field. - 429
A rate or concurrency limit was reached (
rate_limit_exceeded,concurrency_limit_exceeded). Retry afterRetry-Afterseconds. - default
Any other error, in the same shape, such as
server_error(500) orservice_unavailable(503).