# 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
