Getting Player's Inventory
This endpoint returns player's inventory for a game
Token Type | Location | Format | Where To Find |
---|---|---|---|
Header Token | X-API-KEY | X-API-KEY: YOURTOKEN | https://dashboard.whalepass.gg/api-key |
Request Param | playerId | { "playerId": "string" } | You can find in response |
Request Param | gameId | { "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"
}
]
}