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_… | Read endpoints (for example, listing creators). |
| Private | nexus_sk_… | Writes and sensitive reads (recording and updating attribution transactions). |
Endpoints are gated by key type: a public-key request to a private endpoint returns 401, and a
private key works wherever a public key does.
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 |