# 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.nobi.pro/nobi-marketing/api-to-connect-website/push-leads-through-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
