Every request to the Blink PDF API must include an API key. Blink PDF uses Bearer token authentication — you pass your key in theDocumentation Index
Fetch the complete documentation index at: https://docs.blinkpdf.io/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header of each HTTP request. There are no sessions, cookies, or OAuth flows to manage.
Get your API key
API keys are created and managed in the Blink PDF dashboard.Log in to your dashboard
Go to app.blinkpdf.io and sign in. If you don’t have an account yet, sign up for free — no credit card required.
Open the API Keys section
From the dashboard sidebar, click API Keys. Any keys you’ve already created are listed here (the secret portion is masked after creation).
Pass your key in requests
Include your API key as a Bearer token in theAuthorization header of every request:
curl
Key format
Production API keys always start with the prefixsk_live_ followed by a unique alphanumeric string. If your key doesn’t start with sk_live_, double-check that you copied the full key from the dashboard.
| Prefix | Environment |
|---|---|
sk_live_ | Production |
All keys are scoped to your account and inherit your plan’s rate limits and monthly render quota.
Use environment variables
Never hardcode your API key in source files. Store it in an environment variable and read it at runtime. This prevents accidental exposure through version control, logs, or error messages.Set the environment variable
.bashrc, .zshrc) or use a secrets manager like AWS Secrets Manager, HashiCorp Vault, or your CI/CD platform’s secret store.
Read it in your code
Common authentication errors
401 Unauthorized
You’ll receive a401 response if the Authorization header is missing, malformed, or contains an invalid key.
| Cause | Fix |
|---|---|
| Header not included in the request | Add Authorization: Bearer sk_live_... to every request |
| Key was rotated or deleted | Create a new key in the dashboard and update your configuration |
| Key copied with extra whitespace | Trim leading/trailing spaces from the key string |
Bearer prefix missing | Ensure the header value is Bearer sk_live_..., not just sk_live_... |
403 Forbidden
A403 response means your API key is valid, but your account is not permitted to complete this specific request — most commonly because you’ve exceeded your plan’s monthly render quota.
| Cause | Fix |
|---|---|
| Monthly render quota exhausted | Upgrade your plan or wait for the quota to reset at the start of your billing cycle |
| Request exceeds plan-level limits | Review your current plan limits in the dashboard |
Security best practices
- Rotate keys regularly. Create a new key and retire the old one on a schedule, or any time team membership changes.
- Use one key per environment. Maintain separate keys for development, staging, and production so you can rotate or revoke them independently.
- Use one key per service. If multiple services call the Blink PDF API, give each its own key. This limits the blast radius if one key is compromised.
- Never log the key. Avoid printing the full
Authorizationheader in application logs or error messages. - Restrict access at the infrastructure level. Where possible, use a secrets manager or environment injection rather than
.envfiles checked into source control.
Next steps
Quickstart
If you haven’t made your first API call yet, start here.
API Reference
Explore all parameters and headers for the
POST /v1/render endpoint.