Health check
GET
/healthz
const url = 'https://api.chainmetric.io/healthz';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.chainmetric.io/healthzReturns {"status":"ok"} when the API is up.
No key is needed.
Use it to check reachability before other calls.
Responses
Section titled “Responses”The API is up.
Media typeapplication/json
object
status
string
Examples
Exampleok
{ "status": "ok"}