api.usage: How this API key has been used, and how much room it has left.
GET /v2/usage · MCP tool api_usage · Your API key
What it does
How this API key has been used, and how much room it has left.
When to use it
Returns what this key did over the last 24 hours, 7 or 30 days: how many calls, how many succeeded, the units counted, the most frequent errors, and the calls per operation and per account, plus one entry per hour or day. It also returns the two per-minute limits every request is counted against in units (this key and the whole agency) with what is left right now, read without charging. Only this key: other keys of the agency are never shown, and the per-account figures only name accounts the key can act on today. Figures can trail the calls by a few seconds. Use it to pace your calls or to find which operation fails; it never changes anything.
Permission and cost
| Permission | none: any valid key |
| Effect | Read only: it never changes anything. |
| Cost class | store — costs 1 unit (reads the copy VENUZ keeps) |
| Scope | The accounts this key can use. |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
window | query | one of "24h", "7d", "30d", default "24h" | no | 24h: the current hour and the 23 before it, by hour. 7d and 30d: today and the days before it, by UTC day. |
Example request (test mode)
With a test key in VENUZ_API_KEY (export VENUZ_API_KEY=vzk_test_…), this request changes nothing: test keys answer from a sample dataset.
curl -X GET "https://open.venuz.ai/v2/usage" \
-H "Authorization: Bearer $VENUZ_API_KEY"
Example response (200)
{
"window": {
"name": "24h",
"starts_at": "2026-09-27T13:00:00.000Z",
"ends_at": "2026-09-28T12:34:56.000Z",
"bucket": "hour"
},
"requests": 42,
"succeeded": 40,
"success_rate": 0.9524,
"cost_units": 61,
"errors": [
{
"code": "account_not_allowed",
"status": 403,
"count": 2
}
],
"by_operation": [
{
"operation_id": "api.whoami",
"requests": 30,
"errors": 0,
"p95_ms": 45
},
{
"operation_id": "chats.inbox",
"requests": 12,
"errors": 2,
"p95_ms": 180
}
],
"by_account": [
{
"account_id": "3a9e1c7b-2d4f-4b8a-9c6e-1f0d2b3a4c5e",
"requests": 12,
"errors": 2
}
],
"series": [
{
"occurred_at": "2026-09-27T13:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-27T14:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-27T15:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-27T16:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-27T17:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-27T18:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-27T19:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-27T20:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-27T21:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-27T22:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-27T23:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-28T00:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-28T01:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-28T02:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-28T03:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-28T04:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-28T05:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-28T06:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-28T07:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-28T08:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-28T09:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-28T10:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-28T11:00:00.000Z",
"requests": 0,
"errors": 0
},
{
"occurred_at": "2026-09-28T12:00:00.000Z",
"requests": 42,
"errors": 2
}
],
"limits": {
"key": {
"limit": 5000,
"used": 3,
"remaining": 4997,
"reset_seconds": 42
},
"agency": {
"limit": 5000,
"used": 5,
"remaining": 4995,
"reset_seconds": 42
}
}
}
Response fields
| Field | Type | Required | Description |
|---|---|---|---|
window | object | yes | |
window.name | one of "24h", "7d", "30d" | yes | 24h: the current hour and the 23 before it, by hour. 7d and 30d: today and the days before it, by UTC day. |
window.starts_at | string (date-time) | yes | Start of the first bucket (UTC). |
window.ends_at | string (date-time) | yes | When these figures were read. |
window.bucket | one of "hour", "day" | yes | |
requests | integer, at least 0 | yes | Calls this key made in the window, answered or refused. |
succeeded | integer, at least 0 | yes | Calls answered with a 2xx or 3xx status. |
success_rate | number, 0 to 1, or null | yes | succeeded / requests. Null when there were no calls. |
cost_units | integer, at least 0 | yes | Units this key counted in the window (1 store, 2 realtime or heavy per request). |
errors | array of object | yes | The 20 most frequent errors. |
errors[].code | string, or null | yes | Error code of the response. Null if the response carried none. |
errors[].status | integer | yes | HTTP status. |
errors[].count | integer, at least 0 | yes | |
by_operation | array of object | yes | Calls per operation, most called first (at most 100). |
by_operation[].operation_id | string, or null | yes | Null for calls refused before reaching an operation (an unknown path). |
by_operation[].requests | integer, at least 0 | yes | |
by_operation[].errors | integer, at least 0 | yes | |
by_operation[].p95_ms | integer, at least 0, or null | yes | 95th percentile of the response time, in milliseconds (approximate). |
by_account | array of object | yes | Calls per OnlyFans account, most called first (at most 100). Only accounts this key can act on today are listed; the other figures count every call of this key. |
by_account[].account_id | string (uuid) | yes | |
by_account[].requests | integer, at least 0 | yes | |
by_account[].errors | integer, at least 0 | yes | |
series | array of object | yes | Calls and errors per bucket, oldest first, empty buckets included. |
series[].occurred_at | string (date-time) | yes | |
series[].requests | integer, at least 0 | yes | |
series[].errors | integer, at least 0 | yes | |
limits | object | yes | The cost limits every call is charged against, read now without charging. A call needs room in both. |
limits.key | object | yes | This key's own bucket. |
limits.key.limit | integer, at least 0 | yes | Units this bucket allows per window (each request costs the units of its cost class: 1 store, 2 realtime or heavy). |
limits.key.used | integer, at least 0 | yes | Units already counted in the current window. |
limits.key.remaining | integer, at least 0 | yes | Units left in the current window. |
limits.key.reset_seconds | integer, at least 0 | yes | Seconds until the window starts again. |
limits.agency | object | yes | The bucket shared by every key of the agency in the same mode (test keys have their own). |
limits.agency.limit | integer, at least 0 | yes | Units this bucket allows per window (each request costs the units of its cost class: 1 store, 2 realtime or heavy). |
limits.agency.used | integer, at least 0 | yes | Units already counted in the current window. |
limits.agency.remaining | integer, at least 0 | yes | Units left in the current window. |
limits.agency.reset_seconds | integer, at least 0 | yes | Seconds until the window starts again. |
Errors and what to do
Every error is { "error", "message", "fix", "docs_url", "request_id" }. Branch on error; do what fix says.
| Error | HTTP | What to do |
|---|---|---|
invalid_request | 400 | Correct the request, then retry. When details.invalid_fields is present, each entry names a field and what it needs (its message); when details.reason is present, it says what is wrong. The parameters and body of every operation are in the specification. |
invalid_api_key | 401 | Send a valid key as "Authorization: Bearer vzk_live_..." (or vzk_test_...). If you lost the key, ask the agency to create a new one. |
api_key_expired | 401 | Ask the agency to rotate the key or create a new one. Keys last at most 366 days. |
api_key_revoked | 401 | Stop using this key. Ask the agency for a new one if you still need access. |
api_key_suspended | 403 | If details.reason is creator_withdrawn, ask the agency owner to create a new key from an active member of the team. If it is suspended_by_venuz, contact VENUZ support: the same key works again as soon as the suspension is lifted, so do not delete it. |
agency_inactive | 403 | The agency's VENUZ account is suspended or closed; access resumes when it is active again. Do not delete the key. |
api_not_enabled | 403 | Ask VENUZ support to enable API access for the agency. Keep the key: it works as soon as access is enabled. |
ip_not_allowed | 403 | Send the request from one of the addresses allowed on the key, or ask the agency to update the allowed addresses. |
insufficient_scope | 403 | Call GET /v2/whoami to see what this key can do. Ask the agency to grant the missing permission (listed in details.missing_scopes) or to use a key that has it. If details.withheld_by_creator is true, the key has the permission but the person who created it cannot do this in VENUZ today: they need the role permissions in details.creator_missing_permissions (when details.creator_needs is any_of, any one of them is enough), or the agency must use a key created by someone who has them. |
rate_limited | 429 | Wait for the number of seconds in the Retry-After header, then retry. Spread requests out instead of retrying in a loop. Each request costs the units of its cost class (header X-Request-Cost: 1 for stored data, 2 for a realtime call to the OnlyFans account or a heavy query), and the RateLimit-* headers show how many units are left for this key and its agency in the current minute. |
internal_error | 500 | Retry once after a few seconds; do not retry in a loop. If the request was a write, retry with the SAME Idempotency-Key, never a new one. If it keeps failing, contact VENUZ support and include the request_id. |
usage_unavailable | 503 | Your calls are not affected. Retry in a minute; if it keeps failing, contact support with the request_id. |
api_halted | 503 | Wait for the number of seconds in the Retry-After header, then retry. Your key is still valid. |
stored_data_unavailable | 503 | Nothing was changed. Wait for the number of seconds in the Retry-After header, then retry once; do not retry in a loop. Narrowing the request (account_id or chat_id, a smaller limit) makes it lighter. If it keeps failing, contact VENUZ support with the request_id. |
VENUZ is independent software for agencies. It is not affiliated with, endorsed or sponsored by OnlyFans. OnlyFans is a trademark of its owner.