Health API

GET /health

Liveness check. Returns 200 if the service is running.

GET /health/detailed

Detailed health check including RPC connectivity and fee payer status.

GET /info

Protocol metadata, enabled features, and version information.

Example Responses

GET /health

Response
{
  "status": "ok",
  "timestamp": "2026-03-16T12:00:00.000Z"
}

GET /health/detailed

Response
{
  "status": "healthy",
  "rpc": {
    "connected": true,
    "slot": 287654321
  },
  "feePayer": {
    "enabled": true,
    "pubkey": "FeePayerPubkey...",
    "balanceLamports": 4250000000,
    "balanceSol": 4.25
  },
  "timestamp": "2026-03-15T12:00:00.000Z"
}

GET /info

Response
{
  "name": "Vouch API",
  "version": "0.5.0",
  "program": "5i73FN7Ycgnh9dr2Yzf3oFiTCKhu85JPpTUbZ84VPtu4",
  "feeSponsorshipEnabled": true,
  "network": "devnet",
  "features": {
    "did": { "enabled": true, "method": "did:sol", "spec": "W3C DID v1.1" },
    "mcp": { "enabled": true, "endpoint": "/mcp/sse", "spec": "MCP 2025-11-25" },
    "a2a": { "enabled": true, "spec": "A2A Agent Card v0.3" },
    "credentials": { "enabled": true, "spec": "W3C Verifiable Credentials v2.0" }
  }
}