OverviewProductsPlatformsAPI ReferenceResources
Sequences

Get sequence with steps

GEThttps://zernio.com/api/v1/sequences/{sequenceId}

Returns a sequence with all its steps and enrollment stats.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

sequenceIdstringRequired

Responses

Success· the request worked

Errors· the request failed

GET/v1/sequences/{sequenceId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.sequences.getSequence({  path: {    sequenceId: 'sequence_abc123',  },});console.log(data);
{  "success": true,  "sequence": {    "id": "string",    "name": "string",    "description": "string",    "platform": "string",    "accountId": "string",    "status": "draft",    "steps": [      {        "order": 0,        "delayMinutes": 0,        "message": {          "text": "string"        },        "template": {          "name": "string",          "language": "string",          "variableMapping": {}        }      }    ],    "exitOnReply": true,    "exitOnUnsubscribe": true,    "totalEnrolled": 0,    "totalCompleted": 0,    "totalExited": 0,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}
OpenAPI specification
Was this page helpful?