LocusAPI
Problems API / Guide

Authentication

Every /public/* request needs an API key. Keys are prefixed lpk_ and belong to your Locus account.

# Preferred: x-api-key header
curl "https://api.locusmath.org/public/topics" -H "x-api-key: <your-key>"

# Also accepted: Authorization Bearer
curl "https://api.locusmath.org/public/topics" -H "Authorization: Bearer <your-key>"

Key lifecycle

CreateFrom the dashboard. The key is shown exactly once and cannot be retrieved later.
RotateCreate a second key, switch your integration over, revoke the old one. Up to 5 active keys per account.
RevokeImmediate: requests with a revoked key return 403.

Keep keys server-side

Quotas are billed to your account, so treat keys like passwords: call the API from your backend and keep the key out of browsers, mobile apps, and public repos. Extra keys never increase your quota - limits are per account (see rate limits).

Failure modes

StatusMeaning
401Missing or unknown key.
403Key exists but was revoked.
429Over quota or burst limit.