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>"| Create | From the dashboard. The key is shown exactly once and cannot be retrieved later. |
| Rotate | Create a second key, switch your integration over, revoke the old one. Up to 5 active keys per account. |
| Revoke | Immediate: requests with a revoked key return 403. |
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).
| Status | Meaning |
|---|---|
401 | Missing or unknown key. |
403 | Key exists but was revoked. |
429 | Over quota or burst limit. |