Monitoring

    API Endpoint Monitoring

    Monitor your API endpoints for uptime, response time, and expected responses.

    Part of API endpoint monitoring — the full answer, the facts and the alternatives in one place.

    Updated 2026-03-20
    2 min read
    api
    endpoint
    REST

    API Endpoint Monitoring#

    Go beyond homepage uptime checks. LemWatch lets you monitor individual API endpoints — REST, GraphQL, or webhook URLs — with precise assertions.

    Setting Up an API Monitor#

  1. Navigate to Site Details → API Endpoints tab
  2. Click "Add Endpoint"
  3. Configure:
  4. URL — The full endpoint URL (e.g., https://api.example.com/v2/health)
  5. Method — GET, POST, PUT, DELETE, HEAD, PATCH
  6. Expected status code — e.g., 200, 201, 204
  7. Expected body contains — Optional string that must appear in the response
  8. Custom headers — Add Authorization, API keys, or custom headers
  9. Timeout — Max wait time before marking as failed (default: 10s)
  10. What Gets Monitored#

    MetricDescription
    Status codeWhether the response matches your expected code
    Response timeMilliseconds to first byte
    Body assertionWhether expected content appears in the response
    Consecutive failuresHow many checks in a row have failed
    Average response timeRolling average across all checks

    Degraded vs Down#

    LemWatch distinguishes between degraded and down:

  11. Degraded — Endpoint responds but is slower than usual or returns unexpected content
  12. Down — Endpoint fails to respond, times out, or returns a server error
  13. Auto-Suggested Endpoints#

    When you add a site, LemWatch scans for common API patterns and suggests endpoints:

  14. /api/health, /api/status
  15. /wp-json/wp/v2 for WordPress
  16. /.well-known/ endpoints
  17. Sitemap and robots.txt URLs
  18. Alerts#

    API endpoint failures trigger the same alert pipeline as uptime checks. Configure per-endpoint thresholds in Settings → Alerts.

    Best Practices#

  19. Monitor your critical user flows — login, checkout, search
  20. Set realistic timeouts — API endpoints behind auth may be slower
  21. Use body assertions to catch cases where a 200 response contains an error message
  22. Monitor staging and production separately to catch deployment regressions
  23. Was this article helpful?