Skip to main content

Incrementing A Player's Experience Points (HARDCODE)

Whalepass.gg

This table outlines the token types and body fields required for API requests, their locations, formats, and where to find or provide the necessary values.

Token TypeLocationFormatWhere To Find
Header TokenX-API-KEYX-API-KEY: YOURTOKENhttps://dashboard.whalepass.gg/api-key
Header TokenX-Battlepass-IdX-Battlepass-Id: YOURTOKENhttps://dashboard.whalepass.gg/campaigns
Request ParamplayerId{ "playerId": "string" }You can find in response
Body FieldgameId{ "gameId": "string" }https://www.whalepass.gg/documentation/tutorial#finding-your-game-id
Body FieldadditionalExp{ "additionalExp": Int }Provided by the developer

Request:

POST https://api.whalepass.gg/players/{playerId}/progress/exp
{
"gameId": "string",
"additionalExp": 0
}

Expected response: 200 OK

⚠️ Warning
This endpoint doesn't accept battlepassId in the request body anymore. It will work for the ACTIVE battlepass of the game in the request body. To test specific DRAFT Battlepass, add X-Battlepass-Id header to request