sequences
Create sequence
Create a multi-step messaging sequence. Each step has a delay and a message or WhatsApp template.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
profileIdstring
accountIdstring
platformstring
Value in
"instagram" | "facebook" | "telegram" | "twitter" | "bluesky" | "reddit" | "whatsapp"namestring
description?string
steps?
exitOnReply?boolean
Default
trueexitOnUnsubscribe?boolean
Default
trueResponse Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.sequences.createSequence({ body: { profileId: 'profile_abc123', accountId: 'account_abc123', platform: 'instagram', name: 'Example', },});console.log(data);{
"success": true,
"sequence": {
"id": "string",
"name": "string",
"description": "string",
"platform": "string",
"status": "string",
"stepsCount": 0,
"createdAt": "2019-08-24T14:15:22Z"
}
}{
"error": "Unauthorized"
}