List accounts

get
List all accounts

https://data.salesmachine.io/v2/accounts
A pageable list of accounts. The account list contains a pagination object that indicates if more accounts 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 accounts in the list.
Request
Response
Request
Query Parameters
archived
optional
boolean
if true list only archived accounts
offset
optional
string
What offset of results to fetch. Defaults to first item.
limit
optional
string
How many results per page. Defaults to 25, max is 100.
order
optional
string
Returns the accounts in ascending or descending order. Valid values: asc or desc. Defaults to desc.
sort
optional
string
What field to sort the results by. Valid values: ‘created_at’
Response
200: OK
{
"object": "account.list",
"data": [
{
"object": "account",
"id": "5d3bae5bcb4a287b44583a55",
"unique_id": "5d3bae4cf92ea13a3dfb542e",
"created_at": 1564192347,
"data": {
...
},
"salesmachine": {
...
},
"stage": {
"name": "Trial",
"id": "5b2bc014ce8d8355c6d48b70"
},
"contacts": {
"object": "contact.list",
"data": [
{
"id": "5d3bae278cae234bef95405a"
}
]
}
}
],
"pagination": {
"total": 4019,
"offset": 0,
"limit": 25,
"count": 25,
"next": "https://api.salesmachine.io/v2/accounts?offset=25&limit=25"
}
}

Example

curl -X GET https://data.salesmachine.io/v2/accounts?sort=asc&sort=created_at \
-H 'Accept: application/json' \
-H 'Authorization:Bearer <Your access token>'