Peppolpdf Docs

Authentication

Secure every request to the Peppolpdf API with your API key.

Authentication

All requests to the Peppolpdf API must include a valid API key. Pass it as a Bearer token in the Authorization header.

Authorization header

Authorization: Bearer <your_api_key>

Include this header on every request. Requests without a valid key return 401 Unauthorized.

Example

curl -X POST https://api.peppolpdf.eu/api/v1/generate-pdf \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@invoice.xml" \
  -o invoice.pdf

Error response

When the key is missing or invalid, the API responds with:

{
  "error": "Missing or invalid API key"
}
StatusMeaning
401Missing or invalid API key

On this page