Skip to main content

Enrolling A Player To Your Game

Whalepass.gg

This table specifies the token types used in API requests, along with the corresponding headers and formats. It also provides the relevant URLs for each token.

Token TypeLocationFormatWhere To Find
Header TokenX-API-KEYX-API-KEY: YOURTOKENhttps://dashboard.whalepass.gg/api-key
Body FieldgameId{ "gameId": "string" }https://www.whalepass.gg/documentation/tutorial#finding-your-game-id
Body FieldplayerId{ "playerId": "string" }Provided by the developer

Request:

POST https://api.whalepass.gg/enrollments
{
"playerId": "string",
"gameId": "string"
}

Expected Response:

{
"id": "string",
"externalPlayerId": "string",
"gameId": "string",
"userId": "string",
"accountConnected": true,
"createdAt": "2023-12-26T13:05:17.428Z",
"updatedAt": "2023-12-26T13:05:17.428Z"
}