> 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/zh/wang-luo/wang-luo-api/deng-lu-api.md).

# 登录 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/6d00116f18194abb6f937b96ed4d33e0050df6bb)

#### **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/a7a0f14532b2f77627f6828b4c9e4344937b305f" 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/381b7b82ae4b9cfc6e06c5f4ba740a5957877308" 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/55b2cf3681ec18b4bdfbe28008c98478831d628c" 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 %}
