Remove one contact from a list
Permission
lists:writeRate limit writesIdempotent with Idempotency-KeyDeletes the contact's membership of the list (not an unsubscribe). removed is 1, or 0 when the contact was not on the list or is not a contact of this project.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Path parameters
idintegerrequiredcontactIdintegerrequiredHeaders
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.
RequestcURL
curl --request DELETE \ --url 'https://api.estage.com/v1/lists/list-id/contacts/contact-id' \ --header 'ESTAGE-API-Key: est_live_your-api-key' \ --header 'Idempotency-Key: your-unique-key'
OK
{
"data": {
"removed": 1
}
}Example. Errors are
{ error: { code, message, details } }.