Authentication
The Okasie Partner API uses Bearer token authentication. All requests must include a valid API secret.Getting Your API Secret
1
Contact Okasie
Email [email protected] with your company details and integration use case
2
Receive Credentials
You’ll receive your API secret and assigned dealer profile IDs
3
Store Securely
Store your secret in environment variables or a secrets manager
Making Authenticated Requests
Include your API secret in theAuthorization header:
Alternative: X-API-Key Header
You can also use theX-API-Key header:
Scopes
API secrets are granted specific scopes that control access:| Scope | Description |
|---|---|
read:listings | Read listings data |
read:locations | Read dealer location data |
write:listings | Create, update, and delete listings |
By default, new partners receive
read:listings and read:locations.
Contact support to request write:listings scope.Access Control
Your API key may be restricted to specific dealer profiles:- Global access: Can access all listings (rare, for aggregators)
- Restricted access: Can only access assigned dealer profiles and their children
meta.partner.access shows your current access scope:
Security Best Practices
Store secrets securely
Store secrets securely
Use environment variables or a secrets manager like AWS Secrets Manager, HashiCorp Vault, or similar.
Rotate secrets regularly
Rotate secrets regularly
Contact support to rotate your API secret. Old secrets become invalid immediately after rotation.
Use HTTPS only
Use HTTPS only
All API requests must use HTTPS. HTTP requests will be rejected.
Monitor usage
Monitor usage
Include
X-Request-Id in your requests for easier debugging and support.Authentication Errors
| Status | Error Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid API secret |
| 403 | PROFILE_FORBIDDEN | Valid secret but no access to requested profile |