JavaScript
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);curl https://api.morphik.ai/health \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"status": "<string>",
"services": [
{
"name": "<string>",
"status": "<string>",
"message": "<string>",
"response_time_ms": 123
}
],
"timestamp": "<string>"
}health
Health Check
Comprehensive health check endpoint that queries all underlying services.
Checks the following services:
- PostgreSQL database
- Redis
- PGVector store
- Storage service (Local/S3)
- ColPali vector store (if enabled)
GET
/
health
JavaScript
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);curl https://api.morphik.ai/health \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"status": "<string>",
"services": [
{
"name": "<string>",
"status": "<string>",
"message": "<string>",
"response_time_ms": 123
}
],
"timestamp": "<string>"
}Was this page helpful?

