VENUZ API Español

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

Permissionnone: any valid key
EffectRead only: it never changes anything.
Cost classstore — costs 1 unit (reads the copy VENUZ keeps)
ScopeThe accounts this key can use.

Parameters

NameInTypeRequiredDescription
windowqueryone of "24h", "7d", "30d", default "24h"no24h: 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

FieldTypeRequiredDescription
windowobjectyes
window.nameone of "24h", "7d", "30d"yes24h: the current hour and the 23 before it, by hour. 7d and 30d: today and the days before it, by UTC day.
window.starts_atstring (date-time)yesStart of the first bucket (UTC).
window.ends_atstring (date-time)yesWhen these figures were read.
window.bucketone of "hour", "day"yes
requestsinteger, at least 0yesCalls this key made in the window, answered or refused.
succeededinteger, at least 0yesCalls answered with a 2xx or 3xx status.
success_ratenumber, 0 to 1, or nullyessucceeded / requests. Null when there were no calls.
cost_unitsinteger, at least 0yesUnits this key counted in the window (1 store, 2 realtime or heavy per request).
errorsarray of objectyesThe 20 most frequent errors.
errors[].codestring, or nullyesError code of the response. Null if the response carried none.
errors[].statusintegeryesHTTP status.
errors[].countinteger, at least 0yes
by_operationarray of objectyesCalls per operation, most called first (at most 100).
by_operation[].operation_idstring, or nullyesNull for calls refused before reaching an operation (an unknown path).
by_operation[].requestsinteger, at least 0yes
by_operation[].errorsinteger, at least 0yes
by_operation[].p95_msinteger, at least 0, or nullyes95th percentile of the response time, in milliseconds (approximate).
by_accountarray of objectyesCalls 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_idstring (uuid)yes
by_account[].requestsinteger, at least 0yes
by_account[].errorsinteger, at least 0yes
seriesarray of objectyesCalls and errors per bucket, oldest first, empty buckets included.
series[].occurred_atstring (date-time)yes
series[].requestsinteger, at least 0yes
series[].errorsinteger, at least 0yes
limitsobjectyesThe cost limits every call is charged against, read now without charging. A call needs room in both.
limits.keyobjectyesThis key's own bucket.
limits.key.limitinteger, at least 0yesUnits this bucket allows per window (each request costs the units of its cost class: 1 store, 2 realtime or heavy).
limits.key.usedinteger, at least 0yesUnits already counted in the current window.
limits.key.remaininginteger, at least 0yesUnits left in the current window.
limits.key.reset_secondsinteger, at least 0yesSeconds until the window starts again.
limits.agencyobjectyesThe bucket shared by every key of the agency in the same mode (test keys have their own).
limits.agency.limitinteger, at least 0yesUnits this bucket allows per window (each request costs the units of its cost class: 1 store, 2 realtime or heavy).
limits.agency.usedinteger, at least 0yesUnits already counted in the current window.
limits.agency.remaininginteger, at least 0yesUnits left in the current window.
limits.agency.reset_secondsinteger, at least 0yesSeconds 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.

ErrorHTTPWhat to do
invalid_request400Correct 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_key401Send 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_expired401Ask the agency to rotate the key or create a new one. Keys last at most 366 days.
api_key_revoked401Stop using this key. Ask the agency for a new one if you still need access.
api_key_suspended403If 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_inactive403The agency's VENUZ account is suspended or closed; access resumes when it is active again. Do not delete the key.
api_not_enabled403Ask VENUZ support to enable API access for the agency. Keep the key: it works as soon as access is enabled.
ip_not_allowed403Send the request from one of the addresses allowed on the key, or ask the agency to update the allowed addresses.
insufficient_scope403Call 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_limited429Wait 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_error500Retry 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_unavailable503Your calls are not affected. Retry in a minute; if it keeps failing, contact support with the request_id.
api_halted503Wait for the number of seconds in the Retry-After header, then retry. Your key is still valid.
stored_data_unavailable503Nothing 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.