# Đẩy lead về qua API

***Yêu cầu: Đảm bảo đã thiết lập*** [***key xác thực***](https://help.nobita.pro/nobi-marketing/api-ket-noi-website)

**Method :** POST

**URL:** https\://\<tên miền nobi của bạn>/public-api/leads/createLead

**Header:**

```
- Content-Type : application/json
 - ApiKey: key(key tạo ở key xác thực)
```

**Body:**

```bash
{
      "model":{
          "LastName": "họ",
          "FirstName": "tên",
          "Phone": "0987654321",
          "Address": "xyz"
      },
      "metas":[],
      "queryString":{
          "link":"https://yourwebsite.com/link/chien/dich"
      }
}
```

***Trong đó các trường:***\
**LastName:** họ (trường bắt buộc) kiểu string\
**FirstName**: tên (trường bắt buộc) kiểu string\
**Phone:** Số điện thoại (trường bắt buộc) kiểu string\
**Address:** Địa chỉ của leads\
**metas:** (Không bắt buộc) \
**link**: kiểu string để gán chiến dịch cho leads
