List contacts

get
List all contacts

https://data.salesmachine.io/v2/contacts
A pageable list of contacts. The contact list contains a pagination object that indicates if more contacts exist via the next field, whose value is a URL that can be used to fetch the next page. If the next field is not present, that indicates there are no further contacts in the list.
Request
Response
Request
Query Parameters
status
optional
string
Salesmachine status. Possible values are 'trial', 'paying', 'churned' or 'not_converted'
archived
optional
string
if true only archived contacts are listed
offset
optional
string
What offset of results to fetch.
limit
optional
string
How many results per page. Defaults 25, max is 100
order
optional
string
Returns the contacts in ascending or descending order. Valid values 'asc' or 'desc'. Default to 'desc'
sort
optional
string
What field to sort the results by. Valid value 'created_at'
Response
200: OK
List of contacts
{
"object": "contact.list",
"data": [
{
"object": "contact",
"id": "5d3bae5bcb4a287b44583a55",
"unique_id": "5d3bae4cf92ea13a3dfb542e",
"created_at": 1564192347,
"data": {
...
},
"salesmachine": {
...
},
"stage": {
"name": "Trial",
"id": "5b2bc014ce8d8355c6d48b70"
},
"accounts": {
"object": "account.list",
"data": [
{
"id": "5d3bae278cae234bef95405a"
}
]
}
}
],
"pagination": {
"total": 4019,
"offset": 0,
"limit": 25,
"count": 25,
"next": "https://data.salesmachine.io/v2/contacts?offset=25&limit=25"
}
}
‚Äč
curl -X GET https://data.salesmachine.io/v2/contacts \
-H 'Accept: application/json'
-H 'Authorization:Bearer <Your access token>'