Skip to content

Liveness, contract version and commit

GET
/health
curl --request GET \
--url https://api.sloose.com/health

Unauthenticated. contract is the hash-locked contract version this deployment was built against — the one number worth comparing when a client and the API disagree about a shape. commit is the commit it was built from, which is how to tell whether a change is live.

The deployment is up. maintenance is true while the restore switch is on and every other route answers 503 MAINTENANCE, bar the operator’s own person deletion, which only the ADMIN_TOKEN reaches.

Media typeapplication/json
object
ok
required
boolean
service
required
string
Allowed values: sloose-api
environment
required
string
Allowed values: development staging production
contract
required
string
commit
required

The commit this deployment was built from, as the deploy passed it: the full sha. Null where the build was told none (development).

string | null
maintenance
required
boolean
Example
{
"ok": true,
"service": "sloose-api",
"environment": "development"
}

Report a problem with this page

sloose.com