Tide
  • About Tide
    • 🌊Tide
    • 🚀Project? Let's grow!
    • 🛣️Roadmap
  • White-label
    • 🆕White-label Solutions
    • 🏷️Tide on your subdomain
    • 🖼️Simple Embeds
      • ⚒️Embedded campaigns
        • How to integrate embedded campaigns
        • Embed campaigns on your blog or docs
      • 🚀Embedded spaces
        • How to integrate embedded spaces
        • Embed spaces on your blog or docs
  • Projects
    • 🎨Space
      • ✅Space Verification
      • ⚽Space Collaboration
    • 🏗️Campaigns
      • 🥎Create a campaign
        • ⛓️On-chain Tasks
        • 🫂Off-chain Tasks
        • 💯Points Campaign
          • How to create a Point Campaign
          • Managing your Data Sources
        • 🔌 API Tasks
        • 🤝Mitigate Bots
      • 🏈Launch & Edit Campaigns
        • 🎾Manage and edit campaigns
      • ⏮️How to Manage Reviews
    • 🎁Rewards
      • 🔁Tide Reward Cycles
      • 🖼️Dynamic NFT Loyalty Program
      • ✌️Tide Referral Program
    • 📊Analytics
      • 📊Insights
    • ❓Project FAQ
  • Users
    • 👉Participate in campaigns
    • 🔔Get notified on new listings
    • 🔄Tide Reward Cycles
    • ❓Users FAQ
  • Resources
    • 🎨Brand Kit
    • 📖Tide vs Other Platforms
    • ⚖️Case Studies
      • Magpie Mafia Bridge
      • Decoding DEX Users
      • PoolTogether Marketing Initiatives analysis
      • Growth Challenges for Bridges
      • Tide “Audiences”: Engaging Authentic Users
      • Rodeo Finance Engagement Program
      • nftperp Paper Trading Competition
  • CONTRACTS & API
  • 📑Smart contracts overview
  • 🌊Wave Contract
  • 🏭Wave Factory
  • 📬Deployment addresses
  • ⌨️Tide APIs
Powered by GitBook
On this page
  • API Task creation
  • Step 1: Fill API task form
  • Step 2: Validation Requirements
  • Step 3: Task completion
  1. Projects
  2. Campaigns
  3. Create a campaign

🔌 API Tasks

PreviousManaging your Data SourcesNextMitigate Bots

Last updated 11 months ago

This documentation provides detailed instructions on how to create and manage custom API tasks within a project using the Tide platform.

API Task creation

Step 1: Fill API task form

To create a task, you must navigate to , "Task Step".

Select "API" in the task selector and choose "Verify execution of a task on given API".

Fill out the form with the following info:

  1. API Endpoint: The URL of the endpoint that will be called to check the task status.

  2. Request Headers (optional): Any headers that are required for the endpoint request, if there are any.

  3. Website URL: The URL that points to the website where the task actions need to be performed.

  4. Description: a detailed description to explain to the users what they should do to be eligible to complete the task.

Step 2: Validation Requirements

Once the form is filled out, the task will indicate the validation status:

The endpoint and headers must be validated by Tide before the task can be displayed in the campaign.

For an endpoint to be validated, it must meet the following criteria:

  1. User Address Query Parameter:

    • The endpoint must accept a query parameter named userAddress (do not add this parameter in the endpoint field).

    • The userAddress must be the lowercase EVM address of the user attempting to complete the task. This address is the same one used by the user to connect to the Tide platform.

  2. JSON Response Format:

    • The endpoint must return a JSON response with the following structure:

      {
        "eligible": boolean
      }
    • A value of true indicates that the user can complete the task.

    • A value of false indicates that the user cannot complete the task.

  3. If the endpoint meets these criteria, the task will be displayed in the Tide campaign. Otherwise, the task will not be displayed.

Step 3: Task completion

When the endpoint returns a successful result (eligible: true), the user’s task status is set to "completed".

By following the steps outlined in this documentation, projects can successfully create and manage API tasks on their own. Ensure that your endpoint, headers, and website URL are correctly submitted and validated and that the endpoint response adheres to the required format.

This will allow for seamless integration and task management within your Tide campaign.

For any further assistance or questions, please contact the Tide support team.

🏗️
🥎
Tide Campaign Builder
Tasks selector
The endpoint is under review
The endpoint is not valid
The endpoint is valid