# Sequence API

> Create, populate, and control multichannel outreach sequences: email, LinkedIn, and calls in one campaign object.

- **Note:** Coming soon: filtering a sequence's own contacts by what happened in it (`POST /v3/sequences/{id}/contacts/filter`, `POST /v3/sequences/{id}/contacts/filter/count`, `GET /v3/sequences/{id}/contacts/filter/fields`) and discovering a condition step's available fields (`GET /v3/sequences/steps/condition/fields`), all targeted early November 2026. Everything else on this page is callable today. Verified 2026-11-05.
- **Category:** Outreach
- **Base URL:** `https://api.reply.io/v3`
- **Official reference:** https://docs.reply.io/api-reference/sequences/list-all-sequences
- **OpenAPI:** https://agents.reply.io/apis/sequences.openapi.yaml
- **HTML version:** https://agents.reply.io/apis/sequences/

## What it does

The Sequence API is the outreach engine. A sequence is a multichannel campaign object: an ordered series of steps (automated email, LinkedIn action, call task) with delays, sending schedules, and A/B message variants. The API covers the full lifecycle: create a sequence (from scratch or a template), define its steps and variants, assign sending mailboxes and LinkedIn accounts, add contacts in bulk, start, pause, archive and unarchive, count sequences and the contacts in one, and read stats per sequence, including a per-step, per-variant breakdown for comparing variants. It also exposes a per-contact preview: fetch the AI-personalized message templates queued for a contact before they send, and reset any manual edits back to the generated version.

A LinkedIn step type has the AI comment on a contact's most recent post instead of sending a message. The AI Prompts endpoints manage the prompts behind it: list the library and personal prompts available for the step, save, update, or delete your own, and preview one before you commit to it: against a generic sample post for free, or against a real profile's latest post for one Reply credit. See https://docs.reply.io/api-reference/ai-prompts/list-ai-prompts for the full request and response shapes.

A second AI-driven LinkedIn step, the AI voice message, turns the step's text into speech at send time, in the voice linked to the sending LinkedIn account or, if none is linked, the team's default voice. The Voices endpoints manage those cloned voices: clone one from an audio sample (a connected LinkedIn account is required, and your plan limits how many you can have), list, read, rename, or delete them, set the team default, and look up the supported languages and the background-noise presets a step can mix in. Linking a voice to one specific LinkedIn account, and unlinking it, are callable today on the [LinkedIn Accounts API](https://docs.reply.io/api-reference/linkedin-accounts/create-a-connection-link) (`PUT` and `DELETE /v3/linkedin-accounts/{id}/voice`); an account holds one voice at a time, so linking a new one replaces whatever was there. See https://docs.reply.io/api-reference/voices/list-voices for the full request and response shapes.

Per-step, per-variant stats are live: `POST /v3/sequences/{id}/stats/emails` and `POST /v3/sequences/{id}/stats/linkedin` return one sequence's email or LinkedIn figures broken down per step and per A/B variant, built for comparing variants head to head. `POST /v3/sequences/{id}/stats` still returns the sequence-wide email and LinkedIn figures, and the email and LinkedIn activity lists on the [Analytics API](https://agents.reply.io/apis/analytics.md) tag each row with its step and, where there is one, its A/B variant.

Filtering one sequence's own contacts by what happened in it (replied, opened, status, current step) is coming soon: `POST /v3/sequences/{id}/contacts/filter` and the count-only `POST /v3/sequences/{id}/contacts/filter/count`, with `GET /v3/sequences/{id}/contacts/filter/fields` listing the fields each workspace can filter on; all three targeted early November 2026. A condition step branches a sequence on the same kind of rule; `GET /v3/sequences/steps/condition/fields`, which lists what a condition step's rules can use, is on the same timeline.

## The problem it solves

Sending one email is easy; running outreach is not. Follow-up timing, channel mixing, reply detection (stop-on-reply), bounce handling, A/B testing, and sender rotation are months of infrastructure work. An agent that creates a sequence and adds contacts gets all of that from one API call surface; the machinery is Reply.io's, already running at production scale.

## How an agent starts using it

Create a sequence with `POST /v3/sequences`, add steps with the Sequence Steps endpoints, assign a mailbox with Sequence Email Accounts, add contacts with `POST /v3/sequences/{id}/contact-links/bulk`-style Sequence Contacts operations, then `POST /v3/sequences/{id}/start`. Requires an API key with `sequences:write` and `sequences:operate` scopes. Reply detection, scheduling, and sending are handled by the platform from there. Once contacts are in, `POST /v3/sequences/{id}/contacts/set-email-account` repoints up to 100 of them at a different mailbox already linked to the sequence: useful for rebalancing sending volume without pulling contacts out and back in.

## Typical agent tasks

- Create a sequence with email and LinkedIn steps for a new campaign
- Add a batch of qualified contacts to a running sequence
- Repoint contacts already in a sequence to a different linked sending mailbox, without removing and re-adding them
- Pause a sequence when reply rates drop below a threshold
- Compare A/B variants and disable the loser, using the per-step, per-variant stats endpoints or the Analytics API's activity lists
- Save a winning sequence as a reusable template
- Preview the AI-personalized message templates queued for a contact before they send, and reset manual edits
- Unarchive a sequence to reuse it, then add its contacts again before starting it
- Clone a voice from an audio sample for LinkedIn AI voice message steps, then link it to the sending LinkedIn account

## Inputs

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `name` | string | yes | Sequence name (create). |
| `steps` | SequenceStep[] | no | Steps with channel, delay, and message variants – managed via the Sequence Steps endpoints. |
| `contactIds` | string[] | no | Contacts to add, via the Sequence Contacts endpoints (bulk add supported). |
| `emailAccountIds` | string[] | no | Sending mailboxes to assign, via the Sequence Email Accounts endpoints. |

## Outputs

| Name | Type | Description |
|------|------|-------------|
| `id` | string | Sequence identifier used by every other sequence endpoint. |
| `status` | string | Lifecycle state (new, active, paused); whether a sequence is archived is a separate `isArchived` flag. |
| `stats` | SequenceStats | Email and LinkedIn engagement per sequence – contacted, delivered, opened, replied, interested, bounced, meetings booked, plus connection and message figures. A per-step, per-variant breakdown is available via the dedicated stats endpoints. |

## Authentication

API key as Bearer token. Send `Authorization: Bearer <API_KEY>` on every request. Required scopes: `sequences:read`, `sequences:write`, `sequences:operate`. Get an API key in the Reply.io app under **Settings → API Key** (https://docs.reply.io/api-reference/authentication).

## Rate limits

100 requests/minute, 3,000 requests/hour, and 150,000 requests/week per user (shared across all of the user's API clients). The stats endpoints (/v3/sequences/{id}/stats, /v3/sequences/stats) may throttle earlier. On 429, honor the Retry-After header.

## Example

### Request – `POST /v3/sequences`

```bash
curl -X POST https://api.reply.io/v3/sequences \
  -H "Authorization: Bearer $REPLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "SaaS founders - outbound July" }'
```

### Response – `201`

```json
{
  "id": 5417,
  "name": "SaaS founders - outbound July",
  "status": "new",
  "createdAt": "2026-07-04T09:15:00Z"
}
```

### Error – `403`

```json
{
  "type": "https://docs.reply.io/api-reference/authentication",
  "title": "Forbidden",
  "status": 403,
  "detail": "This API key does not have the required scope: sequences:write."
}
```

## Related APIs

- [Contact Data API](https://agents.reply.io/apis/contact-data.md) – The CRM-grade contact and account store: create, import, filter, and organize the people and companies your agent works.
- [Outreach Actions API](https://agents.reply.io/apis/outreach-actions.md) – One-off sends outside a sequence: a single email, LinkedIn connection request, InMail, message, or voice message, on demand.
- [Conversations & Inbox API](https://agents.reply.io/apis/conversations-inbox.md) – The unified inbox as an API: read threads across email and LinkedIn, classify replies with categories, detect meeting intent, and respond.
- [Analytics API](https://agents.reply.io/apis/analytics.md) – Outcome data for optimizing agents: email, LinkedIn, call, and task overviews, activity feeds, team performance, channel efficiency, and the meetings list.
- [Templates & Schedules API](https://docs.reply.io/api-reference/email-templates/create-an-email-template) – Reusable email and sequence templates, variable rendering, sending schedules, and holiday calendars.

## FAQ

**Can one sequence mix email and LinkedIn steps?**

Yes. A sequence is a multichannel object; steps can be automated emails, LinkedIn actions, or call tasks, with per-step delays and A/B variants.

**How does an agent start and stop a sequence?**

POST /v3/sequences/{id}/start and /pause (scope sequences:operate). Bulk start, pause, archive, and unarchive endpoints exist for managing many sequences at once.

**Where do replies to a sequence show up?**

In the unified inbox. Use the Conversations & Inbox API to read threads, or subscribe to the email_replied webhook event to be pushed each reply.
