Async mode

Async mode requires at least 1 webhook url configuration. You will need to set it up before using it.

Using async mode, your request will be queued in our priority queue system and it will be rendered in the background (which is faster & more efficient than sync mode).

When your PDF file is ready, we will send a webhook notification request to your configured URLs.

It is recommended to use Webhook because:

  • We handle the Rate Limiting for you under the hood => You will get your files eventually.

    • Using sync mode, you have to deal with that on your end.

  • Powered by our strong & powerful workers, your PDF files will be ready FASTER than sync mode.

  • We handle the Idempotency, to save your API usage.

Endpoint

POST https://renderpdf.io/api/pdfs/render-async

Content-Type

JSON or FormData.

Body

Learn more about htmlContent, headerHtmlContent, and footerHtmlContent here

Available Error Responses

  • 422 when you have any invalid request data. E.g.: missing htmlContent, wrong scale number, etc.

  • 402 when you send the request with the same identifier within 1-minute time range.

Last updated