Skip to content

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.1
Host: api.nexus.gg
X-SHARED-SECRET: nexus_pk_your_key_here

A publisher admin mints keys in the Nexus Dashboard. There are two types, distinguished by prefix:

TypePrefixUse it for
Publicnexus_pk_…Reads your game client makes (for example, validating a creator code). Ships in the client.
Privatenexus_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.

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.

Point non-production testing at the sandbox host and keep production keys for production traffic.

EnvironmentBase URL
Productionhttps://api.nexus.gg
Sandboxhttps://api.nexus-dev.gg