Create A Key
- Sign in at
https://portal.iyzpdf.com/login. - Open the API Keys screen.
- Enter a descriptive name such as
Production,Staging, orBilling Worker. - Create the key and copy the full secret immediately.
What The Key Looks Like
Keys use theiyz_live_ prefix:
How To Send The Key
Include the key in theX-API-Key header on every request:
Storage Recommendations
- Store keys in server-side environment variables or a secret manager.
- Use separate keys for production and non-production environments.
- Use separate keys for different services when you want simpler rotation.
- Rotate a key immediately if you suspect exposure.
- Never commit keys to Git.
- Never expose keys in browser code.
Rotation Pattern
Use a simple zero-downtime rotation flow:- Create a new key in the portal.
- Deploy the new key to your service.
- Confirm live traffic succeeds with the new key.
- Deactivate or delete the old key.