Skip to main content
Start with the SDKs. Alibi is SDK-first: extend, customize, and integrate through the language SDKs. Prefer:
  1. Python SDK reference — primary / reference implementation
  2. Node SDK reference — Express parity
Wire middleware + plugins into your app; use control-plane HTTP only when you need raw routes, CI hooks, or non-SDK clients.

What’s in this tab

HTTP contract (underneath)

The control-plane TypeScript route table is the source of truth for HTTP: apps/control-plane/src/api/routes.ts OpenAPI (docs-site/openapi/control-plane.yaml) is generated from that inventory (57 operations — no invented endpoints). Regenerate with cd docs-site && npm run openapi. This is not “Node over Python.” The control plane happens to be TypeScript; that does not demote the Python SDK. Language SDKs consume the HTTP API — they do not redefine it. Base URL (local): http://127.0.0.1:4100/api

Authentication

Seeded demo keys: junnu-key-demo, laddu-key-demo, viewer-key-demo. GET /whoami returns the resolved actor or 401.

Conventions

  • JSON request/response bodies (content-type: application/json).
  • Errors: { "error": "message" } with 4xx status.
  • Live Record sessions are private to the recorder until save-case.
  • Cases, baselines, and runs are project-shared after save.
  • Approve requires an actor role listed in project policy (approveRoles).

Raw HTTP happy path (when not using an SDK)