API Keys
All API requests require an API key. Generate keys in your dashboard:
- Go to app.okrapdf.com/settings
- Click Create API Key
- Copy the key (starts with
okra_)
API keys grant full access to your account. Never expose them in client-side code or public repositories.
Passing your key
Use one of these two methods:
Bearer token (recommended)
Security best practices
- Store keys in environment variables, not in code
- Use different keys for development and production
- Rotate keys periodically
- Revoke keys immediately if compromised
For route-level access boundaries, see Security Model.
Error responses
Invalid or missing API keys return a 401 status: