When you define webhooks in your API spec, Fern automatically generates utilities that allow your SDK users to verify webhook signatures and ensure events originate from your API.
Fern supports two signature verification methods:
The generated SDK exposes a verifyWebhookSignature utility:
Configure signature verification in your API definition. Settings can be applied at the document level (inherited by all webhooks) or per-webhook (overrides document-level settings).
For full configuration details, see Webhook signature verification in OpenAPI.