Enrollments

The journey: definition, runs with facts, messages, signals, tasks

GET
/v1/enrollments/{id}

Authorization

projectKey
headerAuthorizationBearer <token>

A project API key (sk_live_…) with read, enroll or admin scope.

Path Parameters

id*string
Length1 <= length <= 128

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*
meta*
curl -X GET 'http://localhost:8080/v1/enrollments/string'
{  "success": true,  "data": {    "enrollment": {      "id": "string",      "projectId": "string",      "sequenceId": "string",      "versionId": "string",      "contactId": "string",      "senderId": "string",      "enrolledBy": "string",      "enrolledByKind": "string",      "mode": "string",      "status": "active",      "currentNodeId": "string",      "nextRunAt": "2019-08-24T14:15:22Z",      "ownerRunId": "string",      "waiting": {        "runId": "string",        "events": {          "property1": "string",          "property2": "string"        },        "onTimeout": "string"      },      "pausedUntil": "2019-08-24T14:15:22Z",      "pauseReason": "string",      "exitReason": "string",      "exitSignalId": "string",      "repliedAt": "2019-08-24T14:15:22Z",      "repliedChannel": "string",      "meetingBookedAt": "2019-08-24T14:15:22Z",      "meetingChannel": "string",      "touchCount": -9007199254740991,      "lastTouchAt": "2019-08-24T14:15:22Z",      "seq": -9007199254740991,      "enrolledAt": "2019-08-24T14:15:22Z",      "finishedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    },    "contact": {      "id": "string",      "projectId": "string",      "externalId": "string",      "firstName": "string",      "lastName": "string",      "email": "string",      "phone": "string",      "linkedinUrl": "string",      "country": "string",      "timezone": "string",      "outreachConsent": true,      "outreachConsentAt": "2019-08-24T14:15:22Z",      "outreachConsentSource": "string",      "smsConsent": true,      "smsConsentAt": "2019-08-24T14:15:22Z",      "smsConsentSource": "string",      "attrs": {        "property1": null,        "property2": null      },      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    },    "version": {      "id": "string",      "projectId": "string",      "sequenceId": "string",      "tag": "string",      "status": "draft",      "definition": {        "property1": null,        "property2": null      },      "schemaVersion": -9007199254740991,      "lockVersion": -9007199254740991,      "basedOnVersionId": "string",      "createdBy": "string",      "publishedBy": "string",      "publishedAt": "2019-08-24T14:15:22Z",      "archivedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    },    "runs": [      {        "id": "string",        "projectId": "string",        "enrollmentId": "string",        "sequenceId": "string",        "versionId": "string",        "nodeId": "string",        "nodeType": "string",        "channel": "string",        "action": "string",        "touchNumber": -9007199254740991,        "attempt": -9007199254740991,        "status": "running",        "idempotencyKey": "string",        "next": {          "property1": "string",          "property2": "string"        },        "startedAt": "2019-08-24T14:15:22Z",        "finishedAt": "2019-08-24T14:15:22Z",        "provider": "string",        "providerRef": "string",        "threadRef": "string",        "branch": "string",        "result": {          "property1": null,          "property2": null        },        "error": "string",        "senderId": "string",        "enqueuedAt": "2019-08-24T14:15:22Z",        "createdAt": "2019-08-24T14:15:22Z",        "updatedAt": "2019-08-24T14:15:22Z"      }    ],    "messages": [      {        "id": "string",        "projectId": "string",        "contactId": "string",        "senderId": "string",        "runId": "string",        "channel": "string",        "direction": "out",        "fromAddress": "string",        "toAddress": "string",        "subject": "string",        "body": "string",        "status": "string",        "provider": "string",        "providerId": "string",        "threadRef": "string",        "messageId": "string",        "occurredAt": "2019-08-24T14:15:22Z"      }    ],    "signals": [      {        "id": "string",        "projectId": "string",        "contactId": "string",        "kind": "reply",        "channel": "string",        "source": "string",        "externalId": "string",        "occurredAt": "2019-08-24T14:15:22Z",        "receivedAt": "2019-08-24T14:15:22Z",        "payload": {          "property1": null,          "property2": null        },        "processedAt": "2019-08-24T14:15:22Z",        "attributedRunId": "string",        "attribution": "string"      }    ],    "tasks": [      {        "id": "string",        "projectId": "string",        "enrollmentId": "string",        "runId": "string",        "senderId": "string",        "contactId": "string",        "kind": "string",        "title": "string",        "body": "string",        "link": "string",        "dueAt": "2019-08-24T14:15:22Z",        "expiresAt": "2019-08-24T14:15:22Z",        "status": "string",        "outcome": "string",        "note": "string",        "connectedOutcomes": [          "string"        ],        "branchesByOutcome": {          "property1": "string",          "property2": "string"        },        "onCompleted": "string",        "onExpired": "string",        "dialer": true,        "autoComplete": true,        "dialerPushedAt": "2019-08-24T14:15:22Z",        "completeOnOpen": "string",        "openedAt": "2019-08-24T14:15:22Z",        "completedAt": "2019-08-24T14:15:22Z",        "createdAt": "2019-08-24T14:15:22Z",        "updatedAt": "2019-08-24T14:15:22Z"      }    ]  },  "meta": {    "request_id": "string"  }}