Liveness and contract version
GET
/health
const url = 'https://api.sloose.com/health';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.sloose.com/healthUnauthenticated. 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.
Responses
Section titled “Responses”The deployment is up.
Media typeapplication/json
object
ok
required
boolean
service
required
string
environment
required
string
contract
required
string
Example
{ "ok": true, "service": "sloose-api", "environment": "development"}