# API Tokens

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

* &#x20;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.**&#x20;
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.**

&#x20;:arrow\_up: [Here are the APIs](https://documenter.getpostman.com/view/25023496/2sA3dsmZUS#77abc742-ab4c-4fd6-87df-1c952f745850)

### 3. API Token Usage:<br>

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`:<br>

```
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.](https://youtu.be/l2MBsq8r4uM?si=jSANmsOxn-UFycFW) Congratulations! You’ve successfully fetched the data you need.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.intract.io/product-guide/tools-guides/api-tokens.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
