All API requests must be authenticated using an API key. You can manage your API keys in the Dashboard.
API Key Types
We provide two types of API keys:
- Live Keys (
fine_live_...): Used for production invoice generation. These incur costs and generate clean PDFs.
- Test Keys (
fine_test_...): Used for development. Invoices are free but will contain a “TEST” watermark.
Using your API Key
Include your API key in the X-API-Key header of every request.
curl -X POST https://api.FinePDF.dev/v1/invoices/generate \
-H "X-API-Key: fine_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{ ... }'
Never share your API keys publicly or include them in client-side code. They should only be used in secure back-end environments.