Fyre
  • Fyre
    • How Does It Work?
    • Key Features
    • Who uses Fyre?
  • Admin Dashboard
    • Login
    • Events
      • Create An Event
      • Configurations
        • General Configurations
        • Referral Configurations
        • Prize Configurations
        • KYC Configurations
        • Custom Input Configurations
        • Social Configurations
          • Twitter Follow
          • Twitter Retweet
          • Telegram Join
          • Discord Join
          • GitHub PR
        • Collect Wallet Configurations
        • Tokens or NFT Holding Configurations
        • Custom Smart Contract Configurations
        • Custom API Configurations
      • Edit An Event
        • Add a new task
        • Remove a task
        • Edit existing task
      • Clone An Event
      • Delete an Event
    • Participants Data
    • Settings
      • Teams
      • Org
      • Apps
      • Subscriptions
    • Reward Distribution
  • Participant
    • Campaign Landing page
    • How to Participate
    • Claiming Rewards
  • Developer
    • App Setting
      • Registration
      • Update
      • Authentication
    • APIs
      • /app/events
      • /app/user/events
      • /app/user/redirection
      • Error Codes
      • Event Action Types
    • Demo
Powered by GitBook
On this page
  • How it works?
  • Example
  • Participant's View

Was this helpful?

  1. Admin Dashboard
  2. Events
  3. Configurations

Custom API Configurations

Verify any action performed on a third-party application via their APIs

PreviousCustom Smart Contract ConfigurationsNextEdit An Event

Last updated 2 years ago

Was this helpful?

This action type lets event organizers configure the verification and rewarding of actions performed on third-party applications. (Example: Get extra 30 points for registering an account on the XYZ application)

How it works?

An organizer has to implement an API (GET or POST HTTP methods) for verifying certain data provided by participants in an event configured in Fyre. The API can then be configured under "Custom API Configuration" section.

The process is very simple:

1) Participants provides data (requested by the organizer)

2) Fyre's server call the configured API.

3) The 3rd party API server verifies the data and responds to the Fyre server.

4) Upon successful verification (as configured in the Fyre dashboard), the user claims the reward/points.

Example

Let's us say for example, an organizer wants to reward participants who have downloaded their app and created an account. The organizer first develops a GET or POST API (say POST) and enters the API endpoint in the API Endpoint field and selects HTTP method as POST.

Upon selecting HTTP method, fields configuration section appears where the organizer has to configure API request body or query params fields. The Fyre server will take participants inputs in its UI and populates these fields while making the API call to the 3rd party app's server.

Organizers may also request participants to provide blockchain wallet addresses. Currently we support EVM and Cosmos based chains. Click on type to see the list of supported blockchains.

Optionally, you may also configure Headers in the form of JSON

Now configure the "Condition" which you want Fyre's server to verify. Say you want Fyre's server to assert that response is of type boolean and the value is true.

You may configure complex condition using regular expression condition.

Finally enter the "Error Message" , you want to show to your participant upon failed verification:

Enter the Score and click on "Add" to save this configuration.

Participant's View

This is how participants will view this action.

Make sure to whitelist origin in your server

https://app.fyre.hypersign.id