Enroll contacts
Permission
automations:enrollRate limit heavyIdempotent with Idempotency-KeyPuts up to 1000 contacts into an active automation at its start node (or its first trigger node). Ids that are not contacts of this project are counted in not_found. enrolled is the number of contacts handed to the flow; re-entry rules may still skip some (already in the flow, or done before without re-entry allowed). Each contact walks its steps on the queue. When none of the ids is a contact of this project, the answer is 202 with enrolled 0 and the automation is not checked.
Counts against the heavy rate limit (20 a minute per key).
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Path parameters
idintegerrequiredBody
application/jsoncontact_idsarray of integerrequired≤ 1000 itemsHeaders
Idempotency-Keystring≤ 255 charsAny unique string per attempt. A retry with the same key gets the first answer back instead of doing the work twice.
RequestcURL
curl --request POST \ --url 'https://api.estage.com/v1/automations/automation-id/contacts' \ --header 'ESTAGE-API-Key: est_live_your-api-key' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: your-unique-key' \ --data '{ "contact_ids": [4821, 4822] }'
Accepted
{
"data": {
"enrolled": 2,
"not_found": 0
}
}Example. Errors are
{ error: { code, message, details } }.