sequences
Get sequence with steps
Returns a sequence with all its steps and enrollment stats.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
sequenceIdstring
Response Body
application/json
application/json
application/json
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"
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}