Liftbay
API reference

API reference

Every operation of the Liftbay API, generated from its OpenAPI document.

The dashboard, the CLI and the build runners all use this same public API; there are no private endpoints.

Base URL

https://api.liftbay.dev

The machine-readable contract is served at /v1/openapi.json, and the typed TypeScript client @liftbay/sdk is generated from it.

Authentication

CallerHow
CLI, CI, scriptsAuthorization: Bearer lbt_…, an organization API token (Settings → API tokens). It has a role like a member.
DashboardThe lb_session cookie, set by sign-in.
Build runnersAuthorization: Bearer lbj_…, a job token valid for one build only.

Each operation lists the permission it needs in x-liftbay-permission.

Errors

Every error has the same shape:

{ "error": { "code": "validation_failed", "message": "Use UPPER_SNAKE_CASE…", "fields": { "key": "…" } } }

fields is present on validation errors and names each invalid input.

On this page