Remove contacts from a list
lists:writeRate limit heavyIdempotent with Idempotency-KeyRemoves 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.
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/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] }'
{
"data": {
"removed": 1
}
}{ error: { code, message, details } }.