---
title: "Create sequence"
method: POST
path: "/v1/sequences"
tags: ["Sequences"]
---

# Create sequence

`POST /v1/sequences`

Create a multi-step messaging sequence. Each step has a delay and a message or WhatsApp template.

## Request body

- object
  - `profileId` string, required
  - `accountId` string, required
  - `platform` 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp', required
  - `name` string, required
  - `description` string
  - `steps` object[]
    - `order` integer, required
    - `delayMinutes` integer, required
    - `message` object
      - `text` string
    - `template` object
      - `name` string
      - `language` string
      - `variableMapping` object — Maps template variable positions to contact fields. Keys are position strings ("1", "2"), values are objects with field and optional customValue
  - `exitOnReply` boolean
  - `exitOnUnsubscribe` boolean

## Response `200`

Sequence created

- object
  - `success` boolean
  - `sequence` object
    - `id` string
    - `name` string
    - `description` string
    - `platform` string
    - `status` string
    - `stepsCount` integer
    - `createdAt` string, date-time

## Other responses

- `400` — Invalid request
- `401` — Unauthorized

---

[API](https://skmtc.net/zernio/apis/zernio-api.md) · [All operations](https://skmtc.net/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zernio/zernio-api/revisions/f81ca70ea6b9/schema)
