Skip to main content

Create Quest

Endpoint

POST https://api.juicelabs.io/v1/quests

Authorization Header

X-API-KEY: [YOUR_API_KEY]

Request Body

{
"name": "My Quest Name",
"teamId": "7f9335f7-215c-4fc6-b2c7-8d1534a28bd5",
"redemptionCodes": [
{
"code": "my-quest",
"numUses": 100
}
],
"content": "# some markdown\n\n\n\nhes racing and facing and going the distance\n <u>we like formatting yo</u>\n\n\n\n\n\n### We like it A LOT!!\n\n\n\nwere over this markdown\n\n\n\nshes all alone in a **time of need** because he's racing and pacing",
"rewards": [
{
"tokenAddress": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"tokenId": "100",
"amount": 1,
"network": "sepolia"
},
{
"tokenAddress": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",
"tokenId": "22",
"amount": 1,
"network": "sepolia"
}
]
}

Response Shape

{
"success": true,
"data": {
"...": "..."
}
}