Skip to content

DevelopersGuides

Authentication

API keys, and the headers that carry them.

Make a key on your API keys page (sign in with Discord). It's shown once; we keep only a hash, so if you lose it, rotate it. Send it in the Authorization header:

Shell
curl -H "Authorization: Bearer ldx_…" https://lobbydex.com/api/v1/stats
  • Authorization: Bot ldx_… (as with Discord) and X-API-Key: ldx_… work too.
  • Without a header you use the anonymous allowance for your IP. A header with a malformed, unknown or revoked key is an error (401 invalid_key), never a silent fall back.
  • Keep keys on your server, not in browser code or public repositories.