PPDFInvoiceAPI
DOCS/ Quickstart

GETTING STARTED

Quickstart

From zero to your first rendered PDF in three steps.

  1. Sign up — you get 100 free render credits, no card.
  2. Create an API key inDashboard → API keys. It's shown once at creation, so copy it somewhere safe.
  3. Render your first PDF with the snippet below.

Render your first PDF

Send a POST to /v1/render with a Bearer token and a JSON body. The response is the raw PDF — write it straight to a file:

curl https://api.pdfinvoiceapi.com/v1/render \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{ "html": "<h1>Invoice #1024</h1><p>Total: €1,240.00</p>" }' \
  -o invoice.pdf

What you get back

A 200 with content-type: application/pdf and the PDF bytes as the body. Each successful render costs one credit. If something goes wrong you'll get a JSON error instead — seeErrors for the full list.

From here, learn how to authenticate, render with templates instead of raw HTML, or tune the PDF options.