Callback notifications
Receive notifications when your asynchronous PDF rendering is complete
The callback
parameter allows you to configure a notification endpoint that will be called when asynchronous rendering is complete.
Overview
When rendering PDFs asynchronously, you may want to be notified when the process is complete. The callback
parameter lets you specify a URL that will receive a notification with details about the completed rendering.
Parameter details
Configuration for callback notifications when asynchronous rendering is complete
Usage
Behavior
When your asynchronous rendering job completes, the API will:
- Send a POST request to the specified callback URL
- Include information about the rendering job status and the location of the generated PDF
- Include any custom headers you specified in the request
Callback payload
The callback will receive a JSON payload with information about the completed rendering job, including:
Use cases
This parameter is particularly useful for:
- Workflow automation: Trigger subsequent processes once the PDF is ready
- User notifications: Alert users when their requested document is available
- System integration: Update your application’s state based on PDF generation status
Example with custom headers
Security considerations
When using callbacks:
- Use HTTPS: Always use HTTPS URLs for your callback endpoints
- Validate requests: Include authentication headers and verify them in your callback handler
- Implement retry logic: Be prepared to handle callback delivery failures
Related parameters
The callback
parameter is typically used with the destination
parameter, which specifies where the rendered PDF will be stored. Together, they enable a fully asynchronous workflow for PDF generation.