TypeScript SDK
import { NinjaChat } from "@ninjachat/sdk";
const client = new NinjaChat({ apiKey: process.env.NINJACHAT_API_KEY! });
const health = await client.health();
console.log(health);import os
from ninjachat import NinjaChat
client = NinjaChat(api_key=os.environ["NINJACHAT_API_KEY"])
health = client.health()
print(health)curl --request GET \
--url https://www.ninjachat.ai/api/v1/health{}Operations
Get gateway health
GET
/
health
TypeScript SDK
import { NinjaChat } from "@ninjachat/sdk";
const client = new NinjaChat({ apiKey: process.env.NINJACHAT_API_KEY! });
const health = await client.health();
console.log(health);import os
from ninjachat import NinjaChat
client = NinjaChat(api_key=os.environ["NINJACHAT_API_KEY"])
health = client.health()
print(health)curl --request GET \
--url https://www.ninjachat.ai/api/v1/health{}Response
200 - application/json
Measured gateway health.
The response is of type object.