Skip to content

Looks up a group member by their referral code and returns their referral codes, plus the paginated list of referrals credited to those codes. A code with no approved, group-linked Nexus behind it returns 400 with CodeNotInGroup. Pass excludeReferralList=true to skip the referral history and get only the codes and member summary; when set, currentPage, currentPageSize, totalCount, and referrals are left out of the response entirely.

X-SHARED-SECRET
required
stringheader

Send your public API key (nexus_pk_...) in the X-SHARED-SECRET header. Generate one in the Publisher Dashboard.

code
required
string
Example
popcornfrog

The creator’s referral code to look up. Matched case-insensitively.

groupId
string
Example
V1StGXR8_Z5jdHi6B1LiO

Creator group to use for this operation. If your key is scoped to a single program, that group is always used regardless of this value; otherwise falls back to your default group when omitted.

page
integer format: int32
default: 1 >= 1 <= 9999

Page of records to return

pageSize
integer format: int32
default: 100 >= 1 <= 100

Maximum number of records to return

excludeReferralList
boolean
Example
true

If set to true, referrals are not retrieved and the response omits currentPage, currentPageSize, totalCount, and referrals entirely.

Referral code info requested

Media typeapplication/json
object
groupId

ID of the creator group

string
groupName

Name of the creator group

string
referralCodes
Array<object>
object
code
string
isPrimary

Indicates whether or not this is the primary Referral Code for this user.

boolean
isGenerated

Indicates whether or not this is a code that you generated.

boolean
isManaged

Indicates whether or not this is a code that you manage. Once a code that you generated has been linked to a Nexus account, it will no longer be considered managed.

boolean
playerId

Your own identifier for this creator, from externalRef. Set when you link a Nexus to a player ID.

string
currentPage

Page number of response records returned

integer format: int32
currentPageSize

Page size used for this operation

integer format: int32
totalCount

Total number of referrals for this code

integer format: int32
referrals
Array<object>
object
id

The referral’s unique id.

string
code

The creator’s referral code.

string
playerId

ID of the referring player. This is not displayed to the nexus being referred

string
playerName

Display name of the referring player. This is displayed to the nexus being referred

string
referralDate
string format: date-time

Bad request

Media typeapplication/json
object
code

CodeNotInGroup: Creator group is private, and specified code is not linked to it
InvalidGroup: No creator group was found with the specified groupId
InvalidAuthCode: AuthCode provided is not valid
ExpiredAuthCode: AuchCode provided has expired
ReferralNexusNotFound: No Nexus was found to match the provided referral code

string
Allowed values: InvalidGroup CodeNotInGroup InvalidAuthCode ExpiredAuthCode ReferralNexusNotFound UnknownError
message
string
GET
/code/{code}
curl --request GET \
--url 'https://api.nexus.gg/v1/referrals/code/popcornfrog?groupId=V1StGXR8_Z5jdHi6B1LiO&page=1&pageSize=100&excludeReferralList=false' \
--header 'X-SHARED-SECRET: nexus_pk_your_key_here'
Example
{
"groupId": "V1StGXR8_Z5jdHi6B1LiO",
"groupName": "Aurora Drift Creators",
"referralCodes": [
{
"code": "popcornfrog",
"isPrimary": true,
"isGenerated": false,
"isManaged": false
}
],
"playerId": "player_8f2c41d0",
"currentPage": 1,
"currentPageSize": 100,
"totalCount": 15,
"referrals": [
{
"id": "2ixlNNFdJh-9scoXek80w",
"code": "popcornfrog",
"playerId": "player_8f2c41d0",
"playerName": "shadowstrike99",
"referralDate": "2026-03-13T17:32:28Z"
}
]
}