Skip to content

Revisions and privacy events

Two things keep MarsX in step with you: a revision number that rises with every event for a lead, and privacy events that go out the moment a customer asks.

source_revision is a whole number that rises with every event for a lead. MarsX uses it, not arrival order, to decide which version of a lead is newest.

  • With no version counter in your system, keep one for each lead in your outbox: 1, then add 1 for every event, privacy events included. Never reuse a number.
  • Send a change as lead.update with a higher revision and the full current state. A changed lead.new without a revision counts as 1, so it is refused or ignored.
  • On lead.new, a missing source_revision means 1 and a missing updated_at means created_at. On every other event both are required.
  • In a lead.update, a field you leave out is read as empty. Keep the original created_at, and set a new updated_at and a new timestamp.

An event goes through two stages. At the door, MarsX checks the signature, the timestamp and the shape of the data, stores the event and answers 202. After storage, a background worker applies it under the rules below. The 202 does not report the outcome. You can read it with the status check.

Situation What the worker does State
new or update with a higher source_revision than stored Replaces the lead with the full state in the event applied
new or update for a lead MarsX does not know Applies it as the first state applied
Same revision, identical content Nothing. A safe resend under a new webhook-id ignored_duplicate_content
Same revision, different content Applies neither version and alerts MarsX quarantined, revision_conflict
Lower revision Logs it and ignores it ignored_stale_revision
withdraw or delete, at any revision Applies it, even when the revision is lower than the stored one applied
new or update after a privacy marker exists Sets it aside for the privacy operator, whatever the revision quarantined, privacy_marker_set

Every end state is final. MarsX may process events in a different order from the order they arrived.

When a customer withdraws consent, asks to restrict processing or asks for erasure, tell MarsX at once.

The customer request_type Event
Withdraws consent withdraw_consent lead.withdraw
Asks to restrict processing restriction lead.withdraw
Asks for erasure erasure lead.delete

A removal event carries identity and request fields only. It must not carry contact, interest or profile fields. It carries its own source_revision and updated_at.

lead.withdraw
{
"type": "lead.withdraw",
"timestamp": "2026-10-04T15:00:00+07:00",
"data": {
"partner_lead_id": "SRC-TEST-0001",
"source_revision": 3,
"record_action": "withdraw",
"created_at": "2026-10-01T09:15:00+07:00",
"updated_at": "2026-10-04T15:00:00+07:00",
"request_type": "withdraw_consent",
"request_time": "2026-10-04T14:59:30+07:00",
"request_reference": "PRIV-TEST-0001"
}
}

request_reference is your own reference for the request: 1 to 64 characters from A-Z a-z 0-9 . _ -. Keep a record of each request and its reference.

  • Give it the next revision number. A lead.withdraw or lead.delete applies at any revision, but it still takes the next number.
  • MarsX restricts the lead the moment it stores the event. An earlier event for that lead still queued is set aside (privacy_marker_set). In the same step MarsX shows no contact details of the lead in any new read, refuses the actions that reveal or use them, cancels the lead’s queued alerts, stops its first-contact clock, and has the sender check again just before each alert goes out. A lead page that a salesperson already has open hides the contact details when it learns that the lead is restricted, and also when its last successful check with MarsX is more than a minute old, when the tab is in the background and when the browser is offline. MarsX cannot recall what has already left its systems: details a person has already read, noted or copied, an alert already sent or already being sent, or what a browser that is frozen or cannot be reached still shows. So the restriction does not promise that nobody can see or contact the lead in between. A privacy request beats anything waiting, so never hold one back.
  • Send it quickly. Never batch it. Never hold it behind another event that is still retrying.
  • The marker stays. Afterwards every lead.new or lead.update for that lead is set aside until an approved MarsX privacy process lifts the marker. A source event or file cannot lift it.
  • A repeat is recognised. The same request_type, request_time and request_reference is ignored_duplicate_content. If one of them differs, it is privacy_request_conflict. The webhook-id, source_revision and updated_at may differ.
  • A new request needs a new reference. A delete after a withdraw is a new request, so give it a new request_reference.
  • After an erasure, MarsX keeps minimal suppression data only: the lead ID, the marker and the request details.

A 400, 413 or 415 stores no lead data, and a refused withdrawal or deletion alerts the MarsX privacy operator. You still have to act.

  1. Read the detail and errors in the answer. See Errors.
  2. Fix the cause.
  3. Send the event again with a fresh webhook-timestamp and a fresh signature.
  4. Check the outcome with the status read, if you use it.

Never drop a rejected privacy event.

Send each privacy request at once, however many there are. MarsX restricts the lead the moment it stores the request: the restriction does not wait for anything. Each fresh server read of the lead and each alert delivery checks it. A page a person already has open, or an alert already sent, can still show what it showed before; MarsX cannot recall what a person has already seen.

If your connection has sent many privacy requests in a short time, MarsX clears the data of the later ones only after a MarsX privacy operator confirms. The limit is set by MarsX. It is currently 5 requests in 60 minutes for each connection, and it can change. Below the limit nothing waits. Requests that arrive in a file are not held.

While a request waits:

  • The lead stays restricted, with the limits described above.
  • The answer to your POST is the same 202 as always. The status read and the AI agent tool get_lead_status answer queued with the reason clearing_awaiting_confirmation. If MarsX is checking the requests before it clears anything, the reason is clearing_held_for_investigation.
  • Do not send the request again. MarsX already has it.

What MarsX does: a privacy operator checks with you, through the contact you gave MarsX, that the customers really asked. If you confirm, the operator confirms the clearing and the status stays queued, with no reason, until MarsX has cleared the leads, and then it becomes applied. If the operator cannot confirm the requests, or they were not yours, the operator marks them as an attack. Nothing is cleared and the leads stay restricted. An attack that the later investigation finds to be genuine can still be confirmed.