---
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' | 'slack', 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

## Changes

- **2026-09-09** `41eff0cffb2d` — 1 info
  - added the new `slack` enum value to the request property `platform`

[Change history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/sequences/post.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) · [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/339f59df69dd?raw)
