Skip to content

Send JSON. Get a branded PDF.

The document-generation API built for AI agents and automation builders. Works from one cURL, your MCP client, n8n, or the JS/Python SDK — first PDF in under 5 minutes.

What: an HTTP API that turns JSON into branded PDF documents (invoices, reports, certificates) and PNG social images. Who it’s for: AI agent builders and automation developers who need documents generated without a human in the loop. How: POST https://api.docjet.dev/v1/render with a Bearer API key, a template_id (or raw html) and a data object — get a PDF back. That’s the whole product.

Copy, paste, run. No signup — this uses the public demo key (rate-limited: 3 req/min, 50 renders/month, shared by everyone):

Terminal window
curl -X POST https://api.docjet.dev/v1/render \
-H "Authorization: Bearer binfra_9afb57dbb6478c441ad101129fca65847f5745403f9d718b3de6d934c9b63f88" \
-H "Content-Type: application/json" \
-d '{"html":"<h1>Hello from DocJet</h1><p>My first branded PDF.</p>"}' \
--output hello.pdf

Open hello.pdf. That’s your first render.

Want a real document? Render the built-in Romanian invoice template and get a signed download URL instead of binary:

Terminal window
curl -X POST "https://api.docjet.dev/v1/render?response=url" \
-H "Authorization: Bearer binfra_9afb57dbb6478c441ad101129fca65847f5745403f9d718b3de6d934c9b63f88" \
-H "Content-Type: application/json" \
-d '{"template_id":"invoice-ro","data":{"supplier":{"name":"DocJet Demo SRL","cui":"RO12345678","regCom":"J40/1234/2026","address":"Str. Exemplu 1, Bucuresti"},"client":{"name":"Acme SRL","cui":"RO87654321","address":"Str. Test 2, Cluj-Napoca"},"series":"DJ","invoiceNo":"001","issueDate":"12.06.2026","items":[{"name":"Consulting","qty":1,"unitPrice":1000,"value":1000}]}}'

Agent-native distribution

MCP server for Claude/Cursor, n8n community node, JS + Python SDKs, an OpenAPI 3.1 spec, and llms.txt. Your agent can discover and call DocJet without you writing glue code.

15 ready templates

Invoices (EN/RO), quotes, receipts, certificates, packing slips, shipping labels, OG/social images. List them with a public GET /v1/templates — or send your own HTML.

Signed webhooks

Async renders call you back with an HMAC-signed X-DocJet-Signature header. Both SDKs ship one-call verify helpers with timing-safe comparison and replay protection.

Correct with diacritics

Chromium-based rendering: real CSS, real fonts, and Romanian/European diacritics that survive the trip to PDF.

Free tier: 100 renders/month, no card required. Paid plans from $9/month for 1,000 renders.


Terms & Privacy · llms.txt · support@docjet.dev