The Nexus API authenticates every request with a publisher API key, sent in the
X-SHARED-SECRET request header. A request with a missing, inactive, or wrong-type key is rejected
with 401 Unauthorized.
GET /v1/attributions/creators HTTP/1.1Host: api.nexus.ggX-SHARED-SECRET: nexus_pk_your_key_hereKey types
Section titled “Key types”A publisher admin mints keys in the Nexus Dashboard. There are two types, distinguished by prefix:
| Type | Prefix | Use it for |
|---|---|---|
| Public | nexus_pk_… | Reads your game client makes (for example, validating a creator code). Ships in the client. |
| Private | nexus_sk_… | Writes and sensitive reads (recording and updating attribution transactions). Server-side only. |
Endpoints are gated by key type, and the gate works in both directions: a key of the wrong type
returns 401. A private key is rejected by an endpoint that takes a public key, so send each
endpoint the key type its reference names.
Save your key when you create it
Section titled “Save your key when you create it”Copy and securely save each key before closing the creation dialog. Both public and private keys
are shown only once. The Developer settings list shows key metadata but cannot reveal the key.
Existing keys continue to work. If you lose one, create a replacement, update your integration,
and delete the old key. Send the original key in X-SHARED-SECRET; do not hash it yourself.
Sandbox vs production
Section titled “Sandbox vs production”Point non-production testing at the sandbox host and keep production keys for production traffic.
| Environment | Base URL |
|---|---|
| Production | https://api.nexus.gg |
| Sandbox | https://api.nexus-dev.gg |