ESTAGE Support
IdeasMy tickets

Enroll contacts

Permission automations:enrollRate limit heavyIdempotent with Idempotency-Key

Puts 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).

POSThttps://api.estage.com/v1/automations/{id}/contacts

Authorization

ESTAGE-API-Keystringheaderrequired

A project key, est_live_…, from Settings → API keys. Call from server code only.

Path parameters

idintegerrequired

Body

application/json
contact_idsarray of integerrequired≤ 1000 items

Headers

Idempotency-Keystring≤ 255 chars

Any 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 } }.