Sync Contact
Keep your CRM data in sync with WaDoot by creating or updating contact profiles on the fly.
POST
/v1/contacts/syncRequest Body
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| phoneNumber | string | Yes | Primary identifier for the contact. |
| name | string | No | Full name of the contact. |
| string | No | Email address of the contact. | |
| attributes | object | No | Custom key-value pairs (e.g. { "city": "Delhi" }). |
| tags | string[] | No | List of tag names to apply. Tags are created automatically if they don't exist. |
Implementation Examples
const payload = {
phoneNumber: "+919876543210",
name: "Rahul Sharma",
attributes: { city: "Mumbai" },
tags: ["Lead"]
};
await fetch('https://api.wadoot.com/v1/contacts/sync', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-KEY': 'YOUR_API_KEY_HERE'
},
body: JSON.stringify(payload)
});