← API

Documentation

API reference for the PDF generation service.

Health

No authentication required.

GET /health

Returns {"status":"ok"}.

Generate PDF

Requires Authorization: Bearer <JWT>.

POST /generate
Content-Type: application/json

{
  "html": "<h1>Hello</h1><p>World</p>",
  "options": { "format": "A4", "landscape": false }
}

Optional options: format, margin, landscape, printBackground.

Responses