---
title: "iChatUp API: Add or Update a Contact"
url: https://ichatup.my/docs/contacts
description: "POST /api/v1/contacts adds a person to iChatUp or updates them if the number is known, with name, e-mail, tags and custom details in one call."
source: iChatUp
---

Developers

# 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.
- `fields` may 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](https://ichatup.my/use-cases/whatsapp-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.

## Read next

- [Send a template message](https://ichatup.my/docs/messages)
- [Authentication](https://ichatup.my/docs/authentication)
- [WhatsApp broadcasts & marketing campaigns](https://ichatup.my/use-cases/whatsapp-broadcasts)
- [List templates and check the account](https://ichatup.my/docs/templates-and-account)
- [Send a Front Desk moment](https://ichatup.my/docs/front-desk-moments)
- [Idempotency](https://ichatup.my/docs/idempotency)

---
Source: https://ichatup.my/docs/contacts
