# API входа

### Общие параметры

<table data-header-hidden><thead><tr><th>Запрос</th><th width="256.3333333333333"> </th><th> </th></tr></thead><tbody><tr><td><strong>Запрос</strong></td><td><strong>Тип</strong></td><td><strong>Описание</strong></td></tr><tr><td>mid</td><td>Целое</td><td>ID аккаунта сети</td></tr><tr><td>api-key</td><td>Строка</td><td>API-ключ сети</td></tr><tr><td>secret-key</td><td>Строка</td><td>Секретный ключ сети</td></tr></tbody></table>

***

### Поля

| **Тело**          | **Тип** |
| ----------------- | ------- |
| электронная почта | Строка  |
| пароль            | Строка  |

***

## API входа партнёра

```
POST https://api.offer18.com/api/m/affiliate_login
```

:link: [<mark style="color:синий;">**Нажмите, чтобы протестировать API входа партнёра**</mark>](https://offer18.readme.io/reference/affiliate-login-api)

#### **Пример запроса к API**

![](/files/51925c1791bf3f433adaf32ef6726c734fbc3152)

#### **Ответ API**

```
{
    "status": "200",
    "response": "affiliate_login_validated",
    "redirect_path": "https://example000.offer18.com/af/redirect?s=0000000000&net_api_log_session=00000000000000000000000000000000000000000000000000000000000==",
    "affiliate_id": "000000"
}
```

***

## API входа рекламодателя

```
POST https://api.offer18.com/api/m/advertiser_login
```

:link: [<mark style="color:синий;">**Нажмите, чтобы протестировать API входа рекламодателя**</mark>](https://offer18.readme.io/reference/advertiser-login-api)

#### Пример запроса к API

<figure><img src="/files/e3dcb57db3e4c3c39c57ef897d895c45f4abb102" alt=""><figcaption></figcaption></figure>

#### Ответ API

```
{
    "status": "200",
    "response": "advertiser_login_validated",
    "redirect_path": "https://example000.offer18.com/ad/redirect?s=0000000000&net_api_log_session=00000000000000000000000000000000000000000000000000000000000=",
    "advertiser_id": "000000"
}
```

***

## API входа сотрудника

```
POST https://api.offer18.com/api/m/employee_login
```

#### Пример запроса к API

<figure><img src="/files/f657541386173504e5babdb3b3e4bdd59593264d" alt=""><figcaption></figcaption></figure>

#### Ответ API

```
{
    "status": "200",
    "response": "employee_login_validated",
    "redirect_path": "https://example000.offer18.com/employee/redirect?s=0000000000&net_api_log_session=00000000000000000000000000000000000000000000000000000000000=",
    "employee_id": "0011"
}
```

***

## Вход партнёрского сотрудника

```
POST https://api.offer18.com/api/m/affiliate_employee_login
```

#### Пример запроса к API

<figure><img src="/files/0b35d25da6fa5f0e9be36ba6a096f7f60c4926c7" alt=""><figcaption></figcaption></figure>

#### Ответ API

```
{
    "status": "200",
    "response": "affiliate_employee_login_validated",
    "redirect_path": "https://example000.offer18.com/afe/redirect?s=0000000000&net_api_log_session=00000000000000000000000000000000000000000000000000000000000=",
    "affiliate_id": "00000",
    "login_affiliate_employee_id": "011"
}
```

{% hint style="info" %}
**Для безопасного взаимодействия всегда вызывайте API с сервера.**
{% endhint %}


---

# 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://knowledgebase.offer18.com/ru/set/api-seti/api-vkhoda.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.
