Quests

Get all quests for program.

get
Authorizations
X-API-KeystringRequired
Query parameters
limitnumberOptional

Amount of quests to return (max 20).

offsetnumberOptional

Index to start at.

Responses
get
/v2/admin/quests
200

Successful response

Creates the quest with the provided fields.

post

Quests are a group of activity-thresholds (ordered or unordered) that customers need to meet in order to either unlock rewards/points for each activity-threshold, and/or rewards/points for completing the quest.

Authorizations
X-API-KeystringRequired
Body
quest_requirementsarrayRequired

An array of quest requirements

point_threshold_requirementnumberRequired

The threshold for required number of points.

descriptionstringRequired

A description of the quest.

ends_atnumberRequired

When the quest ends, in epoch seconds.

starts_atnumberRequired

When the quest starts, in epoch seconds.

opt_in_textstringRequired

The text to display when opting in to a quest.

namestringRequired

The name of the quest.

prioritynumberOptional

The display priority of the quest.

quest_typestringOptional

The type of quest.

sponsor_namestringOptional

The name of the quest sponsor.

calendar_intervalstringOptional

When the quest cycle ends. Values are daily, weekly, monthly, bimonthly, quarterly, yearly and unset.

max_num_of_completions_per_usernumberOptional

The maximum number of times a user can complete the quest.

max_num_of_completions_for_programnumberOptional

The maximum number of times the quest can be completed for the program.

terms_and_conditionsstringOptional

The terms and conditions of the quest.

auto_opt_in_at_signupbooleanOptional

Whether users should be automatically opted in to the quest at sign up.

auto_claim_prizebooleanOptional

Whether users should automatically receive the prize

claim_prize_header_textstringOptional

Header text for claiming prize screen.

claim_prize_messagestringOptional

Message text for claiming prize screen.

claim_prize_ctastringOptional

Call to action text for claiming prize

prize_nft_loyalty_reward_idstringOptional

The id of the Loyalty Reward for completing quest.

prize_point_reward_valuenumberOptional

The point value for completing the quest.

prize_loot_box_idstringOptional

The id of the Loot Box for completing quest.

image_urlstringOptional

The url of the image for the quest.

statusstringOptional

The status of the quest.

time_to_complete_minutesnumberOptional

The amount of time a user has to complete the quest.

Responses
post
/v2/admin/quests
200

Successful response

Get quest by Id.

get
Authorizations
X-API-KeystringRequired
Path parameters
quest_idstringRequired

The Id of the quest.

Responses
get
/v2/admin/quests/{quest_id}
200

Successful response

Updates the quest with the provided fields.

patch

Quests are a group of activity-thresholds (ordered or unordered) that customers need to meet in order to either unlock rewards/points for each activity-threshold, and/or rewards/points for completing the quest.

Authorizations
X-API-KeystringRequired
Path parameters
quest_idstringRequired

The Id of the quest.

Body
namestringOptional

The name of the quest.

prioritynumberOptional

The display priority of the quest.

opt_in_textstringOptional

The text to display when opting in to a quest.

quest_typestringOptional

The type of quest.

sponsor_namestringOptional

The name of the quest sponsor.

starts_atnumberOptional

When the quest starts, in epoch seconds.

ends_atnumberOptional

When the quest ends, in epoch seconds.

calendar_intervalstringOptional

When the quest cycle ends. Values are daily, weekly, monthly, bimonthly, quarterly, yearly and unset.

descriptionstringOptional

A description of the quest.

point_threshold_requirementnumberOptional

The threshold for required number of points.

max_num_of_completions_per_usernumberOptional

The maximum number of times a user can complete the quest.

max_num_of_completions_for_programnumberOptional

The maximum number of times the quest can be completed for the program.

terms_and_conditionsstringOptional

The terms and conditions of the quest.

auto_opt_in_at_signupbooleanOptional

Whether users should be automatically opted in to the quest at sign up.

auto_claim_prizebooleanOptional

Whether users should automatically receive the prize

claim_prize_header_textstringOptional

Header text for claiming prize screen.

claim_prize_messagestringOptional

Message text for claiming prize screen.

claim_prize_ctastringOptional

Call to action text for claiming prize

prize_nft_loyalty_reward_idstringOptional

The id of the Loyalty Reward for completing quest.

prize_point_reward_valuenumberOptional

The point value for completing the quest.

prize_loot_box_idstringOptional

The id of the Loot Box for completing quest.

image_urlstringOptional

The url of the image for the quest.

statusstringOptional

The status of the quest.

time_to_complete_minutesnumberOptional

The amount of time a user has to complete the quest.

quest_requirementsarrayOptional

An array of quest requirements

Responses
patch
/v2/admin/quests/{quest_id}
200

Successful response