# GET LEADS

```
curl -H "Authorization: <Token-Key>" -X POST -d "start_date=<start_date>&end_date=<end_date>&page=<page>" https://leadcombo.com/api/v1/company/leads
```

## Company Leads

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

This endpoint allows you to get leads. body send parameter type "application/x-www-form-urlencoded".

#### Headers

| Name          | Type   | Description                                         |
| ------------- | ------ | --------------------------------------------------- |
| Authorization | string | Authentication token to checking access management. |

#### Request Body

| Name        | Type   | Description                                                                 |
| ----------- | ------ | --------------------------------------------------------------------------- |
| limit       | number | <p>Default leads per page<br><strong>25</strong></p>                        |
| page        | number | <p>Default first pages<br><strong>1</strong></p>                            |
| start\_date | string | <p>Default Timestamp   beginning of day<br><strong>2020-01-01</strong> </p> |
| end\_date   | string | <p>Default Timestamp <br>current time <br><strong>2020-01-01</strong></p>   |

{% tabs %}
{% tab title="200 Leads successfully retrieved." %}

```ruby
{
    "success": true,
    "data": [
        {
            "id": "FBLEAD_03_828865677557533_2020-01-03T11:33:09+0000",
            "full_name": "Steve Roger",
            "mobile_number": "+66199999999",
            "email": "steve@marvel.com",
            "line": "line_id",
            "signed_up_at": "2020-01-01T09:00:00.235+07:00",
            "source": "recommedation_from_customer",
            "properties": {
                "series": "Captain America"
            }
        }
    ],
    "page": 1,
    "total": 60,
    "message": ""
}
```

{% endtab %}

{% tab title="404 Authentication Token Invalid." %}

```ruby
{
    "success": false,
    "error": "Token is invalid",
    "response": null
}
```

{% endtab %}
{% endtabs %}
