Add or update a contact
POST /api/v1/contacts adds a person to the iChatUp address book, or updates them when the WhatsApp number is already known, so the same person is never duplicated. Send the phone number with its country code plus any name, e-mail, tags and custom details. Tags and details that do not exist yet are created on the spot.
At a glance
| Method and path | POST /api/v1/contacts |
|---|---|
| Required | phone |
| Optional | name, email, tags (up to 20), fields (up to 40) |
| Answers | 201 when created, 200 when updated |
| Needs | An API key; no WhatsApp connection required |
Request
curl -X POST https://ichatup.com/api/v1/contacts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"phone": "+919876543210",
"name": "Asha Rao",
"email": "asha@example.com",
"tags": ["Website lead"],
"fields": {"City": "Pune", "Course": "Weekend batch"}
}'
Response
{
"contact": {
"id": 5120,
"phone": "+919876543210",
"name": "Asha",
"email": "asha@example.com",
"tags": ["Website lead"],
"fields": {"city": "Pune", "course": "Weekend batch"},
"subscribed": true
},
"created": true
}subscribed is false for someone who opted out or whose number WhatsApp marked as unreachable.
Rules worth knowing
- A number without a country code is given the account’s default code. Send full international numbers if you work across countries.
fieldsmay be keyed by a detail’s label (“City”) or its key (“city”). Empty values are skipped, and each value is cut at 500 characters.- On update, a missing name or e-mail leaves the old one alone; tags are added, never removed.
- A brand-new contact is marked as opted in through the API, and gets the Front Desk welcome if the account turned that journey on.
Tagged contacts can be picked as an audience for broadcasts.
Questions
Can the API delete a contact or remove a tag?
No. It only adds and updates. Removing is done in the dashboard.
Does adding a contact send them a message?
Not by itself. Only if the account switched on the Front Desk welcome for new customers.
See it on your own number
Two minutes to connect, 7 days free, no card. Your AI employee answers, books and follows up on the WhatsApp number your customers already use.