Authentication
Send your API key in the Authorization header of every request:
Authorization: Bearer ok_...Keys start with ok_ followed by 40 letters and digits. Each key belongs to one workspace, and usage is recorded against that workspace.
Keeping keys safe
Section titled “Keeping keys safe”- Call the API from your server, never from a browser or mobile app.
- Keys are shown once, when you create them. OpenKob stores only a hash.
- Revoke a key in Developers → API keys if it leaks. Revoked keys stop working immediately.
- Keys can expire after 30, 90 or 365 days, or never.
Authentication errors
Section titled “Authentication errors”| Code | Meaning |
|---|---|
missing_api_key |
No Authorization: Bearer header |
invalid_api_key |
The key is malformed or doesn’t exist |
revoked_api_key |
The key was revoked |
expired_api_key |
The key is past its expiry date |
All of these return HTTP 401. See Errors for the response shape.

