> 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/lian-meng-ke-yu-guang-gao-zhu-chuang-jian-api.md).

# 联盟客与广告主创建 API

### **Common Parameters**

<table data-header-hidden><thead><tr><th width="173.50289176535387">Query</th><th width="150"> </th><th width="426.2"> </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>

### **Action**

<table data-header-hidden><thead><tr><th width="207.16379474883627"></th><th width="194.99924751175493"></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>action</td><td>String</td><td><strong>Allowed Values:</strong><br>create / update / delete</td></tr><tr><td>affiliate_id</td><td>Integer</td><td>Required in Affiliate Update and Delete</td></tr><tr><td>advertiser_id</td><td>Integer</td><td>Required in Advertiser Update and Delete</td></tr></tbody></table>

***

### List of Data Fields

<table data-header-hidden><thead><tr><th width="150"></th><th width="150"></th><th width="365.2"></th></tr></thead><tbody><tr><td><strong>Query</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>first_name</td><td>String</td><td>Affiliate / Advertiser's first name</td></tr><tr><td>last_name</td><td>String</td><td>Affiliate / Advertiser's last name</td></tr><tr><td>signup_ip</td><td>IPv4 / IPv6</td><td>IP address of the device on which API is being used</td></tr><tr><td>email</td><td>String</td><td>Affiliate / Advertiser's email</td></tr><tr><td>password</td><td>String</td><td>Password for future login</td></tr><tr><td>mobile</td><td>int</td><td>Affiliate / Advertiser's Mobile Number</td></tr><tr><td>company</td><td>String</td><td>Company Name</td></tr><tr><td>address</td><td>String</td><td>Address of Affiliate / Advertiser</td></tr><tr><td>city</td><td>String</td><td>City of the Affiliate / Advertiser</td></tr><tr><td>state</td><td>String</td><td>State of the Affiliate / Advertiser</td></tr><tr><td>state_code</td><td>String</td><td>State code of the Affiliate / Advertiser</td></tr><tr><td>zip</td><td>String</td><td>Zip code of the Affiliate / Advertiser</td></tr><tr><td>country</td><td>String</td><td>Country of the Affiliate / Advertiser</td></tr><tr><td>im_type</td><td>String</td><td>Social media for instant messaging</td></tr><tr><td>im_value</td><td>String</td><td>Social Media Profile </td></tr><tr><td>status</td><td>String</td><td><strong>Allowed values:</strong><br>Approved, Pending, Rejected</td></tr></tbody></table>

***

## Affiliate Create

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

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

#### Example API Request

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

#### **API Response**

```
{
    "status": "200",
    "affiliate_id": 0001,
    "email": "affiliate@affiliate_email.com",
    "password": "97b91464",
    "signup_ip": "000.000.00.00"
}
```

***

## Advertiser Create&#x20;

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

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

#### Example API Request

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

#### **API Response**

```
{
    "status": "200",
    "advertiser_id": 00002,
    "email": "advertiser@advertiser_email.com",
    "password": "97b91464",
    "signup_ip": "000.000.00.00"
}
```

{% hint style="info" %}
**For secure interactions, always call the API from the server-side.**
{% endhint %}
