Headers
X-FraudEG-Delivery identifies the attempt and changes on every retry. X-FraudEG-Event lets you
route before parsing.
Verify the signature
ComputeHMAC-SHA256(timestamp + "." + raw_body, secret) in hexadecimal and compare it against
each v1= value in the header, in constant time.
- Use the raw bytes, before parsing the JSON. Going through a parser can reorder keys or change how a number is written, and your signature stops matching for reasons nobody can debug.
- Compare in constant time. An
==between strings leaks the signature byte by byte. - Check the timestamp. Reject anything older than five minutes, or a captured delivery stays valid forever.
Rotate the secret
The header can carry more than onev1= value, and during a rotation it carries two. That is why the
example loops over a list:
- Rotate in the dashboard. The new secret is shown only once; the old one keeps signing for 24 hours.
- Add the new one to your verifier, alongside the old one.
- Once you see it verifying, remove the old one.
What we guarantee, and what we do not
- At least once. Deduplicate by
event_id. Two endpoints of the same company receive the sameevent_idfor the same fact. - No guaranteed order. Within the same object (a verification, an analysis, a monitor
notification), the most recent
occurred_atwins. - A 2xx is success. Anything else is retried, including a 3xx: we do not follow redirects, because a stale redirect or a compromised DNS would deliver signed payloads to a host you never registered.
- Respond quickly. A delivery times out after 10 seconds. Answer 2xx and do the work afterward.
- Retries are bounded. Eight attempts spread over about 28 hours; after that the delivery is flagged, visible in the dashboard, and can be resent manually.
- A dead endpoint gets paused. If nothing succeeds for 24 hours we stop sending and notify you. What we owed you stays queued and goes out when you resume the endpoint; anything waiting more than 72 hours is considered abandoned.
- We do not guarantee delivery. That is why the next section is not optional.
Reconcile anyway
Whatever delivery missed is covered by a daily read. It is exactly the case that a bounded retry budget leaves open: it is part of the contract, not a patch.https://sandbox-api.fraudeg.com/api. See
Environments.