curl --request GET \
--url 'https://api.stateset.com/health/ready' \
--header "Authorization: Bearer $STATESET_API_KEY"
{
"database": "string",
"status": "pending",
"tenant_cache": {
"cached_dbs": 1,
"enabled": true,
"evictions": 1,
"hits": 1,
"in_use_cached_dbs": 1,
"max_cached_dbs": 1,
"misses": 1,
"rejections": 1
}
}
readiness probe that checks DB connectivity
GET
/
health
/
ready
curl --request GET \
--url 'https://api.stateset.com/health/ready' \
--header "Authorization: Bearer $STATESET_API_KEY"
{
"database": "string",
"status": "pending",
"tenant_cache": {
"cached_dbs": 1,
"enabled": true,
"evictions": 1,
"hits": 1,
"in_use_cached_dbs": 1,
"max_cached_dbs": 1,
"misses": 1,
"rejections": 1
}
}
Readiness probe that checks DB connectivity.
Response
ReadyResponse
string
required
string
required
TenantCacheResponse,null
Status codes
| Code | Meaning |
|---|---|
200 | Service is ready |
503 | Service is not ready |
curl --request GET \
--url 'https://api.stateset.com/health/ready' \
--header "Authorization: Bearer $STATESET_API_KEY"
{
"database": "string",
"status": "pending",
"tenant_cache": {
"cached_dbs": 1,
"enabled": true,
"evictions": 1,
"hits": 1,
"in_use_cached_dbs": 1,
"max_cached_dbs": 1,
"misses": 1,
"rejections": 1
}
}
Last modified on August 31, 2026