Rewards

Claim a granted reward

Changed on

Returns expired or already_claimed as a normal 200 result — both are states the app has copy for, and turning them into errors makes the claim button look broken. next_action tells the app where to go next.

post/api/rewards/grants/{id}/claim

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/rewards/grants/{id}/claim
  • Auth
    HTTP bearer

Path parameters

idnumber required

Response

unknown required

Example response

{
  "status": "claimed",
  "next_action": "collect_address",
  "grant": {
    "id": 12,
    "reward_type": "branded_water_bottle"
  }
}

Changes