Quests
Creates a new quest for the realm
Health
Quests
- GETFetches all quests for a member
- POSTFulfills a quest for a user
- GETCheck if a user has fulfilled the quest
- GETFetches all available quests for a realm
- POSTCreates a new quest for the realm
- GETFetches paginated quests for a realm
- GETFetches a quest by its ID
- PATCHUpdates the custom data for a quest
- POSTFulfills a quest for a Twitter user
- PATCHManually expires a quest
Realm-Controller
- GETReturns information about a realm
- GETReturns analytics for a realm
- GETExport realm logs
- GETReturns the leaderboard for a realm
- GETReturns the leaderboard position for a member
- PATCHUpdates members' token balances transactionally
- GETReturns a member's token balance and boost balance
- PATCHUpdates a member's token balance
- PATCHTransfers tokens from one member to another
Quests
Creates a new quest for the realm
POST
/
api
/
v4
/
quests
/
realms
/
{id}
/
quests
curl --request POST \
--url https://api.drip.re/api/v4/quests/realms/{id}/quests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"user_id": 123,
"user_name": "<string>",
"user_icon": "<string>",
"guild_id": 123,
"channel_id": 123,
"type": "<string>",
"total_amount": 123,
"claim_amount": 123,
"claim_interval": 0,
"expires_at": 123,
"role_reward": "<string>",
"required_role": "<string>",
"thread_id": 123,
"requirements": [
{
"conditions": [
{
"has_fulfilled": [
123
],
"req_text": "<string>",
"type": "<string>",
"value": "<any>"
}
],
"link": "<string>",
"type": "<string>"
}
],
"custom_data": {},
"customization": {},
"note": {}
}'
{
"id": "<string>",
"message": "<string>"
}
Authorizations
API Key
Path Parameters
Body
application/json
Response
201 - application/json
Quest created successfully
The response is of type object
.
curl --request POST \
--url https://api.drip.re/api/v4/quests/realms/{id}/quests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"user_id": 123,
"user_name": "<string>",
"user_icon": "<string>",
"guild_id": 123,
"channel_id": 123,
"type": "<string>",
"total_amount": 123,
"claim_amount": 123,
"claim_interval": 0,
"expires_at": 123,
"role_reward": "<string>",
"required_role": "<string>",
"thread_id": 123,
"requirements": [
{
"conditions": [
{
"has_fulfilled": [
123
],
"req_text": "<string>",
"type": "<string>",
"value": "<any>"
}
],
"link": "<string>",
"type": "<string>"
}
],
"custom_data": {},
"customization": {},
"note": {}
}'
{
"id": "<string>",
"message": "<string>"
}