# 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**

![](https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FwjGFBybn9MVKykbJPCk6%2FAffiliate%20-%20LoginAPI.png?alt=media\&token=f1412c8c-49ed-401a-9eac-22e9c7f82746)

#### **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="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FGi3kuIbyXEAWzIWeVXgN%2Fimage.png?alt=media&#x26;token=6b44f5b8-cd5b-4bfd-a624-a1aa972f0de0" 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="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FQKC68ceJwkpdZcrIfWXq%2Fimage.png?alt=media&#x26;token=010d206a-6ee3-444d-9daf-a5ece7f68749" 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="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2Fi9wveS8cfl4krrCsrzkP%2Fimage.png?alt=media&#x26;token=1ec61fbc-dd4b-4a83-a86a-5de503cecb31" 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 %}
