Skip to main content

Signed webhook

A POST with JSON to an https address of yours (your SOAR, your incident tracker, a script of your own…). Each delivery is signed with HMAC-SHA256 so that your receiver knows it comes from your node and that nobody has tampered with it or replayed it.

  • URL (parameter, required): that of your receiver, with https. Don't put tokens in the address; the Authorization header is for that.
  • Your receiver's CA (optional): only if its certificate comes from a CA of your own; that CA's certificate in PEM format.
  • Signing key (secret, required): the one used to sign each delivery; at least 32 characters (for example, generate one with openssl rand -hex 32). Put it here and in your receiver, which must verify the signature in the X-Sugardaddy-Firma header.
  • Authorization header (secret, optional): if your receiver also requires a token, the whole value of the header (e.g. Bearer abc…).
  • Body format: Event contract v1 (proposed for new webhooks), the stable, versioned format shared with the API and syslog JSON; or Legacy format, the body that webhooks created before the contract keep.

The exact formats are in the event contract v1 and the signed webhook reference, which also explains how to verify the signature.