How to Use the API

This page shows how to start using the Eskimi DSP API: create an API client, get an access token and make your first call. For what the API can do, see API Overview.

Create an API Client

  1. In the DSP, click the three-dot icon in the top right corner.

  2. Click API Clients.

  3. Click Add Client in the top right corner.

  4. Enter a Client name (any name; it is not used in the token) and click Generate next to Client Secret.

  5. Click Save. The client is created, and you can now get an access token for it.

ScreenRecording2024-04-11at10.44.19-ezgif.com-video-to-gif-converter.gif

Get an Access Token

By default an access token is valid for 1 day and a refresh token for 30 days. There are two ways to get a token:

a. In the DSP

  1. Click the three-dot icon next to your client, then Edit.

  2. Click Generate Client Token.

  3. Enter your account password and click Confirm Identity & Generate.

  4. Click Copy to keep the token, then click Save.

image.png

b. With an HTTP Request

Send a POST request to https://dsp-api.eskimi.com/api/oauth/token with this body (documentation: https://dsp-api.eskimi.com/docs/api/auth/):

{
  "grant_type": "eskimi_dsp",
  "username": "your DSP login email",
  "password": "Password",
  "client_id": client_id,
  "client_secret": "client_secret"
}

A successful request returns access_token, refresh_token, token_type and expires_in. 

Grant Types

The grant_type parameter says how you are logging in. The Eskimi DSP API supports these grant types:

grant_type Usage
eskimi_dsp A script or integration logs in as a DSP user
eskimi_dsp_client_credentials Clients created for other systems can be flagged for machine to machine access
refresh_token You want a new access token without logging in again

Make Your First Call

Send the token in the Authorization header. For example, a campaign report:

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}'

The token belongs to your user and works for every advertiser your user has access to. Choose the advertiser with the advertiserId parameter in each request.

All endpoints, parameters and examples are in the API documentation: https://dsp-api.eskimi.com/docs/api/v1/. To try them without writing code, import the API Postman Template.

Watch the video for a walk-through:

What the API Can and Cannot Do

Summary

Create an API client in the DSP, get a token (in the DSP or with an HTTP request), and send it with every call. Renew the token before it expires after 30 days.


Revision #40
Created 9 September 2021 12:19:30 by Hasnain Shahriar
Updated 19 November 2026 09:40:46 by Beata