Skip to content

feat(ATL-57): Add /api/health endpoint for status monitoring#76

Open
bolty-from-atl-bitlab[bot] wants to merge 1 commit intomainfrom
bolty/atl-57-health-endpoint
Open

feat(ATL-57): Add /api/health endpoint for status monitoring#76
bolty-from-atl-bitlab[bot] wants to merge 1 commit intomainfrom
bolty/atl-57-health-endpoint

Conversation

@bolty-from-atl-bitlab
Copy link
Contributor

Summary

Adds a health check endpoint for Uptime Robot monitoring.

Endpoint

GET /api/health

Response

{
  "status": "healthy",
  "timestamp": "2026-02-11T...",
  "checks": {
    "database": { "status": "up", "latencyMs": 12 },
    "lightning": { "status": "up" }
  }
}

Status Codes

  • 200 - All checks passing
  • 503 - One or more checks failing

Checks Performed

  1. Database - Runs SELECT 1 query, measures latency
  2. Lightning - Verifies MDK credentials are configured

Next Steps (after merge)

  1. Configure Uptime Robot monitors
  2. Set up Discord webhook alerts
  3. Create public status page
  4. Add link to twelve.cash

Closes ATL-57

- Checks database connectivity with latency measurement
- Verifies Lightning/MDK configuration
- Returns 200 if healthy, 503 if unhealthy
- JSON response with detailed check results
@vercel
Copy link

vercel bot commented Feb 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
twelvecash Ready Ready Preview, Comment Feb 12, 2026 0:31am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant