This section explains how builders test the RootRewards Quest API on staging using the official endpoints. It aligns with the team’s approach of API-only testing with provided FuturePass addresses (no staging UI access required)
x-api-key
, starts with sk_
).payouts[]
entry shows the address and amount you sent.points_remaining
reflects deductions across allocations.Case | How to test | Expected status |
---|---|---|
Account not found | Allocate to the “no RR account” test address | 400 |
Quest not active | Allocate outside the quest’s start /end window | 400 |
Insufficient points | Allocate more than points_remaining | 400 |
Unauthorized | Omit or change x-api-key | 401 |
Quest not found | Use an invalid {questId} | 404 |
owner={passAddress}
POST /quests/{questId}
returns 200
with a payout
object for the happy‑path address.GET /quests/{questId}
shows the payout (correct address
, amount
, created_at
).400/401/404
) when triggered intentionally.ReplaceAllocate{BASE_URL}
,{QUEST_ID}
,{API_KEY}
,{ADDR}
.