ESTAGE Support
IdeasMy tickets

Subscribe contacts to a list

Permission lists:writeRate limit heavyIdempotent with Idempotency-Key

Subscribes 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.

POSThttps://api.estage.com/v1/lists/{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 integer≤ 5000 items

Contacts of this project. Ids that are not contacts of this project are skipped silently.

list_idsarray of integer≤ 100 items

Everyone currently subscribed to these lists of this project.

segment_idinteger

Everyone matching this saved segment now. A segment of another project matches nobody.

allboolean

true = every contact of the project; the other keys are then ignored.

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/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] }'
OK
{
  "data": {
    "added": 2
  }
}
Example. Errors are { error: { code, message, details } }.