Authentication
FinePDF uses API keys to authenticate requests. You can view and manage your API keys in the API Keys section of your dashboard.
API Key Types
We provide two environments for your API keys:
- Live Keys (
fine_live_...): For production use. Generations are recorded and billed. - Test Keys (
fine_test_...): For development. Free to use, but PDFs will contain a test watermark.
Usage
Provide your API key in the X-API-Key header of your requests.
curl -X POST https://api.finepdf.dev/v1/generate \
-H "X-API-Key: fine_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{ ... }'Security Tip
Never expose your API keys in client-side code, public repositories, or unsecured environments. If a key is compromised, revoke it immediately via the dashboard.