# Steps of using API

Using API one can get analytics of Eskimi platform as well as do other operations like creating campaigns etc. In this article the steps of using API is described.

#### Create API Client Secret from Eskimi profile:

1. 1. In the dashboard UI page, in the top right corner click the **three dot icon**.
    2. Click on **"API Clients".**
    3. In API Clients UI page, in the top right corner click **"Add Client"**.
    4. Enter the **Client name** (The name does not matter, it won't be used for the access token), and click on **"Generate"** for Client Secret.
    5. **Save** the changes and the API client will be created that will be used for getting Access Token.

![ScreenRecording2024-04-11at10.44.19-ezgif.com-video-to-gif-converter.gif](https://manual.eskimi.com/uploads/images/gallery/2024-04/SdImjqz707INGF6X-screenrecording2024-04-11at10-44-19-ezgif-com-video-to-gif-converter.gif)

<p class="callout info">Once you have created API Client you can create Access Token for it.</p>

#### Create Access Token

There are 2 ways on creating Access Token:

####  1. Create Access Token through Eskimi DSP:

1. 1. 1. After saving press the **three dot icon** on the right of the desired **Client.**
        2. Click on **"Edit".**
        3. Now you should be able to click "**Generate Client Token**" button.
        4. Enter your account password for security reasons and click "**Confirm Identity &amp; Generate**"
        5. **Client's Token** will be generated and click **"Copy"** to save and use it later.
        6. Click Save

[![image.png](https://manual.eskimi.com/uploads/images/gallery/2024-10/scaled-1680-/cybEFQ5smLd32A7X-image.png)](https://manual.eskimi.com/uploads/images/gallery/2024-10/cybEFQ5smLd32A7X-image.png)

Token expiration term: 1 year.

####  2. Create Access Token through HTTP Request


- Get access token. For getting access token the documentation is provided here: [https://dsp-api.eskimi.com/docs/api/auth/](https://dsp-api.eskimi.com/docs/api/auth/)

```json
{ 
  "grant_type": "eskimi_dsp", 
  "username": "dsp_username", 
  "password": "Password", 
  "client_id": client_id, 
  "client_secret": "client_secret"
}
```

A request example for reporting endpoints:

```bash
curl 'https://dsp-api.eskimi.com/api/v1/report/campaigns/get?advertiserId=1&byDate=1&byCampaign=1&dateFrom=2026-01-01&dateTo=2026-01-30' \
-H 'authorization: Bearer {ACCESS_TOKEN}'
```

<p class="callout info">From your parent account, you can access your child account data via API.</p>

---

- After getting the access token API can be used using the access token. The API documentation: [https://dsp-api.eskimi.com/docs/api/v1/](https://dsp-api.eskimi.com/docs/api/v1/)
- Please watch the video to understand the process better:

<iframe allowfullscreen="allowfullscreen" height="429" src="//www.youtube.com/embed/9yn3oZAynOg" style="width: 764px; height: 429px;" width="764"></iframe>

---

**API Limitations:**

- Currently you're able to create only Banner or Native type campaigns via API, currently we do not have functionality to create Video type campaigns.
- Not all reporting splits are available in the reporting API endpoints, you can see all available splits [here](https://dsp-api.eskimi.com/docs/api/v1/#api-Report).
- Total reach numbers will be different from the reports and the API, as dashboard reporting using different logic for counting reach (This is being worked on, so total reach numbers would match API and dashboard reporting part).
- Currently there is no current endpoint, everything is being reported with $.