BeaconBox
Esc

Type to search.

Dashboard

Erase a recipient

Delete everything BeaconBox holds about one recipient for your business, keeping only what stops them being contacted again.

POST/api/v1/recipients/{email}/eraseIdempotency-Key required

Request

curl -X POST https://api.beaconbox.eu/api/v1/recipients/buyer@example.com/erase \
  -H "Authorization: Bearer $BEACONBOX_API_KEY"
  -H "Idempotency-Key: 8f2b1c04-3d6a-4e55-9a12-77c0b4e9d100"

Path parameters

NameTypeDescription
emailemail

Response

Returns 200.

FieldTypeDescription
messages_deletedintegerMessages you sent them, subjects and bodies included.
message_events_deletedintegerDelivery, open and not-sent events about those messages.
channel_sends_deletedintegerSMS and WhatsApp send records, with the number they went to. Your credit ledger keeps its entries; they no longer point at a send.
message_links_deletedintegerLinks that opened one of those messages.
whatsapp_replies_deletedintegerWhatsApp replies they sent you, bodies included.
webhook_payloads_scrubbedintegerWebhook deliveries of ours about this person whose address, subject, number or reply text we replaced with null. A delivery still queued for your endpoint will arrive with those fields empty. Copies your endpoint already received are yours to delete.
queued_jobs_cancelledintegerNudges, texts and escalations still waiting to go out for those messages, now cancelled.
idempotency_records_deletedintegerStored API responses that named this recipient. Retrying one of those requests with its original Idempotency-Key will run it again rather than replay it.
audit_entries_pseudonymisedinteger
subscription_deletedbooleanWhether their recipient record (phone number, SMS and WhatsApp consent, unsubscribe state) was deleted. False when there was none, for example on a repeat erasure. An unsubscribe it held is kept first, as a suppression (suppressions_kept).
stops_keptintegerSMS or WhatsApp opt-outs for their number that we keep, so that nobody can text them again by pushing to this address later. Kept on purpose: an opt-out that is erased on request stops being one.
suppressions_keptintegerEmail suppressions for this address that we keep, for the same reason: a hard bounce, a complaint, or their unsubscribe from your business, which would otherwise have gone with their recipient record. At most one, with one reason.
auto_reply_windows_droppedintegerRows holding their number so our automatic WhatsApp acknowledgement would not repeat.
replies_a_forward_email_may_have_carriedintegerAn upper bound on erased WhatsApp replies that your reply-forward email had already sent to your admin users' mailboxes. Those copies are outside anything we can reach: search your own mail for this recipient.

Errors

Failures are { "error_code": "..." } with a stable dotted code. See Errors for the codes worth branching on and the three outcomes that look like failures and are not.

This is a write, so it requires an Idempotency-Key header. A request without one is refused with 422. See Idempotency.