# DATA PUSHERS

Example

```javascript
await anxios.post('https://leadcombo.com/api/v1/lead/create_lead', {
  lead: {
    full_name: "FirstName LastName",
    email: "Email",
    mobile_number: "0901234567",
    field_data: [{
      name: "bussiness",
      values: "Value of bussiness"
    }, {
      name: "message",
      values: "value of message"
    }]
  }
}, {
  headers: {
    'API-KEY': 'Your api key'
  }
}).then(res => {
  console.log(res)
}).catch(err => {})
```

<mark style="color:green;">`POST`</mark> `https://leadcombo.com/api/v1/lead/create_lead`

#### Headers

| Name    | Type   | Description                                                 |
| ------- | ------ | ----------------------------------------------------------- |
| API-KEY | string | Authentication `private key` to checking access management. |

#### Request Body

| Name | Type   | Description                                        |
| ---- | ------ | -------------------------------------------------- |
| lead | object | List of files and their sources to add to dataset. |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "success": true,
    "message": "NEW_SUCCESS",
    "data": {
        "id": 130771,
        "reference": "Test Lead form_1_0902761182",
        "first_name": "name",
        "last_name": "last",
        "mobile_number": "0901234567",
        "email": "email@email.com",
        "line": null,
        "address": null,
        "source": "Pusher::Website#1",
        "signed_up_at": "2021-05-18T17:20:46.283+07:00",
        "synced_at": null,
        "status": "pending",
        "created_at": "2021-05-18T17:20:46.328+07:00",
        "updated_at": "2021-05-18T17:20:46.328+07:00",
        "followup": null,
        "agent_id": null,
        "remark_store": {
            "raw_data": {
                "full_name": "name last",
                "email": "email@email.com",
                "mobile_number": "0902761182",
                "field_data": [
                    {
                        "name": "bussiness",
                        "values": "Test B1"
                    },
                    {
                        "name": "bussiness 2",
                        "values": "Test B2"
                    }
                ]
            },
            "custom_properties": {
                "bussiness": "T",
                "bussiness 2": "T"
            }
        },
        "reschedule_to": null,
        "extended_status": null,
        "company_id": 81,
        "date_of_birth": null,
        "source_detail": "hotel & resorts",
        "branch": null,
        "customer_channel": null,
        "parent_lead": null,
        "attribute_field_1": null,
        "attribute_field_2": null,
        "attribute_field_3": null,
        "form_id": null,
        "nickname": "name",
        "value": 0,
        "links": [],
        "tags": [],
        "extended_status_key": null
    }
}
```

{% endtab %}

{% tab title="401 " %}

```javascript
{
    "success": false,
    "message": "Authentication Failed",
    "data": null
}
```

{% endtab %}
{% endtabs %}

The `lead` object contains the following keys:

| Name           | Type   | Description                                                                                                                          |
| -------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| full\_name     | String | First name and Last name                                                                                                             |
| email          | String | Email                                                                                                                                |
| mobile\_number | String | Phone number                                                                                                                         |
| field\_data    | Array  | <p>Extra parameter for leads. Object in array with name and value </p><p>\[{ "name": "field name", "values": "Value of field" }]</p> |

### How to get API KEY

URL [`https://leadcombo.com/data_pushers`](https://leadcombo.com/data_pushers)

Create data pushers

![](/files/-Ma1n_F8ObqpwbAzi85P)

Click + New Data Pushers

![](/files/-Ma1rP-g3XKKjUGS-NGc)

Enter `Name`, select `Type` and trigger `Enabled` checkbox\
After you enter all information click `Create Data pusher` button

Click `Edit` button in column Action on table you need to use API.

![](/files/-Ma1ofDpd0MrkV9b3Xrn)

You will see private key

`private key` is your `API-KEY` for request Headers


---

# 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.leadcombo.com/data-pushers.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.
