# Login API

### Common Parameters

<table data-header-hidden><thead><tr><th>Query</th><th width="256.3333333333333"> </th><th> </th></tr></thead><tbody><tr><td><strong>Query</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>mid</td><td>Integer</td><td>Network Account ID</td></tr><tr><td>api-key</td><td>String</td><td>Network API Key</td></tr><tr><td>secret-key</td><td>String</td><td>Network Secret Key</td></tr></tbody></table>

***

### Fields

| **Body** | **Type** |
| -------- | -------- |
| mail     | String   |
| password | String   |

***

## Affiliate Login API

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

:link: [<mark style="color:blue;">**Click to Test Affiliate Login API**</mark>](https://offer18.readme.io/reference/affiliate-login-api)

#### **Example API Request**

![](/files/6qbc5AVdqb4miBkq6aiM)

#### **API Response**

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

***

## Advertiser Login API

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

:link: [<mark style="color:blue;">**Click to Test Advertiser Login API**</mark>](https://offer18.readme.io/reference/advertiser-login-api)

#### Example API Request

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

#### API Response

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

***

## Employee Login API

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

#### Example API Request

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

#### API Response

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

***

## Affiliate Employee Login

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

#### Example API Request

<figure><img src="/files/8zcCEasTOeLm2tHo9gg7" alt=""><figcaption></figcaption></figure>

#### API Response

```
{
    "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" %}
**For secure interactions, always call the API from the server-side.**
{% 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/network/network-api/login-api.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.
