Base URL
https://api.iyzpdf.com/v1
Authentication
All examples in this reference use API-key authentication:Rate Limits
Current authenticated limits from the backend configuration:- 60 requests per minute when the account has available credits
- 10 requests per minute when the account has zero credits
- 10 requests per second burst with credits
- 2 requests per second burst with zero credits
Default Success Behavior
- Binary endpoints return a file attachment by default
POST /convert/xml-to-htmlreturns HTML by defaultAccept: application/jsonswitches the response to metadata
Shared Success Headers
| Header | Meaning |
|---|---|
X-Request-Id | Request identifier for support and debugging |
X-Processing-Time-Ms | End-to-end processing time |
X-Credits-Used | Credits consumed by the request |
X-Credits-Remaining | Remaining balance after the request |
X-RateLimit-Limit | Current minute-level limit |
X-RateLimit-Remaining | Remaining requests in the current window |
X-RateLimit-Reset | Unix timestamp for the next reset |
X-Pdf-Engine | Returned by PDF editing operations |
X-Original-Size | Returned by PDF compression |
X-Compressed-Size | Returned by PDF compression |
X-Compression-Ratio | Returned by PDF compression |
Error Model
creditsRequiredcreditsBalancepurchaseUrl
Endpoint Catalog
| Endpoint | Request type | Output | Credits |
|---|---|---|---|
POST /convert/html-to-pdf | JSON or multipart | 1 or 2 | |
POST /convert/markdown-to-pdf | JSON or multipart | 1 | |
POST /convert/word-to-pdf | Multipart | 2 | |
POST /convert/excel-to-pdf | Multipart | 2 | |
POST /convert/csv-to-pdf | Multipart | 1 | |
POST /convert/xml-to-html | JSON or multipart | HTML | 1 |
POST /pdf/merge | Multipart | 1 | |
POST /pdf/pages/remove | Multipart | 1 | |
POST /pdf/compress | Multipart | 2 |