{"openapi":"3.1.0","info":{"title":"Bebshai API","version":"1.0.0","summary":"Public HTTP API of the Bebshai platform.","description":"Requests use REST over HTTP and return JSON. Errors share one envelope, `{ \"error\": { \"code\", \"message\" } }`, where `code` is a stable machine-readable string and `message` is safe to show to people.\n"},"tags":[{"name":"System","description":"Service status for uptime monitors and load balancers."}],"paths":{"/healthz":{"get":{"operationId":"getHealth","tags":["System"],"summary":"Check service health","description":"Reports whether the API is up and can reach its database. Anonymous and cheap: suitable for uptime monitors and load-balancer health checks. Do not call it more than once every few seconds.\n","security":[],"responses":{"200":{"description":"The API is serving and the database is reachable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"},"example":{"status":"ok"}}}},"503":{"description":"The API is running but cannot reach its database. Retry with backoff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"unavailable","message":"database unreachable"}}}}}}}}},"components":{"schemas":{"Health":{"type":"object","required":["status"],"additionalProperties":false,"properties":{"status":{"type":"string","const":"ok","description":"Always `ok` when the response status is 200."}}},"Error":{"type":"object","required":["error"],"additionalProperties":false,"properties":{"error":{"type":"object","required":["code","message"],"additionalProperties":false,"properties":{"code":{"type":"string","description":"Stable machine-readable error code, e.g. `not_found`, `unavailable`."},"message":{"type":"string","description":"Human-readable explanation, safe to display."}}}}}}},"servers":[{"url":"https://apibebshai.stackrover.com","description":"Bebshai API"}]}