Skip to main content

Getting Player's Inventory

Whalepass.gg

This endpoint returns player's inventory for a game

Token TypeLocationFormatWhere To Find
Header TokenX-API-KEYX-API-KEY: YOURTOKENhttps://dashboard.whalepass.gg/api-key
Request ParamplayerId{ "playerId": "string" }You can find in response
Request ParamgameId{ "gameId": "string" }https://www.whalepass.gg/documentation/tutorial#finding-your-game-id

Request:

GET https://api.whalepass.gg/players/{playerId}/inventory?gameId={gameId}

Expected Response:

{
"gameId": "string",
"playerId": "string",
"externalPlayerId": "string",
"items": [
{
"rewardId": "string",
"battlepassId": "string",
"name": "string",
"amount": 0,
"mediaUrl": "string"
}
]
}