unPLUGDevelopers

Management API · Challenges

List challenge templates Coming soon

GET/v1/challenge_templates

Returns the template pack: Weekly regular, 4-week streak, Seasonal discovery, Afternoon pick-me-up, Breakfast pairing, Order ahead, Win-back and Bean bag. A template has the challenge fields without dates or a catalog reward. window_days is the window length to use, and suggested_reward says what usually works; pick the reward from your catalog when you create the challenge.

Permissions: Secret key with challenges:write.

Query parameters#

  • limitinteger
    Min 1Max 100Default 25
  • cursorstring
    next_cursor from the previous page.

Response fields#

Returns 200 with list of ChallengeTemplate

  • dataarray of ChallengeTemplate
    Show attributesChallengeTemplate
    • idstring
    • namestring
    • descriptionstring
    • typestring
    • goalobject
    • qualifyingobject
    • window_kindstring
      One of fixed, rolling
    • window_daysinteger
    • enrollmentstring
      One of automatic, opt_in
    • suggested_rewardstring
  • has_moreboolean
    True when another page exists.
  • next_cursorstringNullable
    Pass as cursor to get the next page.