1. Sign In To The Portal
Openhttps://portal.iyzpdf.com/login and sign in to your account.
2. Create An API Key
Go to the API Keys screen, create a new key, and copy the full value immediately. IyzPdf only shows the full secret once after creation. If you need the full workflow, see API Keys.3. Store The Key In Your Server Environment
4. Send Your First Request
The example below renders inline HTML into a PDF.5. Read The Response
Successful requests return the generated file as an attachment by default. Common success headers:X-Request-IdX-Processing-Time-MsX-Credits-UsedX-Credits-RemainingX-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset
Accept: application/json header:
6. Handle Errors Consistently
Errors follow a stable JSON envelope:200for success400for validation errors402for insufficient credits413for payload size errors415for unsupported file types or media types429for rate limiting500for processing failures