Authentication
Every request must carry a project key in the Authorization header:
Authorization: Bearer lb_live_3c9f…
Keys starting with lb_test_ work against the sandbox and return synthetic data.
Rotating keys
A project can hold two active keys. Create the new key, deploy it, then revoke the old one. Revoked keys stop working within 60 seconds.
Errors
| Status | Code | Meaning |
|---|---|---|
| 401 | missing_key | No Authorization header |
| 401 | invalid_key | Key unknown or revoked |
| 403 | scope_denied | Key lacks the scope for this endpoint |
| 429 | rate_limited | Tier limit reached; see Retry-After |