> For the complete documentation index, see [llms.txt](https://knowledgebase.offer18.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.offer18.com/affiliate/affiliate-apis/affiliate-employee-login-api.md).

# Affiliate Employee Login API

Allows affiliate team members to log in to their account programmatically.

{% code overflow="wrap" %}

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

{% endcode %}

#### Common Parameters

|           |          |                     |
| --------- | -------- | ------------------- |
| **Query** | **Type** | **Description**     |
| mid       | Integer  | Your Advertiser MID |
| aid       | Integer  | Affiliate ID        |
| key       | String   | API Key             |

{% hint style="info" %}
Affiliate API credentials are required to authenticate this request.
{% endhint %}

#### Fields <a href="#fields" id="fields"></a>

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

<figure><img src="https://295230641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F41f2EboJipeUA6flsLGK%2Fuploads%2FP7O6ZC0ZMsKnsdKMQiVF%2Fimage.png?alt=media&amp;token=3a62e28f-a7ab-4d3e-8adc-1a80d8b6445a" alt=""><figcaption></figcaption></figure>

#### **API Response**

```
{
    "status": "200",
    "response": "affiliate_employee_login_validated",
    "redirect_path": "https://example000.offer18.com/afe/redirect?data=xxxxxxxYUVolxxxxxxxxEZN854UYVxxxxxxxxxxlQwdE5ibxxxxxxxxjJT",
    "affiliate_id": 00000,
    "login_affiliate_employee_id": 011
}
```

<br>
