> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview sequence follow-up

> Preview a follow-up message for a saved sequence.

Preview a follow-up message for a saved and enabled outreach sequence.

## Overview

| | |
| - | - |
| Method | `POST` |
| Path | `/api/v2/agents/{agentId}/sequence/preview` |
| Permission | `agents:write` |
| Idempotency | Required (`Idempotency-Key` header) |
| Rate limit | `expensive_create` |
| Returns | Public job (poll `GET /api/v2/jobs/{id}`) |

## Path parameter

**agentId** `string` *required*

UUID of the agent with an icebreaker configuration.

## Request body

**config\_version** `integer` *required*

Must match the saved sequence version.

**round\_no** `integer` *required*

Round number to preview.

**channel** `string` *required*

One of `email`, `linkedin`, or `whatsapp`.

**locale** `string`

Defaults to `en`.

**research** `boolean`

`true` requires the round's preview research toggle and a research run reference.

**first\_touch\_subject** `string`

Subject of the first-touch preview.

**first\_touch\_text** `string` *required*

Body of the first-touch preview message.

**recipient\_name** `string` *required*

**recipient\_company** `string` *required*

**recipient\_title** `string`

Recipient's title.

**recipient\_company\_detail** `string`

Additional company details.

**lead\_cursor** `string`

An existing preview contact cursor.

**prior\_preview\_messages** `array` *required*

Strictly increasing earlier follow-up `round_no`/`subject`/`body` entries. `subject` may be null.

```bash cURL theme={null}
curl -X POST "https://revor.ai/api/v2/agents/{agentId}/sequence/preview" \
  -H "Authorization: Bearer sk-revor-REPLACE_ME" \
  -H "Idempotency-Key: seq-preview-001" \
  -H "Content-Type: application/json" \
  -d '{
    "config_version": 1,
    "round_no": 2,
    "channel": "email",
    "locale": "en",
    "research": false,
    "first_touch_subject": "Introduction",
    "first_touch_text": "The first preview message",
    "recipient_name": "Alice",
    "recipient_company": "Example Manufacturing",
    "prior_preview_messages": []
  }'
```

## Response

```json 202 theme={null}
{
  "ok": true,
  "request_id": "req_xxx",
  "item": {
    "id": "job-uuid",
    "status": "queued",
    "type": "agent_sequence_preview"
  }
}
```

### Research previews

`research=true` requires the round's `preview_research_enabled` and either `first_touch_run_id` or a client-generated `preview_thread_id` UUID. `previous_run_id` may reference the most recent earlier research preview. These run IDs are `research_run_id` from preview results, not public job IDs. Reuse the same thread ID across a preview thread. Owner, agent, recipient, and referenced first/prior message text must match. Ordinary previews reject research run references. Approved Meta templates are previewed directly and cannot add research.

### Billing

* Ordinary previews consume one ordinary outreach unit.
* Research previews consume one research unit without an extra ordinary charge.
* Results include `messages`, `agent_id`, `agent_version`, `config_version`, `round_no`, `research_run_id`, and billing.
* Retries reuse frozen configuration.
* Confirmed failures refund reservations.
* Unknown outcomes retain the original batch for recovery without regenerating.
* Cancellation is allowed only before first execution.

> [!NOTE]
>
> Save and enable the sequence first. Poll `GET /api/v2/jobs/{id}` with `agents:read`.

## Errors

| HTTP | Code | Meaning |
| - | - | - |
| `400` | `agent_input_invalid` | Request does not match the contract |
| `403` | `permission_denied` | Missing required permission |
| `404` | `agent_not_found` | Agent does not exist, was deleted, or belongs to another user |
| `404` | `agent_sequence_unavailable` | Feature not enabled for this agent |
| `500` | `agent_operation_failed` | Operation failed. Read current state before retrying |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.