Fern generates Webhook Reference documentation from an OpenAPI specification.
Fern supports webhooks through:
webhooks field with an operationId (recommended)x-fern-webhook: true extensionAdd your specification file to your /fern directory and create a generators.yml that references it:
For a full list of configuration options and layout customizations, see Customize API Reference layout.
For a real-world example of webhook documentation generated from an API definition, check out Webflow’s webhooks.
To include multiple webhook definitions in your documentation, use the api-name property. The api-name corresponds to the folder name containing your webhook definition.
To display each webhook event as an individual page, reference it in the layout using the subpackage_{tag}.{webhook-event-name} format:
Where {tag} is the first tag (lowercase) and {webhook-event-name} is the operationId from your webhook definition.
You must have the tags and example properties defined in your webhook specification.