Start with API (admins)
Natalya Yefimenko avatar
Written by Natalya Yefimenko
Updated over a week ago

On Affise, you can manage the platform via API. To start working with API, you need an API key and API URL.

To work with requests, you can use free API-development tools such as Postman, Insomnia, Advanced REST client, etc.

Types of data and methods

In the Affise API, you may work with the following types of data:

  • Integer: only for integer values: offer ID, affiliate ID, etc.

  • String: includes integer values, letters, and characters: country code, cap type, payment type, etc.

  • Array: used with multiple values: affiliates in caps, goals in caps, etc.

  • Float: includes a floating-point or decimal number: payout for affiliate, revenue, etc.

  • Mixed: String or Array: filters in statistics.

In the Affise API, you can use three methods:

  • GET: used to request data: statistics, advertisers list, etc.

  • POST: used to send data to create or update a resource: generate and update invoices, add offers, add users, etc.

  • DELETE: used to delete the specified resource: delete postback, delete pixel, etc.

API request structure:

GET/POST/DELETE + API URL + path + ? + API key=189471975956279174174.

API request example:

POST     https://api-rocketcompany.affise.com/3.0/admin/offer?API-key=1ca97dd8c1b19bf8ae554c063112a489

๐Ÿ”Ž Use the header content-type - application/x-www-form-urlencoded and multipart/form-data content type for managing logos.

Articles _ Affise _ Interco.. 2022-12-02 at 11.10.48 AM. - Google Chrome

API key

For data exchange authentication, you should pass an API key as a parameter in the header.

Admin panel API key

Admin panel API key is located here: Users > Users management > a certain user.

Users Management _ Rocketcompany - Google Chrome 2022-08-11 at 5.38.17 PM

API keys and users

Only a General manager has permission to get an API key on the User edit page.

A General manager has access to all sections and has permission to get an API key of any user and any affiliate.

API keys of Affiliate managers and Account managers work only for the API requests for the sections they have access to.

Affiliate panel API key

If you want to set up API integration with Affiliate, they also need an API key to get access to API.

Affiliate API key is located in the Affiliate panel: Settings > Security.

Profile _ Security - Google Chrome 2022-08-12 at 10.43.03 AM

API URL

API URL is the core of your API request.

API URL is located here: Settings > Settings > Tracking domains > Default URL.

Domains - Google Chrome 2022-08-12 at 10.54.56 AM

โš ๏ธ Your API URL leads to API Doc. Find API v.3.1. Doc here.


Please contact the Affise Customer Support team regarding all raised questions via the e-mail: [email protected].

Did this answer your question?