Subscribe contacts to a list
lists:writeRate limit heavyIdempotent with Idempotency-KeySubscribes every contact the audience picks. Send at least one of contact_ids, list_ids, segment_id or all: true (otherwise 422); when several are sent, the contacts they pick are combined. Contacts who had unsubscribed from this list are subscribed again. added counts only contacts that had no subscription row on this list before (re-subscribed ones are not counted). Counts against the heavy rate limit.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Path parameters
idintegerrequiredBody
application/jsoncontact_idsarray of integer≤ 5000 itemsContacts of this project. Ids that are not contacts of this project are skipped silently.
list_idsarray of integer≤ 100 itemsEveryone currently subscribed to these lists of this project.
segment_idintegerEveryone matching this saved segment now. A segment of another project matches nobody.
allbooleantrue = every contact of the project; the other keys are then ignored.
Headers
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.
curl --request POST \ --url 'https://api.estage.com/v1/lists/list-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, 4795] }'
{
"data": {
"added": 2
}
}{ error: { code, message, details } }.