POST /v1/html
Send populated HTML to your service. Pressjet returns the PDF in the response.
curl --fail-with-body http://localhost:8080/v1/html \
-H "Authorization: Bearer $PRESSJET_API_KEY" \
-H 'Content-Type: application/json' \
--data '{
"version": 1,
"html": "<style>@page { size: A4 }</style><h1>Invoice 42</h1>"
}' \
--output invoice.pdf
Read the HTML API guide ↗