Getting quest modules
Overview
The modules endpoint allows you to fetch all available modules and their quests for a given community. When called with a user token, it provides additional information about the user's progress, including whether quests have been started, completed, or claimed.
Key features:
Fetch all modules for a community
Get quest details and requirements
Track user progress when authenticated
View quest rewards and completion status
How It Works
The endpoint determines the community from the URL
If a user token is provided, it includes the user's progress
Returns modules containing quests with their completion status
Each quest includes required accounts, wallets, and rewards
API Reference
Query Parameters
userId
String
No
Automatically included when request is authenticated
Response
The response includes an array of modules, each containing quest deployments with their details and user progress.
Response Properties
data
Array
List of modules
data[].id
String
Unique identifier of the module
data[].name
String
Name of the module
data[].description
String
Description of the module
data[].deployments
Array
List of quests in the module
data[].deployments[].id
String
Unique identifier of the quest
data[].deployments[].title
String
Title of the quest
data[].deployments[].description
String
Description of the quest
data[].deployments[].tasks
Array
List of tasks in the quest
data[].deployments[].tasks[].id
String
Unique identifier of the task
data[].deployments[].tasks[].name
String
Name of the task
data[].deployments[].tasks[].type
String
Type of the task (e.g., 'custom')
data[].deployments[].tasks[].requiredWallets
Array
List of required wallet configurations
data[].deployments[].tasks[].requiredAccounts
Array
List of required account types
data[].deployments[].quest
Object
Quest configuration and rewards
data[].deployments[].isClaimed
Boolean
Whether the user has claimed the rewards
data[].deployments[].isStarted
Boolean
Whether the quest is available to claim
data[].deployments[].isEnded
Boolean
Whether the quest has ended
data[].deployments[].requiredQuests
Array
List of quests ids that must be completed first
Example Response
Example Usage
Last updated