Contact
List Contact

List contacts

Get all your contacts in paginate format.

POST/enterprise/list

Parameters

items_for_page - intger required
Total of returned items.


page - intger required
Number of the page relatievly of the items_for_page.


user_id - intger optional
For only get the contacts of specific user.


Example
{
  "items_for_page": 5,
  "page": 1
}

Response

status 200

The response contains the pagination data and the contact objects are inside in the data property.

Response
{
  "total": 6,
  "per_page": 5,
  "current_page": 1,
  "last_page": 2,
  "from": 1,
  "to": 5,
  "data":
    [
      {
        "id": 1,
        "name": "Salesly.app",
        "email": "info@salesly.app",
        "comments": null,
        "cif": "G123456789",
        "phone": "938206362",
        "iban": null,
        "web": "https://www.salesly.app",
        "type": 1,
        "extra_field": null,
        "location": {
          "primary": 1,
          "direction": "Carrer Gavarresa",
          "city": "Cabrianes",
          "postal": "08620",
          "country": "Spain",
          "latitude": "41.7984089",
          "longitude": "1.9100628999999572"
        },
        "users": []
      },
 
      {"id" : 2 ...},
      {"id" : 3 ...}
      {"id" : 4 ...}
      {"id" : 5 ...}
    ]
}