πŸ”§API Tokens

1. We have a few APIs that you can call to get the following details:

  • A list of users who have claimed reward in a campaign

  • A list of users who have won rewards in a campaign

  • A list of all participants in a campaign

  • Details for a particular user given their userID

  • Returns the enterprise leaderboard.

  • Details for your enterprise

  • Details of your campaign

  • A list of all campaigns created by your enterprise

2. Integration Steps:

  1. You will first have to generate an Auth Token from the intract dashboard.

  2. Remember to copy the token key that is displayed because you will not be able to see it again.

  3. Then you have to just import your cURL by your prefered method and call it.

⬆️ Here are the APIs

3. API Token Usage:

To access our APIs, you need to include the generated token in the request headers as a Bearer token.

Example: If your generated token is xxxxxxxx, you should set it as follows:

Header:

Authorization: Bearer xxxxxxxx

Make sure to replace xxxxxxxx with your actual token. Sample Request: Here’s an example of how to include the Bearer token in a request using curl:

curl -X GET "" \
     -H "Authorization: Bearer xxxxxxxx"

This header is required for each API request to authenticate your access. The API will respond with an authentication error if the token is missing or invalid.

If you do not know how to do all of this semi-techy stuff you can watch this video. Congratulations! You’ve successfully fetched the data you need.

Last updated