Skip to main content
Every endpoint except GET /v1/health needs a key. Send it either way:
If both headers are present, X-API-Key is used. Keys look like cs2_live_<8-char prefix>_<secret>; the prefix identifies the key in GET /v1/usage and on the dashboard. The API stores only a hash, so a lost key cannot be shown again: create a new one. A missing, malformed, revoked or expired key returns 401 with WWW-Authenticate: Bearer and a problem+json body.

Keep keys on the server

Keys are for servers and notebooks. Never put one in a browser bundle, a mobile app or a public repository. A front end should call your own backend, which holds the key and calls this API.

Rotate and revoke

Manage keys from the dashboard at www.granuleux.com.
  • Rotate issues a new key on the same tier. The old key keeps working for a grace period, so you can deploy the new one without downtime, then stops.
  • Revoke disables a key immediately.
Rate limits and the daily unit budget are counted per key. See Rate limits. The parquet download URLs returned by GET /v1/games/{game}/files are signed and need no key. They expire after 15 minutes. See Files.