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.pdfError response
When the key is missing or invalid, the API responds with:
{
"error": "Missing or invalid API key"
}| Status | Meaning |
|---|---|
401 | Missing or invalid API key |