Community Guide
Product Guide
Product Guide
  • Getting Started
    • 👋Welcome to Intract
      • Why Intract?
    • 👷Set up your Community Hub
    • 🏡Community Hub Overview
  • Community Hub Guides
    • 🎯Quests
      • What are Quests?
      • Launching your Quests
        • Setting up Tasks
          • Understanding Task Features
          • How to implement On-Chain Tasks
          • How to Implement Proof of Humanity Tasks
        • Setting up Rewards
          • Submitting Tokens for Automatic Distribution
          • Adding Custom Token as Reward
          • Volume Based XPs
      • Managing Your Quests
        • Campaign Analytics
          • Loyalty Quest Analytics
        • Approving PoW Tasks
    • 🏆Leaderboard
    • 💕Loyalty Program
      • Setting up Tasks
    • 📅Events
      • Creating Events
    • 🎊Reward Store
      • Reward Store - Analytics
    • ⚙️Community Settings
    • 🤖Integrations
      • Discord
      • Telegram
    • 🤳KOLs Marketplace
  • Tools Guides
    • 📖Your Contracts
      • NFT Rewards Contracts
      • Imported Tokens
      • Imported Contracts
    • ⛓️Integrate APIs
      • 🧑‍💻For Devs
    • 🔧API Tokens
    • 🧙‍♂️Dave: No Code Task Verification
      • Understanding and Creating Actions
      • Understanding and Creating Queries
  • Resources
    • 💼Case Studies
    • 🦚Best Practices
    • 🎨Brand Kit
    • 📞Contact Us
Powered by GitBook
On this page
  1. Tools Guides

Integrate APIs

PreviousImported ContractsNextFor Devs

Last updated 7 months ago

When a quester engages with a custom task, Intract triggers the necessary APIs with the required parameters to verify the task. You have the option to integrate your API using cURL or manually connect it. If you're unsure about creating an API, fret not, we also have a

First, go to "Task APIs" from your community dashboard and click on "Connect your API"

Adding API Details:

  1. Add API Name and select API Type from REST/GraphQL

  1. Select what actions your API will verify. Additionally if your API is for a special kind of task like the one with Dynamic XP or with recurrence, select appropriate check boxes. then click "Next".

  1. Paste your API cURL or click skip to add the details manually. Then click "Next".

  1. If you prefer to connect your API manually, you'll need to input the following details:

  • Endpoint: Provide the endpoint URL of your API.

  • API Method: Indicate whether the method is POST or GET.

  • Payload Method: Specify how payloads are handled, whether using Query Params or Body.

  • Payload: Pick between Wallet Address, Twitter Id, Twitter Handle, Discord Id, Discord Username, Telegram Id, and Email.

  • Constant Values: You can also add constants not mentioned in the above Payloads

  • Custom Headers: Use headers for additional authentication or to access private APIs.

  1. Click "Test API" for testing with sample payloads.

  1. If everything goes well, you can click SAVE API here.

  1. If not, click on "Format API Response" to evaluate the API response data.

    1. You can write code in JavaScript for the expressions for response Result, Code, Error Message, Task Metric, and Task Metric Data Type.

Contact us by pressing on the Chat button if you face any issues with the API Integration process.

⛓️
section on generating your own API-based template.
Connect Your API