Quickstart
Create an account, confirm your email, create an API key in the dashboard, then send the request below from your backend.
Integrate PDF generation into your product in minutes. A single predictable API for render and download flows.
Create an account, confirm your email, create an API key in the dashboard, then send the request below from your backend.
Primary PDF generation method. Accepts HTML, CSS and render options. Returns a ready document or a link to it.
Authorization: Bearer <api_key> Content-Type: application/json
{
"html": "<!doctype html><html>...</html>",
"options": {
"pageSize": "A4",
"landscape": false,
"printBackground": true,
"margin": {
"top": "12mm",
"right": "12mm",
"bottom": "12mm",
"left": "12mm"
}
}
}Fetch a generated PDF document by ID. On success the route returns a redirect to a short-lived signed URL for secure downloads.
All errors use the same structured response shape:
{
"error": {
"code": "QUOTA_EXCEEDED",
"message": "Monthly limit reached",
"requestId": "req_123abc"
}
}