Archive a contact

An archived contact remains in Salesmachine database but is not visible and not processed. An archived contact can be unarchived via API or the application UI. If updates or events related to this contact are received they will be ignored.

post
archive contact

https://data.salesmachine.io/v2/contacts/:id/archive
This endpoint allows you to archive a contact
Request
Response
Request
Path Parameters
id
required
string
salesmachine contact ID
Response
200: OK
Cake successfully retrieved.
{
"object": "contact",
"id": "5d3bae5bcb4a287b44583a55",
"unique_id": "5d3bae4cf92ea13a3dfb542e",
"created_at": 1564192347,
archived: true,
"data": {
...
},
"salesmachine": {
...
},
"stage": {
"name": "Trial",
"id": "5b2bc014ce8d8355c6d48b70"
},
"accounts": {
"object": "account.list",
"data": [
{
"id": "5d3bae278cae234bef95405a"
}
]
}
}
404: Not Found
Could not find a cake matching this query.
{
"error": "404 Object not found"
}
curl -X GET https://data.salesmachine.io/v2/contacts/{id}/archive \
-H 'Accept: application/json' \
-H 'Authorization:Bearer <Your access token>'