PressAPI v0.1
HTML in. PDF out.
A small rendering API for invoices, contracts, and reports. Send HTML, a URL, or the built-in invoice template. Get a file back.
Starter
$29/mo1,000 renders
$29/mo1,000 renders
Team
$99/mo10,000 renders
$99/mo10,000 renders
Studio
$299/mo50,000 renders
$299/mo50,000 renders
Render HTML
curl -X POST $ORIGIN/v1/render \
-H "Authorization: Bearer $PRESSAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"html":"<h1>Invoice 1042</h1>","format":"pdf","paper":"a4"}'
Render a URL
curl -X POST $ORIGIN/v1/render \
-H "Authorization: Bearer $PRESSAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","format":"png"}'
Invoice template
curl -X POST $ORIGIN/v1/render \
-H "Authorization: Bearer $PRESSAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"template":"invoice",
"data":{
"number":"1042",
"from":"North Shore Studio",
"to":"Acme Agency",
"items":[{"name":"Brand system","qty":1,"price":2400}]
}
}'
Then download the file:
curl -L -H "Authorization: Bearer $PRESSAPI_KEY" \ $ORIGIN/v1/renders/RENDER_ID/file -o invoice.pdf
OpenAPI spec · health · keep the first version embarrassing and paid.