# mass.generate: Ask Calypso to write the text of a mass message (it sends nothing).

`POST /v2/accounts/{accountId}/mass/generate` · MCP tool `mass_generate` · [Mass messages](/v2/reference/mass/)

## What it does

Ask Calypso to write the text of a mass message (it sends nothing).

## When to use it

Calypso, the AI of the account, writes the text of a mass message the way the team gets it from the mass messages screen: for a one-off mass message (type manual), for a recurring automation (auto), or for a PPV of one of the account content sets (mass_ppv, with content_set_id; then it can also suggest a price). It uses the names of the lists it goes to and your instructions. It sends NOTHING: read the text and send it with mass.send if you want. Each text costs AI, so it needs API writes enabled for the agency and has its own caps: 1000 per key and 300 per account per day, and 300 per agency per hour across all its keys. A try that never reached Calypso does not count. It can take up to a minute.

## Permission and cost

| | |
| --- | --- |
| Permission | `mass:write` |
| Effect | Read only: it never changes anything. |
| Cost class | `heavy` — costs 2 units (large query) |
| Scope | One account the key can use. |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Id of an OnlyFans account this key can act on (see GET /v2/whoami). |

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `type` | one of "manual", "auto", "mass_ppv" | yes | manual: a one-off mass message; auto: the message of a recurring automation; mass_ppv: the text that goes with a PPV of a content set. |
| `target_lists` | array of string, default [] | no | The lists the mass message will go to; Calypso writes for them. |
| `excluded_lists` | array of string, default [] | no | Lists that will be left out. |
| `instructions` | string, up to 2000 characters | no | What you want the text to say or how, in your own words (up to 2000 characters). |
| `content_set_id` | string (uuid) | no | Only with type mass_ppv: a content set of this account (sets.list). Calypso uses its name, tags and price. |

## 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.

```bash
curl -X POST "https://open.venuz.ai/v2/accounts/3a9e1c7b-2d4f-4b8a-9c6e-1f0d2b3a4c5e/mass/generate" \
  -H "Authorization: Bearer $VENUZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"manual"}'
```

## Example response (200)

```json
{
  "text": {
    "untrusted_text": "New set just dropped and it is all for you. Open it before the weekend is over."
  },
  "suggested_price_usd": null
}
```

## Response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `text` | untrusted_text | yes | The text Calypso proposes. Nothing was sent: read it, change it if you want, and send it yourself with mass.send. |
| `suggested_price_usd` | number, or null | yes | For type mass_ppv: the price Calypso suggests, in USD. null when it does not suggest one. |

## Errors and what to do

Every error is `{ "error", "message", "fix", "docs_url", "request_id" }`. Branch on `error`; do what `fix` says.

| Error | HTTP | What to do |
| --- | --- | --- |
| [`invalid_request`](/errors/#invalid_request) | 400 | Correct 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_key`](/errors/#invalid_api_key) | 401 | Send 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_expired`](/errors/#api_key_expired) | 401 | Ask the agency to rotate the key or create a new one. Keys last at most 366 days. |
| [`api_key_revoked`](/errors/#api_key_revoked) | 401 | Stop using this key. Ask the agency for a new one if you still need access. |
| [`account_not_allowed`](/errors/#account_not_allowed) | 403 | This key does not cover the account. Nothing was generated. |
| [`writes_not_enabled`](/errors/#writes_not_enabled) | 403 | API writes are not enabled for the agency, and a text costs AI. Nothing was generated. |
| [`browser_write_blocked`](/errors/#browser_write_blocked) | 403 | Called from a browser: a text costs AI, so it only runs from a server. Nothing was generated. |
| [`api_key_suspended`](/errors/#api_key_suspended) | 403 | If 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_inactive`](/errors/#agency_inactive) | 403 | The agency's VENUZ account is suspended or closed; access resumes when it is active again. Do not delete the key. |
| [`api_not_enabled`](/errors/#api_not_enabled) | 403 | Ask VENUZ support to enable API access for the agency. Keep the key: it works as soon as access is enabled. |
| [`ip_not_allowed`](/errors/#ip_not_allowed) | 403 | Send the request from one of the addresses allowed on the key, or ask the agency to update the allowed addresses. |
| [`insufficient_scope`](/errors/#insufficient_scope) | 403 | Call 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. |
| [`resource_not_found`](/errors/#resource_not_found) | 404 | The content set is not one of this account (or does not exist). Nothing was generated and nothing counted. |
| [`account_disconnected`](/errors/#account_disconnected) | 409 | The account is disconnected from OnlyFans: Calypso writes for connected accounts only. Nothing counted. |
| [`account_transport_unsupported`](/errors/#account_transport_unsupported) | 409 | The account is not on the connection the API uses yet. Nothing was generated and nothing counted. |
| [`calypso_not_ready`](/errors/#calypso_not_ready) | 409 | Calypso is not set up or not turned on for this account (calypso.status). Nothing counted. |
| [`rate_limited`](/errors/#rate_limited) | 429 | A cap is used up (details.limit says which: per key or per account per day, per agency per hour). Wait for Retry-After. |
| [`account_busy`](/errors/#account_busy) | 429 | The account is already writing other texts. Nothing was generated and nothing counted: retry after Retry-After. |
| [`internal_error`](/errors/#internal_error) | 500 | Retry 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. |
| [`calypso_unavailable`](/errors/#calypso_unavailable) | 503 | Calypso could not write the text this time. details.counted is true when it counted against the caps. |
| [`write_store_unavailable`](/errors/#write_store_unavailable) | 503 | The caps cannot be checked right now. Nothing was generated: retry in a few seconds. |
| [`api_halted`](/errors/#api_halted) | 503 | Wait for the number of seconds in the Retry-After header, then retry. Your key is still valid. |

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