Early access. Oomplo is looking for its first pilot companies. Tell us about your documents →
Developers

Documents from your code

A small HTTP API on your own server: send a template's name and your data, get a PDF. Everything below is tested against a running Oomplo server on every change.

Integration in three calls

Ask, check, generate

  • GET /api/templates/{id}/schema lists the fields, repeated rows and signers of a template, with an example data file and a JSON Schema to generate types in your system.
  • POST /api/templates/{id}/validate reports every missing value and every value of the wrong kind with its path, all at once and without making a PDF.
  • POST /api/templates/{id}/render returns the PDF, or the filled Word document with "format": "docx", or base64 in JSON for low-code tools.
# What does the template need?
curl -s "$OOMPLO_URL/api/templates/invoice-vat/schema" \
  -H "Authorization: Bearer $OOMPLO_KEY" | jq .example

# Is my data complete?
curl -s -X POST "$OOMPLO_URL/api/templates/invoice-vat/validate" \
  -H "Authorization: Bearer $OOMPLO_KEY" \
  -H "Content-Type: application/json" -d @invoice.json
# → {"valid": false, "missing": [{"path": "json.dane1.buyer.nip", …}]}

# Make 1000 PDFs from a CSV, one per row, in a ZIP
curl -s -X POST "$OOMPLO_URL/api/templates/invoice-vat/jobs" \
  -H "Authorization: Bearer $OOMPLO_KEY" \
  -H "Idempotency-Key: march-2026" \
  -H "Content-Type: application/json" \
  -d '{"series": {"name": "row", "kind": "csv", "file": "…"}, "zip": true}'
Good to know

Behaviour you can plan for

Errors that say what

Errors are {"error": "…"} with a status: 400 wrong request, 401 wrong key, 422 the document cannot be made (with the reason), 429 retry after a second.

Test keys

A test key may render the unpublished draft. Every PDF it makes carries a watermark, and none counts against your licence.

Retries are safe

Send an Idempotency-Key with a series job and a retried request returns the same job instead of starting another.

Webhooks

A series job can call your address when it ends, signed with X-Oomplo-Signature (HMAC-SHA256 of the body), so you need not poll.

Headers with facts

Each PDF answer names the template version used, the number of simplifications and the signature fields with their positions.

Command line

The same engine as a CLI: oomplo pdf template.docx --data invoice.json --out invoice.pdf gives the same bytes as the API.