Create or Update Contact
This endpoint uses upsert behaviour — if a contact with the given phone number already exists, it updates the provided fields. Otherwise, it creates a new contact.
POST/v2.0/contacts
Upsert Behaviour
If a contact with the given phone number already exists, Sendiee will update the provided fields and return
isNew: false. Only fields explicitly passed in the request are updated — existing fields are not overwritten.Request Parameters
Body Parameters
| Parameter | Type | Description |
|---|---|---|
| phone | string | Phone number — local or full international format |
| countryCode | string | Country code to prepend if phone is local |
| contactName | string | Full name of the contact |
| string | Email address | |
| platform | string | Contact platformDefault: whatsapp |
| businessName | string | Company / business name |
| addressLine1 | string | Address line 1 |
| addressLine2 | string | Address line 2 |
| city | string | City |
| state | string | State / Province |
| postalCode | string | Postal / ZIP code |
| country | string | Country |
| source | string | Lead sourceDefault: api |
| notes | string | Free-form notes |
| lead_category | string | Lead category (must match a category in your dashboard) |
| customFields | object | Key-value pairs for custom contact attributes |
Code Examples
curl -X POST https://api.sendiee.com/v2.0/contacts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone": "919876543210",
"contactName": "Priya Sharma",
"email": "[email protected]",
"city": "Mumbai",
"lead_category": "Interested",
"customFields": {
"shopify_customer_id": "cust_12345",
"preferred_language": "Hindi",
"order_count": 5
}
}'Response
Created (201)
{
"success": true,
"message": "Contact created successfully",
"data": {
"_id": "664abc...",
"phone": "919876543210",
"contactName": "Priya Sharma",
"isNew": true
}
}Updated (200)
{
"success": true,
"message": "Contact updated successfully",
"data": {
"_id": "664abc...",
"phone": "919876543210",
"contactName": "Priya Sharma",
"isNew": false
}
}Try It
Try it — API Playground