Skip to main content

eCourtDate Document Generation API

Generate court-ready PDF documents: reusable, versioned templates with merge tags, one-off documents from blank pages or HTML/CSS, image assets, batch jobs, and a full audit trail.

Base URLhttps://api.pdfs.ecourtdate.com/v1

curl -o hearing-notice.pdf "https://api.pdfs.ecourtdate.com/v1/documents" \
-H "x-api-key: $API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/pdf" \
-d '{
"page": { "size": "letter" },
"fields": [
{ "type": "text",
"content": "# Notice of Hearing\n\nState v. Avery · Case CR-2026-004821\n\nYour pretrial hearing is set for **August 15, 2026 at 9:00 AM**\nin Courtroom 3B, Summit County Courthouse.",
"content_format": "markdown",
"x": 72, "y": 72, "width": 360, "height": 240 },
{ "type": "barcode", "symbology": "qr",
"content": "CR-2026-004821",
"x": 460, "y": 72, "width": 80, "height": 80 }
]
}'

Built for production

Visual coordinates

Positions are PDF points (1/72 inch) with a top-left origin, the same space a visual editor uses. Conventions

Errors you can program against

Every error is RFC 9457 problem+json with a stable error_code and a request_id. Errors

Warnings never fail a document

Values that cannot render are skipped and reported, or fail the request if you opt in with on_warning. Warnings

Safe retries

Send an Idempotency-Key and a retried timeout can never produce a duplicate document. Idempotency

Resources