Contact

Contacts can be created or updated via a POST method which accepts a JSON object describing the contact.

Contacts not found via contact_uid will be created, and those that are found will be updated.

post
Create or update a contact

https://api.salesmachine.io/v1/contact
This endpoint allows you to set values in the general data section.
Request
Response
Request
Form Data Parameters
contact_uid
required
string
The contact unique_id you have defined for the contact.
params.email
optional
string
Contact email
params.name
optional
string
Contact fullname
params.account_uid
optional
string
Unique id of a linked account
Response
201: Created
Contact successfully created or updated.
{status: "success"}

Example

curl -X POST -H "Content-Type: application/json" -u 'YOUR_API_TOKEN:' \
-d '{"contact_uid":"123456", "params" : { "email":"elon@teslamotors.com", "name":"Elon Musk", "gender":"male", "mrr": 99, "account_uid":"78910" }}' \
'https://api.salesmachine.io/v1/contact'