curl --request GET \
--url https://{subdomain}.nudj.cx/api/v2/integration/challenges/{challengeId} \
--header 'x-api-token: <api-key>'{
"id": "<string>",
"organisationId": "<string>",
"communityId": "<string>",
"additionalCommunityIds": [
"<string>"
],
"details": {
"title": "<string>",
"description": "<string>",
"light": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
},
"dark": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
}
},
"progressPeriod": "daily",
"maxCompletionsPerPeriod": 1,
"numberOfActions": 1,
"actionIds": [
"<string>"
],
"actionGroups": [
{
"id": "<string>",
"type": "single",
"details": {
"title": "<string>",
"description": "<string>",
"light": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
},
"dark": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
}
},
"parentGroupId": "<string>",
"displayType": "list"
}
],
"status": "archived",
"isLinear": true,
"unlockPrice": 1,
"tags": [
{
"id": "<string>",
"organisationId": "<string>",
"value": "<string>",
"config": {
"filtering": [
"achievement"
],
"display": [
"achievement"
],
"iconifyIcon": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"campaigns": [
{
"id": "<string>",
"organisationId": "<string>",
"name": "<string>",
"startDate": "<string>",
"endDate": "<string>",
"status": "archived",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"availableAsTemplateForOrganisations": [
"<string>"
],
"isGlobalTemplate": true,
"groupIds": [
"<string>"
],
"createdAt": "<string>",
"videoConfig": {
"videoUrl": "<string>",
"isVideoEnabled": true
},
"actions": [
{
"id": "<string>",
"organisationId": "<string>",
"communityId": "<string>",
"allocationId": "<string>",
"allocatedTo": "achievement",
"position": 123,
"category": "nudj",
"key": "facebook-comment",
"details": {
"title": "<string>",
"description": "<string>",
"light": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
},
"dark": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
}
},
"progressPeriod": "daily",
"maxCompletionsPerPeriod": 1,
"attributes": {
"key": "question-multiple-choice",
"question": "<string>",
"options": [
{
"id": "<string>",
"label": "<string>"
}
],
"minimumNumberOfAnswersRequired": 2,
"maximumNumberOfAnswersAllowed": 2
},
"config": {
"isOptional": true,
"socialValidation": "validation-on",
"prerequisites": {
"requiredActionCount": 123,
"actionIds": [
"<string>"
]
},
"requiresCorrectAnswer": true
},
"videoMetadata": {
"startsAtMs": 1,
"shouldPause": true,
"validatesAtMs": 1,
"endsAtMs": 1
},
"createdAt": "<string>",
"stats": {
"totalXp": 123
},
"reward": {
"points": 1,
"completionXp": 1,
"items": [
{
"id": "<string>",
"details": {
"title": "<string>",
"description": "<string>",
"light": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
},
"dark": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
}
},
"type": "assets",
"amountToDistribute": 1,
"totalSupply": 1,
"remainingSupply": 1
}
],
"rewardSelectionMethod": "all",
"numberOfRewardsToReceive": 1,
"distributionEventId": "<string>"
},
"userState": {
"status": "completed",
"criteriaMet": true,
"statusMessage": "<string>",
"eligibleXp": 123,
"earnedXp": 123,
"attempts": 123,
"output": {
"key": "interaction-external-link",
"eventId": "<string>"
},
"unmetCriteriaMessage": "<string>"
},
"participations": [
{
"id": "<string>",
"criteriaMet": true,
"output": {
"key": "interaction-external-link",
"eventId": "<string>"
},
"status": "pending",
"participatedAt": "<string>",
"processingStartedAt": "<string>",
"processedAt": "<string>",
"unmetCriteriaMessage": "<string>",
"processingFailedMessage": "<string>"
}
],
"actionGroupId": "<string>",
"actionGroupIndex": 123,
"availableAsTemplateForOrganisations": [
"<string>"
],
"isGlobalTemplate": true,
"previousAction": "<string>",
"nextAction": "<string>"
}
],
"community": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"slug": "<string>",
"logo": "<string>"
},
"participantStats": {
"startedCount": 1,
"completedCount": 1
},
"stats": {
"totalXp": 1,
"totalActionsCount": 1
},
"reward": {
"points": 1,
"completionXp": 1,
"items": [
{
"id": "<string>",
"details": {
"title": "<string>",
"description": "<string>",
"light": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
},
"dark": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
}
},
"type": "assets",
"amountToDistribute": 1,
"totalSupply": 1,
"remainingSupply": 1
}
],
"rewardSelectionMethod": "all",
"numberOfRewardsToReceive": 1,
"distributionEventId": "<string>"
},
"userState": {
"status": "completed",
"completionsInPeriod": 0,
"totalCompletions": 0,
"keysContributed": 0,
"latestAttempt": {
"eligibleXp": 0,
"actionsCompletedCount": 0,
"earnedXp": 0,
"earnedPoints": 0,
"earnedRewardAssets": [
{
"rewardAssetId": "<string>",
"rewardId": "<string>"
}
],
"earnedRewardEntries": [
{
"rewardEntryId": "<string>",
"rewardId": "<string>",
"amount": 1
}
],
"completionTime": 0,
"successRate": 0,
"startedAt": "<string>"
},
"historicAttempts": []
},
"challengeType": "survey",
"enabledForSingleView": true,
"startDate": "<string>",
"endDate": "<string>",
"featured": true,
"threadId": "<string>",
"isSkippable": true,
"startsAt": "<string>",
"expiresAt": "<string>",
"updatedAt": "<string>"
}Retrieve a challenge by its ID.
curl --request GET \
--url https://{subdomain}.nudj.cx/api/v2/integration/challenges/{challengeId} \
--header 'x-api-token: <api-key>'{
"id": "<string>",
"organisationId": "<string>",
"communityId": "<string>",
"additionalCommunityIds": [
"<string>"
],
"details": {
"title": "<string>",
"description": "<string>",
"light": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
},
"dark": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
}
},
"progressPeriod": "daily",
"maxCompletionsPerPeriod": 1,
"numberOfActions": 1,
"actionIds": [
"<string>"
],
"actionGroups": [
{
"id": "<string>",
"type": "single",
"details": {
"title": "<string>",
"description": "<string>",
"light": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
},
"dark": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
}
},
"parentGroupId": "<string>",
"displayType": "list"
}
],
"status": "archived",
"isLinear": true,
"unlockPrice": 1,
"tags": [
{
"id": "<string>",
"organisationId": "<string>",
"value": "<string>",
"config": {
"filtering": [
"achievement"
],
"display": [
"achievement"
],
"iconifyIcon": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"campaigns": [
{
"id": "<string>",
"organisationId": "<string>",
"name": "<string>",
"startDate": "<string>",
"endDate": "<string>",
"status": "archived",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"availableAsTemplateForOrganisations": [
"<string>"
],
"isGlobalTemplate": true,
"groupIds": [
"<string>"
],
"createdAt": "<string>",
"videoConfig": {
"videoUrl": "<string>",
"isVideoEnabled": true
},
"actions": [
{
"id": "<string>",
"organisationId": "<string>",
"communityId": "<string>",
"allocationId": "<string>",
"allocatedTo": "achievement",
"position": 123,
"category": "nudj",
"key": "facebook-comment",
"details": {
"title": "<string>",
"description": "<string>",
"light": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
},
"dark": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
}
},
"progressPeriod": "daily",
"maxCompletionsPerPeriod": 1,
"attributes": {
"key": "question-multiple-choice",
"question": "<string>",
"options": [
{
"id": "<string>",
"label": "<string>"
}
],
"minimumNumberOfAnswersRequired": 2,
"maximumNumberOfAnswersAllowed": 2
},
"config": {
"isOptional": true,
"socialValidation": "validation-on",
"prerequisites": {
"requiredActionCount": 123,
"actionIds": [
"<string>"
]
},
"requiresCorrectAnswer": true
},
"videoMetadata": {
"startsAtMs": 1,
"shouldPause": true,
"validatesAtMs": 1,
"endsAtMs": 1
},
"createdAt": "<string>",
"stats": {
"totalXp": 123
},
"reward": {
"points": 1,
"completionXp": 1,
"items": [
{
"id": "<string>",
"details": {
"title": "<string>",
"description": "<string>",
"light": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
},
"dark": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
}
},
"type": "assets",
"amountToDistribute": 1,
"totalSupply": 1,
"remainingSupply": 1
}
],
"rewardSelectionMethod": "all",
"numberOfRewardsToReceive": 1,
"distributionEventId": "<string>"
},
"userState": {
"status": "completed",
"criteriaMet": true,
"statusMessage": "<string>",
"eligibleXp": 123,
"earnedXp": 123,
"attempts": 123,
"output": {
"key": "interaction-external-link",
"eventId": "<string>"
},
"unmetCriteriaMessage": "<string>"
},
"participations": [
{
"id": "<string>",
"criteriaMet": true,
"output": {
"key": "interaction-external-link",
"eventId": "<string>"
},
"status": "pending",
"participatedAt": "<string>",
"processingStartedAt": "<string>",
"processedAt": "<string>",
"unmetCriteriaMessage": "<string>",
"processingFailedMessage": "<string>"
}
],
"actionGroupId": "<string>",
"actionGroupIndex": 123,
"availableAsTemplateForOrganisations": [
"<string>"
],
"isGlobalTemplate": true,
"previousAction": "<string>",
"nextAction": "<string>"
}
],
"community": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"slug": "<string>",
"logo": "<string>"
},
"participantStats": {
"startedCount": 1,
"completedCount": 1
},
"stats": {
"totalXp": 1,
"totalActionsCount": 1
},
"reward": {
"points": 1,
"completionXp": 1,
"items": [
{
"id": "<string>",
"details": {
"title": "<string>",
"description": "<string>",
"light": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
},
"dark": {
"primaryImageUrl": "<string>",
"secondaryImageUrl": "<string>"
}
},
"type": "assets",
"amountToDistribute": 1,
"totalSupply": 1,
"remainingSupply": 1
}
],
"rewardSelectionMethod": "all",
"numberOfRewardsToReceive": 1,
"distributionEventId": "<string>"
},
"userState": {
"status": "completed",
"completionsInPeriod": 0,
"totalCompletions": 0,
"keysContributed": 0,
"latestAttempt": {
"eligibleXp": 0,
"actionsCompletedCount": 0,
"earnedXp": 0,
"earnedPoints": 0,
"earnedRewardAssets": [
{
"rewardAssetId": "<string>",
"rewardId": "<string>"
}
],
"earnedRewardEntries": [
{
"rewardEntryId": "<string>",
"rewardId": "<string>",
"amount": 1
}
],
"completionTime": 0,
"successRate": 0,
"startedAt": "<string>"
},
"historicAttempts": []
},
"challengeType": "survey",
"enabledForSingleView": true,
"startDate": "<string>",
"endDate": "<string>",
"featured": true,
"threadId": "<string>",
"isSkippable": true,
"startsAt": "<string>",
"expiresAt": "<string>",
"updatedAt": "<string>"
}The language to return the challenge in. If not provided, the default language for the organisation will be used.
Successful response
A challenge
The id of the challenge
The id of the organisation the challenge belongs to
The id of the community the challenge belongs to
The ids of any additional communities the challenge belongs to
Used to describe an entity
Show child attributes
The title of the entity
The description of the entity
The progress period of the challenge
daily, weekly, monthly, yearly, open The maximum number of completions per period for the challenge
x >= 0The number of actions in the challenge
x >= 0The ids of the actions in the challenge
The action groups of the challenge
Show child attributes
single, group, child Used to describe an entity
Show child attributes
The title of the entity
The description of the entity
list, grid, stepper, map, chapters, widget, The status of the challenge
archived, draft, expired, live, scheduled Whether the challenge must be completed in sequential order
The number of keys required to unlock this challenge
x >= 0The tags the challenge is linked to
Show child attributes
The id of the tag
The id of the organisation the tag belongs to
The value of the tag
1The configuration of a tag
Show child attributes
The filtering options for the tag
achievement, action, community, challenge, post, reward, reward-asset, reward-entry The display options for the tag
achievement, action, community, challenge, post, reward, reward-asset, reward-entry The iconify icon for the tag
The date the tag was created
The date the tag was last updated
The campaigns the challenge is linked to
Show child attributes
The id of the campaign
The id of the organisation the campaign belongs to
The name of the campaign
The start date of the campaign
The end date of the campaign
The status of the campaign
archived, draft, expired, live, scheduled The date the campaign was created
The date the campaign was last updated
The organisations that the challenge is available as a template for
Whether the challenge is a global template
The challenge groups the challenge belongs to
The creation date of the challenge
The actions of the challenge
Show child attributes
The id of the action
The organisation that the action belongs to
The community that the action belongs to
The allocation this action is assigned to. This can be set to a challenge only at the moment.
The entity type this action is allocated to. This can be set to a 'challenge' only at the moment.
achievement, action, community, challenge, post, reward, reward-asset, reward-entry The display position of this action
The category of this action
nudj, discord, facebook, imageAnalysis, instagram, interaction, linkedin, question, platform, spotify, tiktok, twitter, youtube The specific type of this action
facebook-comment, facebook-follow, facebook-like, image-analysis-object-detection, image-analysis-receipt-detection, instagram-follow, instagram-like, instagram-comment, instagram-share, instagram-post, interaction-engage-with-content, interaction-external-link, interaction-image-upload, interaction-spot-object, platform-comment-on-post, platform-complete-achievement, platform-generative-action, platform-like-post, platform-play-game, platform-validate-event, question-multiple-choice, question-open-ended, question-rate-your-experience, question-secret-access-code, question-select-date, question-select-from-images, question-select-value-in-range, question-select-from-list, question-closed-ended, question-vote, spotify-follow, spotify-listen, spotify-save, tiktok-follow, tiktok-watch, tiktok-post, youtube-like, youtube-comment, youtube-subscribe The details of this action such as title, description, bannerUrl, logoUrl
Show child attributes
The title of the entity
The description of the entity
The progress period of the action
daily, weekly, monthly, yearly, open The maximum number of completions per period for the action
x >= 0The specific attributes for this action type. This must symantically match the key of this action.
Show child attributes
The multiple choice question action key
question-multiple-choice The multiple choice question to be answered ie 'What is your favorite color?'
1The multiple choice options available to answer the question
2The minimum number of answers required
x >= 1The maximum number of answers allowed
x >= 1The configuration settings for this action
Show child attributes
Whether this action is optional
Controls how social media validation is handled:
validation-on, validation-off, user-choice Used to configure a prerequisite for an action
Show child attributes
Whether the action must be answered correctly to count toward challenge completion. When false, any participation counts toward completion but only correct answers earn rewards.
Video metadata for actions with video content
Show child attributes
The start time of the action in milliseconds from the start of the video
x >= 0Whether the video should pause at the validation point
The validation time in milliseconds, null if the user will validate themselves
x >= 0The end time of the action in milliseconds from the start of the video
x >= 0The date when this action was created
A reward distribution for an entity
Show child attributes
Number of points awarded
x >= 0Amount of XP awarded for completion
x >= 0Reward items available
Show child attributes
The unique identifier of the reward
Used to describe an entity
Show child attributes
The title of the entity
The description of the entity
The type of reward allocation (assets or entries)
assets, entries Amount of this reward to distribute
x >= 0Total supply available for this reward
x >= 0Number of items still available for distribution
x >= 0Method for reward selection
all, priority, random, select, Number of rewards to receive
x >= 0ID of the distribution event
Show child attributes
Current progress state of the action for the user
completed, in-progress, locked, not-started, repeatable, skipped Indicates whether the user has successfully completed the action's requirements
Human-readable message explaining the current status to the user
The XP available for the user to earn. This decreases with failed attempts and becomes 0 once completed
Total XP the user has earned from this action so far
Number of times the user has attempted this action
Results from the user's most recent attempt
Explanation of why the action requirements haven't been met, if applicable
History of all user attempts and interactions with this action
Show child attributes
The output of an action.
pending, in-progress, processed, failed The action group this action belongs to
The index of this action within its action group
List of organisation IDs that can use this action as a template
Indicates if this action is available as a template globally across all organisations
ID of the action that precedes this one in sequence
ID of the action that follows this one in sequence
Details of the community this challenge belongs to
Show child attributes
A reward distribution for an entity
Show child attributes
Number of points awarded
x >= 0Amount of XP awarded for completion
x >= 0Reward items available
Show child attributes
The unique identifier of the reward
Used to describe an entity
Show child attributes
The title of the entity
The description of the entity
The type of reward allocation (assets or entries)
assets, entries Amount of this reward to distribute
x >= 0Total supply available for this reward
x >= 0Number of items still available for distribution
x >= 0Method for reward selection
all, priority, random, select, Number of rewards to receive
x >= 0ID of the distribution event
Show child attributes
Current progress state of the user's active attempt at the challenge. (not-started, in-progress, completed, repeatable, locked)
completed, in-progress, locked, not-started, repeatable, skipped The number of times the user has completed this challenge in the current period
x >= 0The total number of times the user has completed this challenge across all periods
x >= 0The number of keys the user has contributed towards unlocking this challenge
x >= 0Show child attributes
The XP available for the user to earn. This decreases with failed attempts and becomes 0 once completed
x >= 0The number of actions the user has completed in the current run of this challenge
x >= 0Total XP the user has earned so far from this challenge (includes both action XP and completion bonus if completed)
x >= 0Total points the user has earned from this challenge
x >= 0The reward entries the user has earned from this challenge
Show child attributes
The ID of the reward entry earned
The ID of the reward this entry belongs to
Amount refers to entries won from this challenge only
x >= 0Time taken to complete the challenge in seconds with 2 decimal places precision (e.g. 1.34). 0 if not started.
x >= 0Percentage of correct answers/successful attempts across all actions (0-100)
0 <= x <= 100The timestamp when the user started their current attempt at this challenge
Historic attempts of the user for this challenge in the current period
Show child attributes
The XP available for the user to earn. This decreases with failed attempts and becomes 0 once completed
x >= 0The number of actions the user has completed in the current run of this challenge
x >= 0Total XP the user has earned so far from this challenge (includes both action XP and completion bonus if completed)
x >= 0Total points the user has earned from this challenge
x >= 0The reward entries the user has earned from this challenge
Show child attributes
The ID of the reward entry earned
The ID of the reward this entry belongs to
Amount refers to entries won from this challenge only
x >= 0Time taken to complete the challenge in seconds with 2 decimal places precision (e.g. 1.34). 0 if not started.
x >= 0Percentage of correct answers/successful attempts across all actions (0-100)
0 <= x <= 100The timestamp when the user started their current attempt at this challenge
The type of the challenge
survey, Whether the challenge is enabled for single view
Deprecated use startsAt instead
Deprecated use expiresAt instead
The thread id of the challenge
Whether the challenge is skippable
The start date of the challenge
The expiry date of the challenge
The update date of the challenge
Was this page helpful?