BagsBags Docs

Readiness probe

Verifies the worker can serve traffic — runs a cheap SELECT 1 against the database. Returns 503 if any dependency is unhealthy.

GET
/api/ready
AuthorizationBearer <token>

BAGS API key from the merchant dashboard. Live keys (bag_live_…) operate against real chains; test keys (bag_test_…) are limited to test networks.

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/api/ready"
{
  "status": "ready",
  "checks": {
    "database": {
      "status": "ok",
      "latencyMs": 0
    }
  }
}
{
  "status": "ready",
  "checks": {
    "database": {
      "status": "ok",
      "latencyMs": 0
    }
  }
}