Integrate PDFEx into your application with our simple, secure 2-step API.
All requests to the generator endpoint require an API Key. You can manage your API keys in the dashboard. Include the key in the Authorization header of your requests.
Authorization: Bearer <YOUR_API_KEY>Send your data and template ID to generate a single-use token. This operation is non-blocking and instaneous.
curl -X POST https://pdfex.io/api/pdf/token \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{
"template_id": "651...",
"data": { "name": "Alice" }
}'{
"success": true,
"token": "65eb...",
"url": "/api/pdf/65eb..."
}Use the returned URL or Token to fetch the generated PDF file.
curl -O https://pdfex.io/api/pdf/65eb...