Readiness probe
Verifies the worker can serve traffic — runs a cheap SELECT 1 against the database. Returns 503 if any dependency is unhealthy.
Authorization
apiKey AuthorizationBearer <token>
BAGS Agent API key from the dashboard. Standalone agentic keys manage products, payment links, and transaction reads.
In: header
curl -X GET "https://www.getbags.app/api/ready"{
"status": "ready",
"sha": "c866862e",
"env": "production",
"checks": {
"database": {
"ok": true,
"latencyMs": 12
}
},
"latencyMs": 13,
"timestamp": "2026-04-16T12:34:56.000Z"
}{
"status": "not_ready",
"sha": "c866862e",
"env": "production",
"checks": {
"database": {
"ok": false,
"latencyMs": 5000
}
},
"latencyMs": 5001,
"timestamp": "2026-04-16T12:34:56.000Z"
}