Salesmachine API
Home
Product documentation
Search…
v2.0
Welcome to Salesmachine API
Tracking API
Authentication
Javascript tracking
Contact
Account
Event
Access API
Authentication
Contacts
Accounts
Notes
Activities
Tasks
Users
Errors
HTTP Responses
Rate Limiting
Changelog
Powered By
GitBook
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
https://api.salesmachine.io
/v1/contact
Create or update a contact
Example
curl
-X POST -H
"Content-Type: application/json"
\
-d
'{"contact_uid":"123456", "params" : { "email":"
[email protected]
", "name":"Elon Musk", "gender":"male", "mrr": 99, "account_uid":"78910" }}'
\
'https://api.salesmachine.io/v1/contact?api_token=<YOUR_API_TOKEN>'
Reserved fields
name
Format
Description
mrr
number
MRR Value
churn_date
date
Date when contact has churned (Timestamp)
churn_mrr
number
MRR Value when churned
churn_reason
string
unique_id defining the reason why contact has churned (Snake Case)
churn_comment
string
Comment to explain why contact has churned
Tracking API - Previous
Javascript tracking
Next - Tracking API
Account
Last modified
1yr ago
Copy link
Outline
post
Create or update a contact
Example
Reserved fields