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

# Generate sequence round content

> Generate content for a follow-up round without saving or sending.

Generate content for a follow-up round using the saved first-touch configuration.

## Overview

| | |
| - | - |
| Method | `POST` |
| Path | `/api/v2/agents/{agentId}/sequence/generate` |
| 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

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

Ranges from `2-11`.

**content\_generation\_mode** `string`

`ai_personalized` or `fixed_template`.

**content\_input** `string`

Content input for the round.

**followup\_purpose** `string`

Purpose for the follow-up.

**generate\_both** `boolean`

`true` returns `ai_content` and `fixed_content`; `false` returns `content_input`.

**prior\_rounds** `array`

Contains every earlier follow-up, in order, as `content_generation_mode`/`content_input`. Its length must equal `round_no - 2`.

```bash cURL theme={null}
curl -X POST "https://revor.ai/api/v2/agents/{agentId}/sequence/generate" \
  -H "Authorization: Bearer sk-revor-REPLACE_ME" \
  -H "Idempotency-Key: seq-generate-001" \
  -H "Content-Type: application/json" \
  -d '{
    "round_no": 2,
    "content_generation_mode": "ai_personalized",
    "content_input": "Emphasize delivery times",
    "followup_purpose": "Share an example",
    "generate_both": true,
    "prior_rounds": []
  }'
```

## Response

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

### Behavior

* Uses saved first-touch configuration.
* Does not save its output or send messages.
* Does not consume outreach allowance, but is subject to `expensive_create` limits and job concurrency limits.
* Results also include `agent_id`, `agent_version`, and `round_no`.
* Unknown model outcomes are not automatically regenerated; use a new idempotency key.

> [!NOTE]
>
> Sequence configuration is a separate resource, not part of the base PATCH. It requires an icebreaker agent and the same rollout gate as Console. Otherwise it returns `404` `agent_sequence_unavailable`.

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