Skip to content

Authentication

All Looha API requests require authentication using an API key.

Getting Your API Key

  1. Log in to Looha Dashboard
  2. Ensure you're on the Pro plan (API is Pro-only)
  3. Navigate to Settings → API
  4. Click "Create New Key"
  5. Enter a descriptive name (e.g., "Excel Integration")
  6. Set expiration date (optional)
  7. Click "Create"
  8. 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=30d

Security 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

StatusErrorSolution
401UNAUTHORIZEDCheck your API key is valid
403FORBIDDENUpgrade to Pro plan
429RATE_LIMIT_EXCEEDEDWait before retrying

Rate Limits

PlanPer HourPer Day
FreeNo accessNo access
Pro1,00020,000

Need help? Contact support@looha.app


Next: Profit Analytics →

Profit analytics platform for Saudi e-commerce merchants