User/Contact API
Use these sets of API if you wish to sync your user or contact into OneTalk's system.
post
https://onetalk-api.taptalk.io
/api/integration/v1/user/sync_contact
Sync User Contact
Click the right arrow above on the right side of Sync User Contact API to see the full list of request parameters and the response.
Request Example
1
{
2
"customerUserID": "company:123",
3
"fullName": "John Doe",
4
"alias": "",
5
"email": "[email protected]",
6
"phone": "6281234567890",
7
"photoURL": "http://www.example.com/photo/john_doe.jpg"
8
}
Copied!
The sync process will check for existing contacts using all the following keys:
  • customerUserID (required)
  • phone (optional)
If no contact is found, a new contact will be created. If exactly one contact is found using the sync keys, the contact will be updated. If more than one contacts are found, the sync will be rejected because duplicate keys are not allowed.
Customer user ID can't be changed for existing contacts. So, if the existing contact is already tied to a different customer user ID, the sync will be rejected. However, if the existing contact is not tied to any customer user ID yet, it will be updated to the specified customerUserID.
Copy link