Two Ways to Authenticate
Oumla supports authentication through two methods:- TypeScript SDK - Authentication is handled automatically when you initialize the client with your API key
- Direct REST API - Include your API key in the
x-api-keyheader for each request
Request Headers
All requests to the Oumla API require the
x-api-key header containing your API key.New to Oumla? Follow the Quick Start guide to create your account and get your first API key.
API Key Authentication
Using the SDK
When using the TypeScript SDK, authentication is handled automatically:Using Direct REST API Calls
When making direct HTTP requests, include your API key in thex-api-key header:
API Key Management Best Practices
Environment Variables
Store your API key securely:Security Recommendations
- Use different API keys for different environments (sandbox vs production)
- Rotate API keys regularly for enhanced security
- Never share API keys in client-side code or public repositories
- Use environment-specific keys to prevent accidental production access
- Monitor API key usage in the dashboard for suspicious activity
Common Authentication Errors
Invalid API Key (401 - ERR_008)
- API key is missing from request headers
- API key is incorrect or invalid
- API key has been revoked or expired
- Verify your API key in the dashboard
- Check that the
x-api-keyheader is included in your request - Ensure there are no extra spaces or characters in the API key
- Generate a new API key if the current one is invalid
Invalid API Key Format (401 - ERR_405)
- API key format is incorrect
- API key is malformed
- Verify the API key format matches the expected pattern
- Regenerate the API key from the dashboard
- Check for copy-paste errors
Error Handling
Always handle authentication errors gracefully in your application:Rate Limiting
Rate limiting information will be provided here once available. Check the dashboard or contact support for current rate limits.
Mainnet Activation
Request Mainnet Activation
Click to send a pre-filled email to our support team