LogoLogo
$THX tokenDiscord Community
  • THX Network
  • 🏗️Campaign Managers
    • Getting Started
    • Analytics
    • Quests
      • Daily Quests
      • Invite Quests
      • Twitter Quests
      • Discord Quests
      • Custom Quests
      • Web3 Quests
      • Webhook Quests
      • Steam Quests
      • Quest Locks
    • Rewards
      • Coin Rewards
      • NFT Rewards
      • Custom Rewards
      • Coupon Rewards
      • Discord Role Rewards
    • Participants
    • Integrations
      • Discord
      • Twitter, now X
      • Gitcoin Passport
    • Coins
    • NFT
  • 🧑‍🤝‍🧑USERS
    • Memberships (Free)
    • Lottery (Free)
  • 💡FAQ
    • Pricing
    • Multi Wallet Account
    • Points
    • Other
  • 💻Developers
    • HTML Widget
    • JS SDK
      • Identity
      • Events
    • API
      • API Specification
      • Example
    • Webhooks
    • QR codes
    • Audits
  • 🪙Tokenomics
    • $THX
    • Locking $THX to $veTHX
    • Increasing Locked $veTHX
    • Protocol
    • Token Distribution
  • 🤝ABOUT
    • Team
    • One Pager
    • Community
Powered by GitBook
On this page

Was this helpful?

  1. Campaign Managers
  2. Quests

Webhook Quests

Validate quest behavior using your own API endpoints and set optional custom point amounts.

Last updated 10 months ago

Was this helpful?

This quest type allows you to provide your own quest validation logic. It's required to configure an API endpoint for this quest that we can send a validation request to.

Custom Amount

You can enable the custom amount setting which will allows you to calculate a point amount on your side and return in the response of the webhook call. We will then transfer that amount of points to the user.

Webhook Response

Your webhook should create a response like this. Note that the amount property is optional.

{
    result: boolean, // Validated (true) or invalidated (false) quest entry
    amount?: number, // Your custom point amount (0 or more)
}

🏗️
Webhooks
Example of Webhook Quest configuration