Rewards API
Claim task-level and quest-chain-level rewards and inspect claim history.
Claim a task reward
Publisher
Claims the reward for a completed quest-chain task belonging to the calling Platform. The claim is recorded once, reward delivery is attempted immediately, and any pending delivery is retried asynchronously.
Headers
x-onward-channelOptional. Where the end user is: web, ios or android. Without it the action is attributed to the channel of the user's last GET /v1/quest-chains/active call.
x-onward-user-agentThe end user's own User-Agent, forwarded verbatim. Platform servers call Onward server-to-server, so the request's own User-Agent is the platform's HTTP client, not the user's.
Claim a task reward › Request Body
platform_user_idIdentifier of the user in the calling Platform's own system.
task_idIdentifier of the completed quest-chain task whose reward the user is claiming.
Claim a task reward › Responses
Response for status 200
successIndicates that the request was successful.
Identifiers, timestamp, and the drawn reward of the successfully recorded task reward claim.
Claim a quest-chain reward
Publisher
Claims the reward attached to the quest chain itself after the user's chain reaches pending_reward. This is separate from task rewards; chain finalization and any pending reward delivery continue asynchronously.
Headers
x-onward-channelOptional. Where the end user is: web, ios or android. Without it the action is attributed to the channel of the user's last GET /v1/quest-chains/active call.
x-onward-user-agentThe end user's own User-Agent, forwarded verbatim. Platform servers call Onward server-to-server, so the request's own User-Agent is the platform's HTTP client, not the user's.
Claim a quest-chain reward › Request Body
platform_user_idIdentifier of the user in the calling Platform's own system.
quest_chain_idIdentifier of the completed quest chain whose chain-level reward the user is claiming.
Claim a quest-chain reward › Responses
Response for status 200
successIndicates that the request was successful.
Identifiers, timestamp, and the drawn reward of the accepted quest-chain reward claim.
List claimed rewards
Publisher
Returns task and quest-chain rewards claimed by a user belonging to the calling Platform, ordered from newest to oldest. Pass the returned next_cursor to continue from the following item.
path Parameters
platformUserIdIdentifier of the user in the calling Platform's own system.
query Parameters
limitMaximum number of claimed rewards returned per page.
cursorOpaque cursor returned as pagination.next_cursor by the previous page. Omit it for the first page.
List claimed rewards › Responses
Response for status 200
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: success, data, pagination | |
| type = object · requires: success, error |
successIndicates that the request was successful.