import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.ping.status();
console.log(response.services);{
"status": "<string>",
"services": [
{
"name": "<string>",
"status": "<string>",
"message": "<string>",
"response_time_ms": 123
}
],
"timestamp": "<string>"
}Comprehensive health check endpoint that queries all underlying services.
Checks the following services:
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.ping.status();
console.log(response.services);{
"status": "<string>",
"services": [
{
"name": "<string>",
"status": "<string>",
"message": "<string>",
"response_time_ms": 123
}
],
"timestamp": "<string>"
}Successful Response
Was this page helpful?