Take a contact out of the flow
Permission
automations:enrollRate limit writesIdempotent with Idempotency-KeyEnds the contact's active or waiting run as exited. removed is the number of runs ended: 1, or 0 when the contact was not in the flow.
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/automations/automation-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 } }.