Enrollments

Enroll contacts (all-or-nothing on ALREADY_IN_SEQUENCE)

POST
/v1/sequences/{id}/enrollments

Authorization

projectKey
headerAuthorizationBearer <token>

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

Path Parameters

id*string
Length1 <= length <= 128

Request Body

application/json
  1. body
contacts*array<|>
Items1 <= items <= 5000
sender*string
Length1 <= length
version?string
enrolled_by?string
Lengthlength <= 64
enrolled_by_kind?string
Value in"user""agent""system"
mode?string
Value in"live""dry_run"

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*
meta*
curl -X POST 'http://localhost:8080/v1/sequences/string/enrollments' \  -H 'Content-Type: application/json' \  -d '{  "contacts": [    "string"  ],  "sender": "string"}'
{  "success": true,  "data": {    "accepted": [      {        "contact_id": "string",        "external_id": "string",        "first_touch_at": "2019-08-24T14:15:22Z"      }    ],    "skipped": [      {        "contact_id": "string",        "external_id": "string",        "reason": "string"      }    ],    "capacity": {      "per_day": -9007199254740991,      "days_to_first_touches": -9007199254740991    },    "enrollments": [      {        "id": "string",        "contact": "string",        "status": "active",        "next_run_at": "2019-08-24T14:15:22Z"      }    ]  },  "meta": {    "request_id": "string"  }}