Documentation

Datarika PDF API

A document generation service that turns HTML layouts, reports and invoices into crisp PDF files.

How it works

Create an API key on your dashboard, then send a POST request with your HTML in the cv_html field and the key in the X-API-Key header. The response is the PDF file.

Endpoint

POST https://pdf.datarika.com/api/generate-pdf/

Infrastructure and reliability

Built for speed and security: HTML is processed in memory and never stored, and every request is recorded in your request logs (status, duration and size only).

Get started

Create a free account to get an API key and ready-to-copy examples in cURL, Python, JavaScript and PHP.