Guides

Fail-open by design

A spam filter must never stop real customers. Every failure path ends in "let them in".

  • The SDK gives up after 300 ms and returns allow with unknown: true.
  • Network errors, 429, 401 and 5xx responses also return allow with unknown: true and call your onError hook.
  • When live DNS times out the API itself answers unknown, which is never billed.
fail-open.ts
const ab = new AntiBurner({
  apiKey: process.env.ANTIBURNER_KEY!,
  timeoutMs: 300,
  onError: ({ reason, status }) => logger.warn("antiburner fail-open", { reason, status }),
});