Rewards
List rewards to claim
GET
/v1/rewardsThe player's rewards that are earned and not claimed yet, oldest first. One entry is one occasion: everything a mission completion, a milestone or a leaderboard place pays, claimed together.
A reward past its deadline is not listed, and neither is one already claimed. A player this environment has never seen has nothing waiting.
Authorization
ApiKey AuthorizationBearer <token>
Paste a project API key (no 'Bearer ' prefix). Create one in the dashboard under API keys.
In: header
Query Parameters
playerId?string
Your own id for the player.
take?integer
The most rewards to return. Null returns all of them.
Format
int32Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/rewards"[ { "claimId": "88057929-7728-4a26-8396-f965dcc8b947", "sourceType": "Mission", "sourceKey": "string", "sourceId": "797f5a94-3689-4ac8-82fd-d749511ea2b2", "rewards": [ { "kind": "Points", "pointsAmount": null, "catalogItemKey": null, "catalogItemValue": null } ], "earnedAtUtc": "2019-08-24T14:15:22Z", "expiresAtUtc": null, "claimedAtUtc": null }]