Define Webhooks in OpenAPI
Use the x-fern-webhook
extension to define webhooks in your OpenAPI spec
Simply define a path in your OpenAPI, and add the extension x-fern-webhook
. Fern will
treat the requestBody
as the webhook payload.
openapi.yml
The path that you choose when defining a webhook can be arbitrary. Since webhooks can be sent to any server, Fern just ignores the path.