Lecturia Developers

Authentication

Every /v1/saas/* endpoint except POST /auth/register and POST /auth/login requires a bearer API key:

curl https://api.lecturia.ai/v1/saas/me \
  -H "Authorization: Bearer lk_live_..."

Key kinds

PrefixEnvironmentBilling
lk_live_ProductionSynthesis charges credits
lk_test_SandboxNever deducts credits

Both kinds use the same base URL — the key alone selects the environment. There is no separate sandbox hostname.

What is NOT accepted

Scopes

Keys carry scopes: read, write, admin. Administrative endpoints (key minting, webhook management) require admin; a key can only mint keys with a subset of its own scopes (403 scope_escalation otherwise). Give day-to-day integrations read+write and keep an admin key aside.

Key lifecycle

Rate limits and errors

Auth endpoints are velocity-limited (429 rate_limited — back off and retry). Every error is the uniform envelope described in Error codes.