Skip to content
API & automation

REST API

The control plane is fully programmable over a documented OpenAPI 3.1 REST API, authenticated by session cookie or org API key.

Everything you can do in the console is a REST endpoint. The API is described by an OpenAPI 3.1 document generated from the route definitions themselves, so it never drifts from the implementation.

https://cloud.backlex.com/api

Org-scoped routes live under /api/org/{slug}/…. Responses are JSON. Errors use a uniform envelope:

{ "error": { "code": "FORBIDDEN", "message": "Insufficient role for this action" } }
StatusMeaning
401Not authenticated
403Authenticated but insufficient role
404Org / resource not found
422Request validation failed (code: "VALIDATION")
429Rate limited

Two ways to authenticate:

  • Session cookie — the browser SPA sends it automatically. Good for first-party use.
  • API keyAuthorization: Bearer pak_…. Good for scripts, CI, and agents. See API keys.
Terminal window
curl https://cloud.backlex.com/api/org/<org>/projects \
-H "Authorization: Bearer pak_..."

The reference groups endpoints by area: Organization (members, settings, audit, usage, invitations, SCIM), Projects (CRUD, lifecycle, backups, domains, branches, deploys, errors, alarms), Integrations (API keys, integrations, webhooks, notifications), Enterprise SSO, and Billing.