Authentication
All Looha API requests require authentication using an API key.
Getting Your API Key
- Log in to Looha Dashboard
- Ensure you're on the Pro plan (API is Pro-only)
- Navigate to Settings → API
- Click "Create New Key"
- Enter a descriptive name (e.g., "Excel Integration")
- Set expiration date (optional)
- Click "Create"
- Copy your key immediately - you won't see it again!
DANGER
⚠️ Store your API key securely. If lost, delete it and create a new one.
Using Your API Key
Include your API key in the Authorization header:
bash
curl -H "Authorization: Bearer looha_your_api_key" \
https://api.looha.app/v1/profit/overview?period=30dSecurity Best Practices
✅ DO:
- Store keys in environment variables
- Use separate keys for each app
- Set expiration dates
- Delete unused keys
❌ DON'T:
- Commit keys to Git
- Share keys via email/chat
- Use the same key for all apps
- Send keys in URL parameters
Error Responses
| Status | Error | Solution |
|---|---|---|
| 401 | UNAUTHORIZED | Check your API key is valid |
| 403 | FORBIDDEN | Upgrade to Pro plan |
| 429 | RATE_LIMIT_EXCEEDED | Wait before retrying |
Rate Limits
| Plan | Per Hour | Per Day |
|---|---|---|
| Free | No access | No access |
| Pro | 1,000 | 20,000 |
Need help? Contact support@looha.app