VENUZ API Español

media.get: A short-lived link to see one photo, video or audio of a chat.

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/chats/{chatId}/messages/{messageId}/media/{mediaId} · MCP tool media_get · Media

What it does

A short-lived link to see one photo, video or audio of a chat.

When to use it

Returns a link, valid for 5 minutes, to download one media of a chat: the photo, video, gif or audio that a message carries. Take chatId, messageId and mediaId from chats.messages (message_id) and chats.media (message_id and media_id). It first checks through the account's own connection that the media exists and can be played, with a single read; it then returns the VENUZ link in data.url (never an address of the original host). Open that link with a plain GET, without the API key, right away: every download counts against the limits of this key like one more call to this function, and the link only works while the key can still read this chat. A video protected with DRM has no full link. Pass variant=thumb or variant=preview to get the small thumbnail or the larger preview image OnlyFans keeps for the media instead of the media itself (default full); if OnlyFans has no such version, this answers 404 media_variant_unavailable. It never changes anything. A chat or message of an account outside this key, or a media that does not exist, answers 404, the same in all cases.

Permission and cost

Permissionchats:read
EffectRead only: it never changes anything.
Cost classrealtime — costs 2 units (realtime call to the account on OnlyFans; also shows the account queue)
ScopeThe accounts this key can use.

Parameters

NameInTypeRequiredDescription
chatIdpathstring (uuid)yesChat id in VENUZ (from chats.inbox or chats.list).
messageIdpathstringyesOnlyFans id of the message that carries the media (message_id from chats.messages or chats.media).
mediaIdpathstringyesOnlyFans id of the media (media_id from chats.media).
variantqueryone of "full", "thumb", "preview", default "full"noWhich version of the media the link downloads: full (default, the media itself), thumb (the small thumbnail OnlyFans keeps) or preview (the larger preview image OnlyFans keeps). thumb and preview are always images, also for a video. If OnlyFans has no such version for this media the answer is 404 media_variant_unavailable (VENUZ never builds one and never falls back to full).

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/chats/7a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d/messages/5000000002/media/3301234567" \
  -H "Authorization: Bearer $VENUZ_API_KEY"

Example response (200)

{
  "account": {
    "id": "3a9e1c7b-2d4f-4b8a-9c6e-1f0d2b3a4c5e",
    "name": "Sample Creator",
    "connection": {
      "state": "connected",
      "as_of": "2026-09-28T12:00:00.000Z"
    }
  },
  "chat_id": "c0000000-0000-4000-8000-000000000001",
  "message_id": "9150859171849",
  "media_id": "3301234567",
  "data": {
    "url": "https://open.venuz.ai/files/media/AQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "expires_at": "2026-09-28T12:05:00.000Z",
    "media_type": "video",
    "variant": "full"
  },
  "source": "onlyfans",
  "as_of": "2026-09-28T12:00:00.000Z"
}

Response fields

FieldTypeRequiredDescription
accountobjectyesThe OnlyFans account this data belongs to, with its connection state.
account.idstring (uuid)yes
account.namestringyesDisplay name of the account in VENUZ, set by the agency.
account.connectionobjectyes
account.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.
account.connection.as_ofstring (date-time), or nullyesWhen VENUZ last saw the account connected. Null if never.
chat_idstring (uuid)yes
message_idstringyesOnlyFans id of a message (digits assigned by OnlyFans, at most 9007199254740991).
media_idstringyesOnlyFans id of the media (digits assigned by OnlyFans).
dataobjectyes
data.urlstring (uri)yesLink to download the media from VENUZ, never from the original host. It works without the API key, for 5 minutes and only while this key can still read the media; every download counts against the limits of this key. Download it now with a plain GET: never store or share it.
data.expires_atstring (date-time)yesWhen the link stops working.
data.media_typeone of "photo", "video", "gif", "audio", or nullyesWhat the media is, when VENUZ knows it; null when it does not.
data.variantone of "full", "thumb", "preview"yesThe version the link downloads, as requested (full unless you asked for thumb or preview). The bytes of thumb and preview are an image even when media_type is video.
sourceone of "store", "onlyfans"yesstore: read from the copy VENUZ keeps (fast, no load on the OnlyFans account). onlyfans: a live check on the account during this call.
as_ofstring (date-time)yesWhen this data was true. For source=store it is when VENUZ last updated its copy (or read it, if the record carries no update time); for source=onlyfans it is the moment OnlyFans answered.

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.
resource_not_found404Check chatId, messageId and mediaId: take them from chats.messages and chats.media. A video with DRM and an unsent message also answer this.
media_variant_unavailable404Ask for variant=full or leave variant out. VENUZ never builds a thumbnail itself and never answers with the full media instead.
media_too_large409Do not retry. Ask for variant=thumb or variant=preview.
account_disconnected409The account is disconnected, so the media cannot be checked. Retry after it shows connected in GET /v1/whoami.
of_rejected409Nothing was changed. Do not retry the same request: check that the item still exists on OnlyFans and that the account can see it on OnlyFans, then read again with a corrected request.
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.
of_unavailable503Nothing was done. Wait for Retry-After seconds and retry once.
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.