SchemaLabsDocs
Docs · Get started

Authentication

API keys, scopes, and how the platform and the API share one identity and one meter.

Every API request carries an org-scoped API key as a bearer token:

Authorization: Bearer <API key>

Keys are created on the platform’s API page or with POST /v2/keys. The secret is shown once, at creation, and never again; listings show the key id (key_...) and a preview of the secret. Store secrets in a secrets manager and rotate with POST /v2/keys/:id/rotate.

Two modes, one org

ModeWhoHowBills to
InteractiveHumansWeb sign-in on platform.schemalabs.aithe org
HeadlessCI, agents, pipelines, appsAuthorization: Bearer $SCHEMA_API_KEYthe same org

An endpoint created over the API appears in the platform Endpoints list immediately. Usage from both surfaces draws one org meter and one bill; the Usage page and GET /v2/usage render the same numbers, broken down by surface.

Scopes

Outputs are bundled, so keys are never scoped per output. They are scoped by operation:

ScopeAllows
readList and get endpoints, data, reports, jobs, usage, models, keys
runStateless inference on the base models: POST /v2/run
serveCall live endpoints: POST /v2/serve/:id
manageCreate endpoints, refresh, upgrade, connect and sync data, pin and unpin, generate synthetic data, cancel jobs, manage keys
deleteDelete endpoints and data, revoke keys

A key can hold any combination. Give production systems the least they need: a pipeline that only serves endpoints needs serve alone.

Errors

SituationResponse
Missing or malformed key401 auth_error
Key revoked401 auth_error
Key lacks the route’s scope403 auth_error

See Errors for the envelope.

What a key covers

A key buys inference: run returns the output bundle, and an endpoint serves your configuration over the shared base (or an Enterprise fine-tune) at a URL. Connection credentials you register are encrypted at rest and write-only.

Type to search.
    navigate open