Get an account

get
account by id

https://data.salesmachine.io/v2/accounts/:id
Where :id is the value of the account’s id field. This URL is the account’s canonical address in the API.
Request
Response
Request
Path Parameters
id
required
string
Salesmachine account id
Response
200: OK
{
"object": "account",
"id": "5d3bae5bcb4a287b44583a55",
"unique_id": "5d3bae4cf92ea13a3dfb542e",
"created_at": 1564192347,
"data": {
"name": "Acme corp"
},
"salesmachine": {
"health": "good"
},
"stage": {
"name": "Trial",
"id": "5b2bc014ce8d8355c6d48b70"
},
"contacts": {
"object": "contact.list",
"data": [
{
"id": "5d3bae278cae234bef95405a"
}
]
}
}

Example

curl -X GET https://data.salesmachine.io/v2/accounts/{id} \
-H 'Accept: application/json' \
-H 'Authorization:Bearer <Your access token>'

get
account by uid

https://data.salesmachine.io/v2/accounts?uid=:unique_id
Request
Response
Request
Query Parameters
uid
required
string
External unique_id
Response
200: OK
{
"object": "account",
"id": "5d3bae5bcb4a287b44583a55",
"unique_id": "5d3bae4cf92ea13a3dfb542e",
"created_at": 1564192347,
"data": {
"name": "Acme corp"
},
"salesmachine": {
"health": "good"
},
"stage": {
"name": "Trial",
"id": "5b2bc014ce8d8355c6d48b70"
},
"contacts": {
"object": "contact.list",
"data": [
{
"id": "5d3bae278cae234bef95405a"
}
]
}
}

Example

curl -X GET https://data.salesmachine.io/v2/accounts?uid={unique_id} \
-H 'Accept: application/json' \
-H 'Authorization:Bearer <Your access token>'