DocuZen API Reference
Get Started
DocuZen provides a HTTP API that enables you to generate dynamic PDFs. The API accepts JSON in the HTTP body, and returns the PDF file data in the HTTP response. You can consume the API directly using your favourite HTTP/REST library, or make use of one of our SDKs.
Libraries
- C#
- Node.js
- Java
- PHP
- Python
- Go
- Ruby
Authentication
Add an `Authorization` header to your HTTP request to authenticate the request. The value of the header should be `Bearer {YOUR_API_KEY}`.
GET https://api.docuzen.co/v1/pdf/generate HTTP/1.1
Authorization: Bearer YOUR_API_KEY
PDF Generate
POST /v1/pdf/generate
Base URL: https://api.docuzen.co
The PDF Generation endpoint allows you to generate PDFs over DocuZen's Web API.
curl
--request GET 'https://api.docuzen.co/v1/pdf/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"templateId": "YOUR_TEMPLATE_ID",
"templateData": {
"productName": "DocuZen"
}
}'\
--output output.pdf