List a member's challenges from your server Coming soon
GET/v1/members/{id}/challenges
The same as List a member's challenges, for a server-to-server integration. Take the member id from your own signed-in session, never from a value the app sends.
Permissions: Secret key with members:read.
Guide
ChallengesPath parameters#
idstring (uuid)RequiredThe member id.
Query parameters#
limitintegerMin 1Max 100Default 25cursorstringnext_cursorfrom the previous page.
Response fields#
Returns 200 with list of MemberChallenge
dataarray of MemberChallengeShow attributesMemberChallenge
challenge_idstring (uuid)The challenge.member_idstring (uuid)statusstringeligible(can join, not joined),enrolled,completedorexpired.One ofeligible,enrolled,completed,expiredprogressobjectcurrent,targetandunit. For streaks,periodslists each day or week withstarts_at,ends_atandmet; it's empty for other types.Show attributesHide attributes
currentintegertargetintegerunitstringOne ofvisits,periods,cents,itemsperiodsarray of objectShow attributesHide attributes
starts_atstring (date-time)ends_atstring (date-time)metboolean
window_ends_atstring (date-time)NullableWhen this member's window ends. For a rolling challenge they haven't joined,null.completed_atstring (date-time)NullableWhen they completed it, ornull.reward_wallet_item_idstring (uuid)NullableThe wallet item paid on completion, for catalog rewards.nullotherwise.
has_morebooleanTrue when another page exists.next_cursorstringNullablePass ascursorto get the next page.
Error descriptions#
404Not found
member_not_found
No member with this id.
410Gone
member_deleted
The member was deleted.
Any endpoint can also return the common errors.