Campaign

Get all campaigns

get
/quests

This endpoint retrieves all the active campaigns.

Query parameters
pagestringOptional

The page number of expected set of documents.

Example: 1
limitstringOptional

The limit of the number of documents each page.

Example: 10
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
Responses
200

Successful response

application/json
get
/quests

Get all campaigns for an entity

get
/entities/{entityId}/quests

This endpoint retrieves all the active campaigns of a specific entity.

Path parameters
entityIdstringRequired
Query parameters
pagestringOptional

The page number of expected set of documents.

Example: 1
limitstringOptional

The limit of the number of documents each page.

Example: 10
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
Responses
200

Successful response

application/json
get
/entities/{entityId}/quests

Create campaign

post
/entities/{entityId}/quests

This endpoint allows to create a campaign.

Path parameters
entityIdstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
Body
titlestringRequiredExample: Title of this campaign
descriptionstringOptionalExample: Description of this campaign
imageURLstringOptionalExample: https://www.myimage.com
endsAtnumberOptionalExample: 72000
hasReferralbooleanOptionalExample: false
themeobjectOptional
Responses
200

Successful response

application/json
post
/entities/{entityId}/quests

Get campaign details

get
/entities/{entityId}/quests/{questId}

This endpoint retrieves the details of a specific campaign.

Path parameters
entityIdstringRequired
questIdstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
Responses
200

Successful response

application/json
get
/entities/{entityId}/quests/{questId}

Get campaign summary

get
/entities/{entityId}/quests/{questId}/summary

This endpoint retrieves the campaign summary.

Path parameters
entityIdstringRequired
questIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/quests/{questId}/summary

Update campaign details

post
/entities/{entityId}/quests/{questId}/update

This endpoint allows an admin to update a campaign.

Path parameters
entityIdstringRequired
questIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
titlestringOptionalExample: Title of this campaign
descriptionstringOptionalExample: Description of this campaign
imageURLstringOptionalExample: https://www.myimage.com
endsAtnumberOptionalExample: 72000
hasReferralbooleanOptionalExample: false
themeobjectOptional
rewardsobject[]OptionalExample: [{"type":"REWARD_BADGE","title":"Dummy badge","imageIPFS":"ipfs-hash","description":"badge description"}]
eligibilityCriteriaIdsToDeletestring[]OptionalExample: ec-101
rewardIdsToDeletestring[]OptionalExample: r-101
Responses
200

Successful response

application/json
post
/entities/{entityId}/quests/{questId}/update

Delete campaign

post
/entities/{entityId}/quests/{questId}/delete

This endpoint allows an admin to delete a campaign.

Path parameters
entityIdstringRequired
questIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
objectOptional
Responses
200

Successful response

application/json
post
/entities/{entityId}/quests/{questId}/delete

Verify campaign criteria

post
/entities/{entityId}/quests/{questId}/verify

This endpoint allows users to verify an eligibility criteria.

Path parameters
entityIdstringRequired
questIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
criteriaIdstringOptionalExample: criteria-123
answersstring[]OptionalExample: ["answer1","answer2"]
Responses
200

Successful response

application/json
post
/entities/{entityId}/quests/{questId}/verify

Claim campaign rewards

post
/entities/{entityId}/quests/{questId}/claim

This endpoint allows a user to claim rewards.

Path parameters
entityIdstringRequired
questIdstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
userIdstringOptionalExample: user-123
referralCodestringOptionalExample: referal-code
Responses
200

Successful response

application/json
post
/entities/{entityId}/quests/{questId}/claim

Claim campaign rewards

post
/entities/{entityId}/quests/{questId}/claim-multiple

This endpoint allows a user to claim rewards.

Path parameters
entityIdstringRequired
questIdstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
referer;stringOptional
Body
userIdstringOptionalExample: user-123
referralCodestringOptionalExample: referal-code
questIdsstring[]Optional
addToDynamicNFTbooleanOptional
failedClaimsstring[]Optional
Responses
200

Successful response

application/json
post
/entities/{entityId}/quests/{questId}/claim-multiple

New referal code for campaign and user

get
/entities/{entityId}/quests/{questId}/users/{userId}/referralcode

This endpoint allows ato get or set a new refereal code associated with a campaign and user.

Path parameters
entityIdstringRequired
questIdstringRequired
userIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/quests/{questId}/users/{userId}/referralcode

Get Multiples Quests

get
/entities/{entityId}/multiple-quests

This endpoint retreives multiple campaigns

Path parameters
entityIdstringRequired
Query parameters
userIdstringRequired
detailsPagestringOptional
pagenumberOptional
limitnumberOptional
selectedOptionstringOptional
getTopQuestbooleanOptional
sortByPrioritystringOptional
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/multiple-quests

Verify multiple campaign criteria

post
/entities/{entityId}/quests/{questId}/verify-all

This endpoint allows users to verify an eligibility criteria.

Path parameters
entityIdstringRequired
questIdstringRequired
Query parameters
userIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
referralCodestringOptionalExample: xhy1245
userIdstringOptionalExample: 1
sessionstringOptional
Responses
200

Successful response

application/json
post
/entities/{entityId}/quests/{questId}/verify-all

Get referal leaderboard

get
/entities/{entityId}/quests/{questId}/referraldashboard

This endpoint retrieves the referal leaderboard stats.

Path parameters
entityIdstringRequired
questIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/quests/{questId}/referraldashboard

Get eligibility criteria for a quest

get
/entities/{entityId}/quests/{questId}/criterias

Retrieve eligibility criteria for a specific quest associated with an entity.

Path parameters
entityIdstringRequired

The ID of the entity.

questIdstringRequired

The ID of the quest.

Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/quests/{questId}/criterias

Create Multiple Default Quests

post
/entities/{entityId}/default-multi-quest

Create multiple default quests for a specified entity.

Path parameters
entityIdstringRequired

The ID of the entity for which quests are created.

Body
defaultIdsstring[]Optional
Responses
200

Success

application/json
post
/entities/{entityId}/default-multi-quest

Create a default quest for the entity

post
/entities/{entityId}/default-quest

This endpoint allows users to create a default quest for the specified entity.

Path parameters
entityIdstringRequired

The ID of the entity for which the quest will be created.

Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
defaultIdstringRequired

The ID of the default quest (optional).

Example: default-id
Responses
200

Successful response

application/json
post
/entities/{entityId}/default-quest

Set the status of a quest

post
/entities/{entityId}/quests/{questId}/setstatus

This endpoint allows users to set the status of a quest.

Path parameters
entityIdstringRequired
questIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
statusstring · enumOptionalExample: ACTIVEPossible values:
Responses
200

Successful response

application/json
post
/entities/{entityId}/quests/{questId}/setstatus

Get quest submissions

get
/entities/{entityId}/quests/{questId}/submissions

This endpoint allows users to get submissions for a quest.

Path parameters
entityIdstringRequired
questIdstringRequired
Query parameters
parentEntityIdstringOptional
userIdstringOptional
pageinteger · min: 1OptionalDefault: 1
limitinteger · min: 1OptionalDefault: 10
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/quests/{questId}/submissions

Get quest answers

get
/entities/{entityId}/quests/{questId}/answers

This endpoint allows users to get answers for a quest.

Path parameters
entityIdstringRequired
questIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/quests/{questId}/answers

Get new criteria session

get
/entities/{entityId}/new-session

This endpoint allows users to get a new session for eligibility criteria.

Path parameters
entityIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/new-session

Create metric quest

post
/entities/{entityId}/metric-quests

This endpoint allows users to create a metric-based quest.

Path parameters
entityIdstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
titlestringOptional

Title of the quest

Example: exam-title
descriptionstringOptional

Description of the quest

Example: exam-desc
rewardsobject[]Optional
endsAtstringOptional

End date of the quest

autoClaimRewardsbooleanOptional

Auto claim rewards flag

repeatRewardsBasedOnMetricCountbooleanOptional

Repeat rewards based on metric count flag

metadataobjectOptional

Additional metadata for the quest

prioritynumberOptional

Priority of the quest (1-5)

Responses
200

Successful response

application/json
post
/entities/{entityId}/metric-quests

Get details of a metric-based quest

get
/entities/{entityId}/metric-quests/{questId}

Retrieves detailed information about a metric-based quest, including quest details, rewards, and user progress.

Path parameters
entityIdstringRequired
questIdstringRequired
Query parameters
userIdstringOptional
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/metric-quests/{questId}

Last updated