Skip to main content
This quickstart shows the shortest path to a working server-to-server integration.

1. Sign In To The Portal

Open https://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

Do not embed this key in browser code, mobile apps, or public repositories.

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-Id
  • X-Processing-Time-Ms
  • X-Credits-Used
  • X-Credits-Remaining
  • X-RateLimit-Limit
  • X-RateLimit-Remaining
  • X-RateLimit-Reset
If you only want metadata, add an Accept: application/json header:
Example response:

6. Handle Errors Consistently

Errors follow a stable JSON envelope:
Typical status codes:
  • 200 for success
  • 400 for validation errors
  • 402 for insufficient credits
  • 413 for payload size errors
  • 415 for unsupported file types or media types
  • 429 for rate limiting
  • 500 for processing failures