API & Integrations
    Feature Guide

    API Authentication

    Generate API keys, authenticate REST requests with bearer tokens, scope permissions, and rotate credentials safely in LemWatch.

    Updated 2026-03-02
    1 min read
    API
    authentication
    key

    API Authentication#

    Getting Your API Key (Pro Plan Required)#

  1. Go to Settings → API
  2. Click "Create API Key"
  3. Give it a name (e.g., "CI/CD Pipeline", "Monitoring Dashboard")
  4. Set permissions:
  5. Read — Fetch site data, check results, reports
  6. Write — Add sites, trigger checks, update settings
  7. Read + Write — Full access
  8. Copy the key — it's only shown once!
  9. Using Your API Key#

    Include it in the Authorization header:

    GET /api/v1/sites
    Authorization: Bearer lw_your_api_key_here
    Content-Type: application/json

    Key Management#

  10. Rotate keys regularly — Create a new key, update your integrations, then delete the old one
  11. Use descriptive names — So you know which key is used where
  12. Minimum permissions — Only grant read access if write isn't needed
  13. Monitor usage — Check key usage in Settings → API → Usage
  14. Key Security#

  15. Store keys in environment variables, never in code
  16. Never commit keys to version control
  17. Set IP allowlists for production keys (Enterprise)
  18. Was this article helpful?