Skip to main content
This applies to all events in the catalog: there is only one channel.

Headers

X-FraudEG-Delivery identifies the attempt and changes on every retry. X-FraudEG-Event lets you route before parsing.

Verify the signature

Compute HMAC-SHA256(timestamp + "." + raw_body, secret) in hexadecimal and compare it against each v1= value in the header, in constant time.
Three things matter, and skipping any of them is a real bug:
  • 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.
We never send an unsigned delivery. If your company has no secret, deliveries are held and the log says so.

Rotate the secret

The header can carry more than one v1= value, and during a rotation it carries two. That is why the example loops over a list:
  1. Rotate in the dashboard. The new secret is shown only once; the old one keeps signing for 24 hours.
  2. Add the new one to your verifier, alongside the old one.
  3. Once you see it verifying, remove the old one.
A verifier with a single fixed secret breaks on rotation day. Write the loop now.

What we guarantee, and what we do not

  • At least once. Deduplicate by event_id. Two endpoints of the same company receive the same event_id for the same fact.
  • No guaranteed order. Within the same object (a verification, an analysis, a monitor notification), the most recent occurred_at wins.
  • 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.
Notifications are also queued for a paused endpoint and go out when you resume it. Those that wait more than 72 hours are considered abandoned: do not wait for them, reconcile.

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.
In pre-official-integration the host is https://sandbox-api.fraudeg.com/api. See Environments.