data object means this community has no tiers configured, not that the route failed.GET /v1/xp-settings/tiers-info?communityId=<communityId> → if data is {}, there are no tiers to compare against member XP.communityId is required. Omitting it returns 400.getTiersInfo. The communityId query must match the key's community. Keep the key server-side.message is Tiers info fetched successfully. data may be {} when no tiers exist.{ "status": "error", "message": "Community ID is required" }.200. Repeat after admin changes tiers. This GET is the readback for tier configuration.| Status | When | Recovery |
|---|---|---|
400 Community ID is required | No communityId | Add the 24-character community ObjectId. |
401 | Missing or invalid token | Add a valid community key with getTiersInfo. |
communityId and expect the key to fill it in.data is success.curl --location 'https://adss-integration.returning.ai/apis/v1/xp-settings/tiers-info?communityId=64b7f3a2c8d4e6f102938475' \
--header 'Authorization: Bearer <COMMUNITY_API_KEY>'{
"status": "success",
"message": "Tiers info fetched successfully",
"data": {
"Explorer": {
"Bronze": "0 XP",
"Silver": "500 XP",
"Gold": "1500 XP"
},
"Challenger": {
"Bronze": "3000 XP",
"Silver": "6000 XP",
"Gold": "10000 XP"
},
"Champion": {
"Bronze": "15000 XP",
"Silver": "22000 XP",
"Gold": "30000 XP"
}
}
}