ChatKomodo Docs Home Sign in

API reference · Account

System

Liveness probe

GET/healthNo authentication

Public, unauthenticated. Returns a fixed status, the API version and whether the WhatsApp engine is up, and nothing about tenants, sessions or load.

Responses

  • 200The gateway is up
    Response fields
    • statusstringrequired
      One of: ok
    • versionstringrequired
      API version, e.g. 1.0.0
    • enginestringrequired
      inline: WhatsApp runs in the API process; ready / starting: the separate WhatsApp engine process
      One of: inline, ready, starting
Request
curl "https://api.chatkomodo.com/health"
const res = await fetch('https://api.chatkomodo.com/health', {
  method: 'GET',
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.code}: ${data.error}`);
console.log(data);
import os
import requests

res = requests.get(
    "https://api.chatkomodo.com/health",
    timeout=30,
)
res.raise_for_status()
print(res.json())
<?php
require 'vendor/autoload.php';

$client = new GuzzleHttp\Client();
$res = $client->request('GET', 'https://api.chatkomodo.com/health', [
]);

print_r(json_decode((string) $res->getBody(), true));
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, err := http.NewRequest("GET", "https://api.chatkomodo.com/health", nil)
	if err != nil {
		panic(err)
	}

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	data, _ := io.ReadAll(res.Body)
	if res.StatusCode >= 400 {
		panic(fmt.Sprintf("%d: %s", res.StatusCode, data))
	}
	fmt.Println(string(data))
}
Response 200
{
  "status": "ok",
  "version": "string",
  "engine": "inline"
}