> For the complete documentation index, see [llms.txt](https://help.nobi.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.nobi.pro/nobi-marketing/api-to-connect-website/push-leads-through-api.md).

# Push leads through API

**Requirement:** Make sure to set up the authentication key&#x20;

**Method:** POST&#x20;

**URL:** https\://\<your Nobita domain>/public-api/leads/createLead

**Headers:**

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

**Body:**

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

**In which the fields:**&#x20;

**LastName**: Lastname (required field): string type

**FirstName**: name (required field): string type

**Phone**: Phone number (required field): string type

**Address**: Address of leads&#x20;

**metas:** (Optional)

**link**: string type to assign the campaign to leads
