1. JWT Token (Portal)
Used for user portal authentication. The token is obtained after login and should be stored in LocalStorage.User email address
User password
Response
Using the Token
Include the token in theAuthorization header:
2. API Key (API Requests)
Used for all API operations. Include your API key in theX-API-Key header.
Obtaining an API Key
API keys are automatically created when you register. You can also create additional keys:Using API Keys
Authentication Errors
| Status | Error | Description |
|---|---|---|
| 401 | Invalid token | JWT token is invalid or expired |
| 401 | Invalid API Key | API key is invalid or revoked |
| 403 | Forbidden | Insufficient permissions |
Security Best Practices
- Rotate keys regularly - Delete old keys and create new ones periodically
- Use environment variables - Never hardcode API keys
- Limit key exposure - Create separate keys for different environments
- Monitor usage - Check stats regularly for unexpected activity
