API Authentication
Every request to Mobiska’s API must be authenticated to ensure secure access to our services. We use Basic Authentication to verify the identity of API consumers.Authentication Flow
All API requests must include an Authorization header containing your encoded credentials. Requests without proper authentication will be rejected with a 401 Unauthorized response.
Constructing Your Credentials
Follow these steps to generate your Authorization header:-
Combine Keys:
Example:
mob_client_123:sk_live_abcdef123456 -
Base64 Encode:
Convert the combined string to base64 format
-
Create Header:
Prefix the encoded string with
Basic
Obtaining API Keys
1
Create Developer Account
Register at dashboard.mobiska.com to access the developer portal
2
Complete Verification
Submit required business documentation and complete the verification process
3
Find API Keys
Once verified, find your Client Key and Secret Key from the dashboard
Request Example
Here’s how to include authentication in your API requests:Security Guidelines
Protect your API credentials with these best practices:Secure Storage
Never expose API keys in client-side code or public repositories
Environment Separation
Use different API keys for development and production environments
Regular Rotation
Periodically rotate your API keys to minimize security risks
Access Control
Implement IP whitelisting for additional security
Handling Authentication Errors
Common authentication-related errors you might encounter:| Status Code | Description | Resolution |
|---|---|---|
| 401 | Invalid credentials | Check if your API keys are correct |
| 403 | Insufficient permissions | Verify your account has necessary access |
| 429 | Rate limit exceeded | Implement proper request throttling |