Sync Contact

Keep your CRM data in sync with WaDoot by creating or updating contact profiles on the fly.

POST/v1/contacts/sync

Request Body

Parameters

ParameterTypeRequiredDescription
phoneNumberstringYesPrimary identifier for the contact.
namestringNoFull name of the contact.
emailstringNoEmail address of the contact.
attributesobjectNoCustom key-value pairs (e.g. { "city": "Delhi" }).
tagsstring[]NoList 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)
});