Tasks and User Completion
GraphQL Endpoint to fetch the tasks of a quest and completion status for any quest participant.
GraphQL Query
query Tasks($activityTrackerId: Int!, $active: Boolean, $identityType: String, $identityId: String) {
tasks(
activityTrackerId: $activityTrackerId,
active: $active,
identityType: $identityType,
identityId: $identityId
) {
activityTrackerId
tasks {
taskId
name
subText
taskPoints
startDate
expiryDate
additionalInfo
completed
userPoints
}
}
}
Variables
{
"activityTrackerId": 300,
"active": false,
"identityType": "TWITTER_USERNAME",
"identityId": "blaze_ai"
}
Response
{
"data": {
"tasks": {
"activityTrackerId": 304,
"tasks": [
{
"taskId": "quest_onboarding_form",
"name": "Quest Onboarding Form",
"subText": "Award points to users who fill the Quest Onboarding Form",
"taskPoints": 0,
"startDate": null,
"expiryDate": null,
"additionalInfo": "{'formUniqueId': '3655f6f3655d67ac723470e4e2eb1d5e'}",
"completed": false,
"userPoints": 0
},
{
"taskId": "twitter_follow_account",
"name": "Follow Account",
"subText": "Award points to users who follow the selected Twitter account",
"taskPoints": 100,
"startDate": null,
"expiryDate": null,
"additionalInfo": null,
"completed": false,
"userPoints": 100
}
]
}
}
}
```
Examples
POST
https://dashboard.withblaze.app/api/graphql-api
Query Parameters
Name
Type
Description
activityTrackerId*
Int
Required: Activity tracker id
If the Activity tracker id is not specified, then the request will throw an error
active
Boolean
If true, return tasks which are currently active on that day, else returns all tasks
identityType
Enum
Can have one of the following values WALLET, TWITTER_ID, DISCORD_ID, EMAIL, TWITTER_USERNAME, DISCORD_USERNAME
identityId
String
id of the corresponding identityType
Headers
Name
Type
Description
x-api-key*
API-KEY
Your Blaze API Key
Last updated
Was this helpful?