Complete API documentation for RootRewards integration
POST /quests/{questId}
.GET /campaigns/{id}
or GET /quests
). Campaigns don’t hold balances and don’t allocate points—allocations always happen at the quest level.x-api-key
header. The API key must:
sk_
Parameter | Type | Location | Required | Description |
---|---|---|---|---|
questId | integer | path | Yes | Numeric ID of the quest |
limit | integer | query | No | Number of payouts to return (default: 20) |
offset | integer | query | No | Number of payouts to skip (default: 0) |
Header | Required | Description |
---|---|---|
x-api-key | Yes | Your API key starting with sk_ |
Code | Description |
---|---|
200 | Success |
400 | Quests are disabled or bad request |
401 | Unauthorized (invalid API key or not quest owner) |
404 | Quest not found |
Parameter | Type | Location | Required | Description |
---|---|---|---|---|
owner | string | query | No | Pass address of the quest owner |
Header | Required | Description |
---|---|---|
x-api-key | No | API key not required for this endpoint |
Code | Description |
---|---|
200 | Success |
400 | Quests are disabled or bad request |
Parameter | Type | Location | Required | Description |
---|---|---|---|---|
id | integer | path | Yes | Numeric ID of the campaign |
Header | Required | Description |
---|---|---|
x-api-key | No | API key not required for this endpoint |
Code | Description |
---|---|
200 | Success |
400 | Campaign is disabled or bad request |
404 | Campaign not found |
Parameter | Type | Location | Required | Description |
---|---|---|---|---|
questId | integer | path | Yes | Numeric ID of the quest |
Header | Required | Description |
---|---|---|
x-api-key | Yes | Your API key starting with sk_ |
Field | Type | Required | Description |
---|---|---|---|
points | integer | Yes | Number of points to allocate |
address | string | Yes | Pass address to receive points (will be converted to checksum format) |
Code | Description |
---|---|
200 | Points successfully allocated |
400 | Bad request (quest inactive, insufficient points, account not found, etc.) |
401 | Unauthorized (invalid API key or not quest owner) |
404 | Quest not found |