VENUZ API Español

api.whoami: What this API key can do.

API v1 is being retired. API v2 was published on 2026-11-09. v1 stops answering on 2026-12-07 (2026-12-21 if your agency asks for the extension), earlier only if no key uses it and announced at least 7 days before (Versioning); the Sunset header of each v1 response is the date that applies to your key. Migrate from v1 to v2.

GET /v1/whoami · MCP tool api_whoami · Your API key

What it does

What this API key can do.

When to use it

Call this first. It returns which agency the key belongs to, the permissions it can use now, the accounts it can act on with their connection state, and the operations it can call. Permissions and accounts can shrink between calls if the agency changes the access of the person who created the key, so call it again after an insufficient_scope or account_not_allowed error. 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
operationsqueryone of "true", "false", default "true"nofalse: the light version, without the list of operations (operations is empty and operations_included is false).

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/v1/whoami" \
  -H "Authorization: Bearer $VENUZ_API_KEY"

Example response (200)

{
  "key": {
    "id": "7f3c2a10-5b1e-4c8d-9a2f-0e6b1d4c3a21",
    "name": "Sample test key",
    "mode": "test",
    "expires_at": "2027-09-28T00:00:00.000Z"
  },
  "agency": {
    "id": "0f4d8e2a-6c3b-4a1f-8e5d-2b7c9a1e4f30",
    "name": "Sample Agency"
  },
  "scopes": [
    "accounts:read",
    "chats:read"
  ],
  "scopes_withheld": [],
  "accounts": [
    {
      "id": "3a9e1c7b-2d4f-4b8a-9c6e-1f0d2b3a4c5e",
      "name": "Sample Creator",
      "connection": {
        "state": "connected",
        "as_of": "2026-09-28T12:00:00.000Z"
      }
    }
  ],
  "operations": [
    {
      "operation_id": "api.whoami",
      "method": "GET",
      "path": "/v1/whoami"
    }
  ],
  "operations_included": true
}

Response fields

FieldTypeRequiredDescription
keyobjectyes
key.idstring (uuid)yesKey id. It stays the same when the key is rotated.
key.namestringyesName of the key, set by the agency (or by VENUZ for a key created by connecting an agent).
key.modeone of "live", "test"yestest keys only see the sample dataset and every write is a preview.
key.expires_atstring (date-time), or nullyes
agencyobjectyes
agency.idstring (uuid)yes
agency.namestringyesAgency name.
scopesarray of one of "accounts:read", "accounts:write", "chats:read", "chats:write", "fans:read", "fans:write", "fans:moderate", "lists:read", "lists:write", "mass:read", "mass:write", "vault:read", … (39 values)yesPermissions this key can use right now.
scopes_withheldarray of one of "accounts:read", "accounts:write", "chats:read", "chats:write", "fans:read", "fans:write", "fans:moderate", "lists:read", "lists:write", "mass:read", "mass:write", "vault:read", … (39 values)yesPermissions granted on the key that it cannot use right now, because the person who created it no longer has them.
accountsarray of objectyesAccounts this key can act on right now.
accounts[].idstring (uuid)yes
accounts[].namestringyesDisplay name of the account.
accounts[].connectionobjectyes
accounts[].connection.stateone of "connected", "connecting", "disconnected"yesConnection state of the OnlyFans account in VENUZ, from our stored record. Some accounts not yet moved to the new connection may read disconnected here; checks on the account are not available for them yet.
accounts[].connection.as_ofstring (date-time), or nullyesWhen VENUZ last saw the account connected. Null if never.
operationsarray of objectyesOperations this key can call right now. Empty with operations=false.
operations[].operation_idstringyesStable operation id. As an MCP tool it is named with _ instead of .
operations[].methodone of "GET", "POST", "PUT", "PATCH", "DELETE"yes
operations[].pathstringyes
operations_includedbooleanyesfalse when the request asked for the light version (operations=false).

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 /v1/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.
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.