x-api-key header on authenticated requests. There are no sessions or cookies on the REST surface.
The MCP server accepts the same bp_* keys (as Authorization: Bearer or x-api-key) and also supports OAuth 2.1 + PKCE for remote agent connectors — see Connect a Client.
Get your API key
API keys are created and managed in the Blink PDF dashboard.1
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.
2
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).
3
Create a new key
Click Create new key, give it a descriptive name (for example,
production-invoices or staging-test), and confirm. Your full API key is displayed once — copy it now.Pass your key in requests
Include your API key in thex-api-key header of every render or template request:
curl
Key format
API keys always start with the prefixbp_ followed by a unique alphanumeric string. If your key doesn’t start with bp_, double-check that you copied the full key from the dashboard.
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 x-api-key header is missing, malformed, or contains an invalid key.
402 Payment Required
A402 response means your API key is valid, but your plan’s spend cap has been reached. Usage beyond the included volume is paused until the next billing period. The response body is { "error": "spend_cap_reached", "detail": "..." }.
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
x-api-keyheader 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.