# Upload new files to the OnlyFans vault with the VENUZ API — in batches

> **API v1 is being retired.** [API v2](/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](/versioning/)); the `Sunset` header of each v1 response is the date that applies to your key. [Migrate from v1 to v2](/v2/migrate/).

To put new files in the OnlyFans vault of an account, upload each one with [`messages.upload`](/reference/messages/upload/), then call [`vault.upload`](/reference/vault/upload/) with their `upload_ids`, a preview first. Each file comes back with its status and the `of_media_id` of the new vault piece. Your key needs `vault:write` and `chats:write`.

## Before you start: the house fan {#house-fan}

OnlyFans has no way to add a file to the vault without sending it. VENUZ does what its vault screen does: `vault.upload` **sends** each file, in its own message, as a **locked PPV of 5 USD with no text**, to the **house fan** of the account, and OnlyFans keeps it in the vault.

- **You choose the house fan freely**: any fan, and VENUZ validates nothing. That fan receives every file as a **locked PPV of 5 USD** and could buy them, so we recommend an account of your own agency. A message that went out can only be taken back with [`messages.unsend`](/reference/messages/unsend/).
- The house fan is the linked fan of [`vault.settings`](/reference/vault/settings/); save it with [`vault.settings_manage`](/reference/vault/settings-manage/) (`linked_fan_of_id`). That call is a **full replace**: send your current `default_sort`, `default_view` and `hide_viewed_content` too, or they go back to their defaults (`recent`, `grid`, `false`). Read them first with `vault.settings`.
- Without a house fan, `vault.upload` answers `409 vault_fan_not_linked` and sends nothing.

## Step 1: Upload each file {#step-1}

Call `messages.upload` with the file name, type and size, then send the bytes with ONE `PUT` to the `upload_url` it returns. When the `PUT` answers `uploaded`, the file can be used for 1 hour.

```bash
curl -X POST "https://open.venuz.ai/v1/accounts/ACCOUNT_ID/uploads" \
  -H "Authorization: Bearer $VENUZ_API_KEY" -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"file_name":"set-01.jpg","mime_type":"image/jpeg","size_bytes":482113}'
curl -X PUT "UPLOAD_URL" -H "Content-Type: image/jpeg" --data-binary @set-01.jpg
```

## Step 2: Preview {#step-2}

Call `vault.upload` with `dry_run=true`, up to 20 `upload_ids` and `house_fan_of_id`: the id of `linked_fan` in `vault.settings`. Nothing is sent. The preview names the house fan, the price and how many files. If the saved fan is not the one you sent, or it changes before you run the call, you get `409 state_conflict` (`house_fan_changed`) and nothing is sent: read `vault.settings` and preview again.

```bash
curl -X POST "https://open.venuz.ai/v1/accounts/ACCOUNT_ID/vault/uploads?dry_run=true" \
  -H "Authorization: Bearer $VENUZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"house_fan_of_id":"HOUSE_FAN_ID","upload_ids":["UPLOAD_ID_1","UPLOAD_ID_2"]}'
```

## Step 3: Put them in the vault {#step-3}

Repeat the request without `dry_run`, with `preview_id` and an `Idempotency-Key` header. The files go one at a time, in order. Each one comes back with its `status`:

- `in_vault`: it is in the vault. `of_media_id` is the new piece (null if OnlyFans did not give it back: find it with [`vault.of_browse`](/reference/vault/of-browse/)).
- `unknown`: it may have gone out. It is never sent again; ask [`messages.status`](/reference/messages/status/) with its `execution_id`.
- `not_sent`: nothing went out (`reason` says why). The upload comes back and can be used in a new call, **except** with `reason` `of_rejected`: OnlyFans refused the file and the upload is spent, so upload the file again.
- `not_attempted`: not started, because 25 seconds had passed or an earlier file stopped the batch. Call again with these uploads and a new `Idempotency-Key`.

A retry with the same `Idempotency-Key` returns the same answer and sends nothing.

## Step 4: Choose the folder {#step-4}

The folder cannot be chosen when uploading. Put the new pieces in a vault list afterwards with [`vault.of_lists_media`](/reference/vault/of-lists-media/), all the `of_media_id`s in one call.

## Step 5: See a new piece right away {#step-5}

Call [`vault.media_url`](/reference/vault/media-url/) with the `of_media_id` of a new piece to get a download link at once. A piece VENUZ does not keep a copy of yet is read from OnlyFans by its id at that moment: the answer says `source: onlyfans` instead of `store`. If many new pieces of the same account are asked in the same minute, some answer `404` with `details.reason` `not_synced_yet` and a `Retry-After` header: wait that many seconds and ask again. A video with DRM answers `404` with `details.reason` `drm_protected`; ask `variant=thumb` for its image.

A file that came in a chat (not one in the vault) goes by [`media.get`](/reference/media/get/), with the ids of its chat and message.

## Good to know

- Up to 20 files per call and one batch at a time per account (a second one gets `account_busy` with `Retry-After`).
- At the usual speed about 14 files fit in one call; the rest come back `not_attempted`.
- Daily limits: 50 calls per account and 2,000 per key (see [Daily limits](/guides/writes/#daily-limits)).
- An upload is used once: a file that went out, or may have, is never sent again, also not with another `Idempotency-Key`.

VENUZ is independent software for agencies. It is not affiliated with, endorsed or sponsored by OnlyFans. OnlyFans is a trademark of its owner.
