List challenges Coming soon
GET/v1/challenges
Returns the live challenges one member is eligible for: the token's member, or the member_id you send from your server. Paginated with limit and cursor. To list every challenge in any status, use the Management API.
Permissions: Member token, or secret key with members:read.
Guide
ChallengesQuery parameters#
member_idstring (uuid)Required with a secret key: the member to list for. Take it from your own signed-in session.limitinteger1 to 100. Default 25.Min 1Max 100Default 25cursorstringnext_cursorfrom the previous page.
Response fields#
Returns 200 with list of Challenge
dataarray of ChallengeShow attributesChallenge
idstring (uuid)The challenge.namestringShown to guests.descriptionstringOne or two lines for guests.image_urlstring (uri)NullableHTTPS image for the challenge card.typestringvisits,streak,spendormenu_discovery.One ofvisits,streak,spend,menu_discoverygoalobjecttarget(number to reach) andunit(visits,periods,centsoritems). Streaks addperiod(dayorweek) andgrace_periods. Menu discovery addsitem_set: items (pos_item_id,name) or categories (pos_category_id,name). Fields that don't apply arenullor empty.Show attributesHide attributes
targetintegerunitstringOne ofvisits,periods,cents,itemsperiodstringNullableOne ofday,weekgrace_periodsintegerNullableitem_setarray of object
qualifyingobjectWhich orders count:min_subtotal_cents,channels,location_ids,fulfillment,available_times(same shapes as reward rules; empty lists mean no limit) andmax_counted_per_day(default 1).Show attributesHide attributes
min_subtotal_centsintegerInteger cents.Min 0channelsarray of stringlocation_idsarray of string (uuid)fulfillmentarray of stringOne ofpickup,delivery,curbside,dine_inavailable_timesarray of AvailableTimeShow attributesAvailableTime
daysarray of stringShow valuesHide values
montuewedthufrisatsun
startstringLocal time, HH:MM.endstringLocal time, HH:MM.
max_counted_per_dayinteger
windowobject or object{ "kind": "fixed", "starts_at", "ends_at" }for the same dates for everyone, or{ "kind": "rolling", "days" }for a window per member that starts when they join.enrollmentstringautomaticoropt_in.One ofautomatic,opt_inrewardobject or object{ "kind": "points", "points" }for bonus points, or{ "kind": "reward", "reward_id" }for a catalog reward that lands in the wallet.max_completions_per_memberintegerUsually 1.budgetobjectmax_completionsacross all members, ornullfor no limit.Show attributesHide attributes
max_completionsintegerNullable
statusstringdraft,scheduled,live,pausedorended.One ofdraft,scheduled,live,paused,endedversionintegerGoes up each time a scheduled or live challenge is edited. Members keep the rules of the version they joined.
has_morebooleanTrue when another page exists.next_cursorstringNullablePass ascursorto get the next page.
Error descriptions#
401Unauthorized
token_expired
Get a new member token and retry.
Any endpoint can also return the common errors.