ESTAGE Support
IdeasMy tickets

Remove contacts from a list

Permission lists:writeRate limit heavyIdempotent with Idempotency-Key

Removes the contacts the audience picks from the list: their membership is deleted, not marked unsubscribed, so adding them again later counts as new. 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. removed counts the memberships deleted. Counts against the heavy rate limit.

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

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/remove' \
  --header 'ESTAGE-API-Key: est_live_your-api-key' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: your-unique-key' \
  --data '{ "contact_ids": [4795] }'
OK
{
  "data": {
    "removed": 1
  }
}
Example. Errors are { error: { code, message, details } }.