Bebshai API
Public HTTP API of the Bebshai platform.
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.
1 published endpoint · API v1.0.0
https://apibebshai.stackrover.comAuthentication
Every published endpoint is currently anonymous: send requests without credentials. Endpoints that need credentials will state their scheme here and on the endpoint itself.
Never put credentials in query strings or client-side code you ship to browsers.
Errors
Failed requests return a non-2xx status and one JSON envelope. code is stable and machine-readable — branch on it; message is safe to show to people but may change.
{
"error": {
"code": "not_found",
"message": "resource not found"
}
}Versioning
This reference describes API v1.0.0. Additive changes (new endpoints, new optional fields) ship without notice; breaking changes get a new major version. Download the contract as OpenAPI 3.1 JSON.
System
Service status for uptime monitors and load balancers.
Check service health
/healthzReports 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.
Anonymous — no credentials required
Responses
- 200The API is serving and the database is reachable.
status"ok"requiredAlways
okwhen the response status is 200.
- 503The API is running but cannot reach its database. Retry with backoff.
errorobjectrequiredcodestringrequiredStable machine-readable error code, e.g.
not_found,unavailable.messagestringrequiredHuman-readable explanation, safe to display.
curl "https://apibebshai.stackrover.com/healthz"{
"status": "ok"
}{
"error": {
"code": "unavailable",
"message": "database unreachable"
}
}