Skip to main content
Pass webhook to have Gotenberg upload the result to your storage or service. Gotenberg answers 204 No Content right away, so the method resolves to an empty buffer. Once the work is done, it uploads the result to webhookUrl, then posts an event to webhookEventsUrl.
Both URLs are required. Each must be an absolute http or https URL Gotenberg can reach.
Every route takes webhook except the PDF read methods and the System routes.

The upload

The upload carries the result with its Content-Type, a Content-Disposition that names the file, the request’s Gotenberg-Trace, and your extra headers.

The events

A webhook.success event follows a delivered upload:
A failed request, or an upload that fails for good, sends webhook.error instead, with the status and the message the request would have answered:
correlationId is the request’s trace: set it to your own identifier to match events to requests (see Request tracing). Gotenberg retries an upload that can’t connect, or that answers 429 or a 5xx. For retries, synchronous delivery and destination filters, see Gotenberg – webhooks.