# Sets with the VENUZ API — same field names, pieces in many sets, arm for Calypso

> **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/).

What you read from a set, a collection or a vault piece can be written back with the same field names. Reads and writes were born with different names for the same value; both are kept (nothing is renamed inside `v1`), and every response carries both.

## Step 1: Read the set {#step-1}

[`sets.list`](/reference/sets/list/) returns each set with its read names and, next to them, the names the writes use, with the same value:

| Read name | Write name |
|---|---|
| `min_price_usd` | `min_price` |
| `items` | `item_count` (read only: it is a count) |
| `sold_in_paid_messages` | `available_in_ppv` |
| `sold_in_mass_messages` | `available_in_mass_ppv` |
| `mass_message_price_usd` | `mass_ppv_price` |
| `mass_message_caption` | `mass_ppv_caption` |
| `description` (`{ "untrusted_text": … }`) | `ai_description` (only in writes: reads never return it, see below) |
| collection `mode` | `collection_mode` |

A description may have been written by a vision model, so a read never returns it as plain text: it comes as `description` with an `untrusted_text` object. The writes accept `description` as plain text or as that same object.

## Step 2: Write it with either name {#step-2}

[`sets.prices_manage`](/reference/sets/prices-manage/) accepts `min_price_usd`, `mass_message_price_usd`, `sold_in_paid_messages` and `sold_in_mass_messages`; [`sets.manage`](/reference/sets/manage/) accepts `description` and `mass_message_caption`; [`sets.collections_manage`](/reference/sets/collections-manage/) accepts `mode` and `description`; [`vault.media_manage`](/reference/vault/media-manage/) accepts `tags` for `hashtags`. You can send one name or both; if you send both with different values the call is a 400 `invalid_request` on the read name (`conflicting_alias`) and nothing changes.

```bash
curl -X PUT "https://open.venuz.ai/v1/accounts/ACCOUNT_ID/sets/SET_ID/prices?dry_run=true" \
  -H "Authorization: Bearer $VENUZ_API_KEY" -H "Content-Type: application/json" \
  -d '{"min_price_usd": 12, "sold_in_paid_messages": true}'
```

The response (and the preview) returns the set with both names again.

## Step 3: A piece can be in many sets {#step-3}

A vault piece can belong to several sets. [`vault.media_calypso`](/reference/vault/media-calypso/) (`view=media`) and [`vault.media_manage`](/reference/vault/media-manage/) list every set of a piece in `set_ids`, its primary set first (the one it joined earliest). `set_id` in `vault.media_calypso` is the set of that row; `content_set_id` in `vault.media_manage` is the primary set.

- To ADD a piece to one more set without taking it out of any other: `sets.manage` with `action: add_items`.
- To take it out of ONE set: `sets.remove` with `action: remove_items`.
- `content_set_id` in `vault.media_manage` MOVES it: it leaves its primary set only and joins the one you give; its other sets keep it. `null` takes it out of its primary set only.

### Which sets is each piece in, and the pieces of a set {#piece-sets}

[`vault.media`](/reference/vault/media/) (the whole vault, newest first) and `vault.media_calypso` return, for each piece, `set_ids` and `sets`: one object per set, in the order of `set_ids`, with the same fields in both:

| Field | What it is |
|---|---|
| `id` | The set. |
| `name` | Its name. |
| `collection_id` | The collection it belongs to. |
| `position` | Order of the set inside its collection (the `position` of `sets.list`). In a **sequential** collection the sets are levels sold in order: this is the level. |
| `position_in_set` | Order of the piece inside that set, from 1. |

A piece in no set has `set_ids: []` and `sets: []`.

To list only the pieces of one set or one collection, pass `set_id` or `collection_id` to `vault.media` (the same names as in `vault.media_calypso`, one of them, not with `of_media_ids`). `collection_id` brings the pieces of its active sets, each piece once. To get one level of a sequential collection, find its set in `sets.list` (`position`) and pass its `set_id`.

```bash
curl "https://open.venuz.ai/v1/accounts/ACCOUNT_ID/vault/media?collection_id=COLLECTION_ID&limit=50" \
  -H "Authorization: Bearer $VENUZ_API_KEY"
```

### The numbers of each piece {#piece-numbers}

Each piece of `vault.media` and `vault.media_calypso` carries the same numbers:

| Field | What it is |
|---|---|
| `times_purchased` | Different fans who bought the piece, from the purchases VENUZ records since `purchases_counted_starts_at` (in the response). `0`: nobody bought it since then. `null`: VENUZ cannot know (the piece has no OnlyFans id, the account is not on OnlyFans, or purchases are not recorded in this environment; then `purchases_counted_starts_at` is `null` too). |
| `times_sent` | Times the piece was sent from VENUZ (Calypso, the CRM chat, mass messages sent through VENUZ). Sends made directly on OnlyFans are not counted. |
| `earnings_usd`, `tips_usd`, `revenue_usd` | Deprecated, do not use: a paid message with several pieces does not split its price, so there is no exact money per piece. `earnings_usd` and `tips_usd` are always `null`, `revenue_usd` (`vault.media_calypso`) always `0`, until they are removed. For money, use the analytics reads. |
| `suggested_price_usd` | The price the agency set in VENUZ, or `null` when none is set. |

## Step 4: Put a set on sale when Calypso knows it {#step-4}

[`sets.calypso_arm`](/reference/sets/calypso-arm/) turns on the 1-on-1 sale of a set. If some of its pieces still lack a vision description, it ARMS the set instead: the pieces go to the fast lane of the vision queue and the set turns on by itself when the last one is described.

- Follow it with [`sets.calypso_status`](/reference/sets/calypso-status/): pieces still pending and the channels it is armed for.
- Or subscribe to the `sets.calypso_ready` webhook: it arrives once, when the set turns on by itself, with the channels that are on now. A set turned on at once, disarmed or stopped never sends it.
- Changed your mind? [`sets.calypso_disarm`](/reference/sets/calypso-disarm/) cancels the arm (preview first, then the same call with its `preview_id`): the set will not turn on by itself, and channels already on stay on; Calypso does not offer the set until its pending pieces are described. Arming it again when nothing is pending turns it on at once and sends no `sets.calypso_ready` (that webhook is only for a set that turns on by itself). [`sets.sale_stop`](/reference/sets/sale-stop/) turns every channel off and cancels the arm too.
- A cancel always wins: once it answers, the vision worker never turns the set on with the arm it read before.

> **Set tags and highlight are deprecated.** `tags` and `highlight` have had no effect since 2026-10-24 (Calypso describes each set from its pieces). `sets.manage` and `sets.batch_create` still accept them but ignore them, and they are removed from the API on 2026-12-03; until then the responses that return them carry the `Deprecation` and `Sunset` headers. See the [changelog](/changelog/).

## Create many sets in one call {#batch-create}

[`sets.batch_create`](/reference/sets/batch-create/) creates up to 50 sets of one account in one call, each with its collection, name, pieces (`of_media_ids`, up to 40 and 1 audio) and price (`min_price`, `mass_ppv_price`). What took about six calls per set (create, add pieces, set the price) is now one call for the whole batch.

1. Call it with `dry_run=true`: the preview lists every set as it will be created (its position in the collection, its pieces count and its price). Nothing is written.
2. Repeat the exact same request with the `preview_id` it returned and an `Idempotency-Key`.

```bash
curl -X POST "https://open.venuz.ai/v1/accounts/ACCOUNT_ID/sets/batch-create?dry_run=true" \
  -H "Authorization: Bearer $VENUZ_API_KEY" -H "Content-Type: application/json" \
  -d '{"sets": [{"collection_id": "COLLECTION_ID", "name": "Beach", "of_media_ids": [123, 456], "min_price": 12}]}'
```

- A set with a price (`min_price` above 0 or `mass_ppv_price`) needs a key with `pricing:write`, as any price change; with only `sets:write` the call is a 403 `insufficient_scope` and nothing is created. Without price, `sets:write` is enough.
- Every set is born **off sale**, with or without price: put them on sale afterward with `sets.batch_prices` (one set: `sets.prices_manage` or `sets.calypso_arm`).
- The whole batch is checked before anything is created: a collection or a piece that is not of this account, a missing name in a standard collection or a set over 40 pieces fails the call (`details.index` says which set) and nothing is created.
- The answer has one result per set, in order: `created`, `failed`, `unknown` (read it before sending it again) or `not_attempted` (an earlier set came back `unknown`, or the time budget ran out: send those again with a new key).
- Each set with a price counts one place of the daily limit of `sets.prices_manage`.
- Each created set has its own `change_id`: undo one set with `POST /v1/changes/{change_id}/undo`.
- The batch uses the write names (`min_price`, `mass_ppv_price`, `mass_ppv_caption`).

## Price and sell many sets in one call {#batch-prices}

[`sets.batch_prices`](/reference/sets/batch-prices/) does what [`sets.prices_manage`](/reference/sets/prices-manage/) does, for up to 50 sets in one call: for each one, `min_price`, `mass_ppv_price`, `available_in_ppv` and `available_in_mass_ppv` (omitted means kept as is). Same two steps: `dry_run=true` first, then the same request with its `preview_id`.

```bash
curl -X POST "https://open.venuz.ai/v1/accounts/ACCOUNT_ID/sets/batch-prices?dry_run=true" \
  -H "Authorization: Bearer $VENUZ_API_KEY" -H "Content-Type: application/json" \
  -d '{"sets": [{"set_id": "SET_ID_1", "min_price": 12, "available_in_ppv": true}, {"set_id": "SET_ID_2", "min_price": 15, "available_in_ppv": true}]}'
```

- The preview shows each set before and after; `arms: true` means its pieces still lack a vision description, so turning it on ARMS it instead (it turns on by itself later: follow it with `sets.calypso_status`) and spends the vision queue like `sets.calypso_arm`.
- The whole batch is checked first: a set of another account, the same set twice, a set without fields, a new price that is not 0 or 3..200 or that is over the account's cap (an already-saved price can be sent again), or a channel turned on without its price fails the call (`details.index`) and nothing changes.
- One result per set: `applied` (with `armed: true` if it was armed), `unchanged` (it already had those values), `failed`, `unknown` (read it before sending again) or `not_attempted`.
- A set that arms spends the vision queue shared with `sets.calypso_arm` (per key, per account and per agency and hour): when that queue is used up, the call is a 429 `rate_limited` even with price places left. The same holds for `sets.prices_manage`, whose preview also says `arms`.
- Each set that changes counts one place of the daily limit it shares with `sets.prices_manage` (2,000 per account and 5,000 per key per day).
- Each set has its own `change_id`: undo one with `POST /v1/changes/{change_id}/undo` (its previous values come back). To stop selling, use `sets.sale_stop`: never capped.

### By condition: every set at one price {#batch-prices-match}

Instead of naming the sets, select them: `match` takes every active set of the account whose `min_price_usd` is that value **now** (optionally only of one `collection_id` or one `content_type`), and `update` says what they all get: `min_price_usd`, `mass_message_price_usd`, `sold_in_paid_messages`, `sold_in_mass_messages`. Both speak the names `sets.list` reads. "Every set at 10 → 30":

```bash
curl -X POST "https://open.venuz.ai/v1/accounts/ACCOUNT_ID/sets/batch-prices?dry_run=true" \
  -H "Authorization: Bearer $VENUZ_API_KEY" -H "Content-Type: application/json" \
  -d '{"match": {"min_price_usd": 10}, "update": {"min_price_usd": 30}}'
```

- The preview lists the exact sets it resolved to (`before` and `after`, by id) and `selection`: `count`, and `more: true` with a `next_match` when more than 50 match. Nothing is cut silently.
- Executing (the same request with its `preview_id`) applies exactly the sets the preview listed. If they are not the same anymore (a set entered or left the condition, or one of them changed since), the call is a 409 `state_conflict` with `details.reason: preview_state_changed` and nothing changes: preview again.
- More than 50: if `update` changes `min_price_usd`, the applied sets leave the condition, so send the same `match` again (new preview) until `more` is false; if it does not, send `next_match` as `match` (it carries a cursor). Nothing matches: 409 `no_set_matches`.
- Same daily limit, vision queue, results and undo per set as with `sets`; `index` is the position in the preview's list.
- Between execution and each set's write (up to ~45 s for 50 sets) the screen or another key can still change one of them: the batch writes its value over it, as with `sets` and `sets.prices_manage`.

## Good to know

- For sets and collections, the change log keeps the state with the write names only, so undoing a change with [`changes.undo`](/reference/changes/undo/) works the same before and after these names were added. `vault.media_manage` has no undo, and its change log entry does carry `tags` and `set_ids`.
- Retrying a write with the same `Idempotency-Key` returns the stored result with both names, also for a write made before the names were added.
- Old names stay forever inside `v1`; use whichever you prefer.

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