# messages.scheduled_list: Scheduled messages of an account: what will go out and what just went out.

`GET /v2/accounts/{accountId}/scheduled-messages` · MCP tool `messages_scheduled_list` · [Scheduled messages](/v2/reference/messages/)

## What it does

Scheduled messages of an account: what will go out and what just went out.

## When to use it

Lists the messages scheduled on an account (or in one conversation): the ones still waiting or going out, the ones VENUZ could not confirm, and the ones delivered in the last 24 hours with the id OnlyFans gave them. Use it before scheduling again so you never send a duplicate: a failed message may still have reached the fan. It reads the queue VENUZ keeps and never changes anything.

## Permission and cost

| | |
| --- | --- |
| Permission | `chats:read` |
| Effect | Read only: it never changes anything. |
| Cost class | `store` — costs 1 unit (reads the copy VENUZ keeps) |
| Scope | One account the key can use. |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `accountId` | path | string (uuid) | yes | Id of the account, from `accounts.list` or `api.whoami`. |
| `chat_id` | query | string (uuid) | no | Only messages scheduled in this conversation. Omit for the whole account. |

## 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 GET "https://open.venuz.ai/v2/accounts/3a9e1c7b-2d4f-4b8a-9c6e-1f0d2b3a4c5e/scheduled-messages" \
  -H "Authorization: Bearer $VENUZ_API_KEY"
```

## Example response (200)

```json
{
  "account": {
    "id": "3a9e1c7b-2d4f-4b8a-9c6e-1f0d2b3a4c5e",
    "name": "Sample Creator",
    "connection": {
      "state": "connected",
      "last_connected_at": "2026-09-28T12:00:00.000Z"
    }
  },
  "chat_id": null,
  "data": [
    {
      "id": "5d7e9f1a-3b5c-4d6e-8f9a-0b1c2d3e4f50",
      "chat_id": "c2d4e6f8-1a3b-4c5d-8e7f-9a0b1c2d3e4f",
      "text": "Good morning! New set dropping today.",
      "send_at": "2026-09-29T09:00:00.000Z",
      "status": "pending",
      "attempts": 0,
      "sent_message_id": null,
      "created_at": "2026-09-28T18:00:00.000Z",
      "synced_at": "2026-09-28T18:00:00.000Z"
    }
  ],
  "source": "store",
  "synced_at": "2026-09-28T12:00:00.000Z"
}
```

## Response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `account` | object | yes | The OnlyFans account this data belongs to, with its connection state. |
| `account.id` | string (uuid) | yes |  |
| `account.name` | string | yes | Display name of the account in VENUZ, set by the agency. |
| `account.connection` | object | yes |  |
| `account.connection.state` | one of "connected", "connecting", "disconnected" | yes | Connection 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.last_connected_at` | string (date-time), or null | yes | When VENUZ last saw the account connected. Null if never. |
| `chat_id` | string (uuid), or null | yes | The conversation the list is filtered by (the chat_id you sent). Null: the whole account. A chat that is not of this account lists nothing. |
| `data` | array of object | yes | The live queue (pending, sending, failed) plus what was sent in the last 24 hours, oldest send time first. Bounded (at most 100 of each): never paginated. |
| `data[].id` | string (uuid) | yes |  |
| `data[].chat_id` | string (uuid) | yes | The conversation the message goes to. |
| `data[].text` | string | yes | Message text written by the agency team when scheduling it. |
| `data[].send_at` | string (date-time) | yes |  |
| `data[].status` | one of "pending", "sending", "sent", "failed" | yes | pending: waiting for its time. sending: going out now. sent: delivered (kept for 24 h). failed: VENUZ could not confirm the delivery; check the chat before scheduling it again. |
| `data[].attempts` | integer, at least 0 | yes |  |
| `data[].sent_message_id` | string, or null | yes | Id OnlyFans gave the delivered message (digits). |
| `data[].created_at` | string (date-time) | yes |  |
| `data[].synced_at` | string (date-time) | yes | When 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. |
| `source` | one of "store", "onlyfans" | yes | store: read from the copy VENUZ keeps (fast, no load on the OnlyFans account). onlyfans: a live check on the account during this call. |
| `synced_at` | string (date-time) | yes | When 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.

| 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. |
| [`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 account does not exist in VENUZ anymore. Call GET /v2/accounts to list the accounts this key can use. |
| [`rate_limited`](/errors/#rate_limited) | 429 | Wait 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_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. |
| [`api_halted`](/errors/#api_halted) | 503 | Wait for the number of seconds in the Retry-After header, then retry. Your key is still valid. |
| [`stored_data_unavailable`](/errors/#stored_data_unavailable) | 503 | Nothing 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.
