curl "https://api.pinakelai.com/v1/health"
import requests
resp = requests.get("https://api.pinakelai.com/v1/health", timeout=10)
healthy = resp.status_code == 200
const res = await fetch("https://api.pinakelai.com/v1/health");
const healthy = res.status === 200;
{
"status": "ok",
"build": "4f9a2c71d0e8"
}
{
"type": "https://docs.pinakelai.com/errors/unavailable",
"title": "Service unavailable",
"status": 503,
"detail": "A data store did not answer in time.",
"request_id": "req_01M7Q41M2N3P4Q5R6S7T8V9W0X"
}
Account
Service health
Public health check of the API and its data stores.
GET
/
v1
/
health
curl "https://api.pinakelai.com/v1/health"
import requests
resp = requests.get("https://api.pinakelai.com/v1/health", timeout=10)
healthy = resp.status_code == 200
const res = await fetch("https://api.pinakelai.com/v1/health");
const healthy = res.status === 200;
{
"status": "ok",
"build": "4f9a2c71d0e8"
}
{
"type": "https://docs.pinakelai.com/errors/unavailable",
"title": "Service unavailable",
"status": 503,
"detail": "A data store did not answer in time.",
"request_id": "req_01M7Q41M2N3P4Q5R6S7T8V9W0X"
}
Public: no key needed, not counted and not logged, and callable from any origin.
Returns 200 with
"status": "ok" when the API can reach both of its data stores, and 503 unavailable otherwise. The result is cached for 5 seconds. build identifies the deployed version, which helps when you report a problem.
Use it for smoke checks after a deployment and for status pages. A 503 here means requests may fail for a while; your normal error handling covers that.
curl "https://api.pinakelai.com/v1/health"
import requests
resp = requests.get("https://api.pinakelai.com/v1/health", timeout=10)
healthy = resp.status_code == 200
const res = await fetch("https://api.pinakelai.com/v1/health");
const healthy = res.status === 200;
{
"status": "ok",
"build": "4f9a2c71d0e8"
}
{
"type": "https://docs.pinakelai.com/errors/unavailable",
"title": "Service unavailable",
"status": 503,
"detail": "A data store did not answer in time.",
"request_id": "req_01M7Q41M2N3P4Q5R6S7T8V9W0X"
}