Authentication
Authentication
All API requests must include a valid API key in the Authorization header. This page covers how to authenticate, manage keys, and handle auth errors.
Bearer token authentication
Include your API key in the Authorization header using the Bearer scheme. Requests without a valid key receive a 401 Unauthorized response.
Authorization: Bearer YOUR_API_KEYAPI key format
Keys you create in Platform start with oceanir_. Keys Oceanir issues for Enterprise integrations start with orc_. Treat the whole string as the key. Keys are hashed before storage and cannot be recovered if lost.
| Prefix | Issued |
|---|---|
oceanir_ | Created by you in Platform → API keys |
orc_ | Issued by Oceanir for Enterprise integrations |
Security practices
- —Never commit API keys to version control. Use environment variables.
- —Rotate keys every 90 days or immediately if compromised.
- —Use separate keys for development, staging, and production.
- —Keys are scoped to your account. Team keys are coming soon.
