Skip to content
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.

Dikemas kini 22 November 2026 · oleh Rahil · Markdown

Sepintas lalu

Method and pathPOST /api/v1/contacts
Requiredphone
Optionalname, email, tags (up to 20), fields (up to 40)
Answers201 when created, 200 when updated
NeedsAn 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.

Soalan lazim

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.

Cuba pada nombor anda sendiri

Dua minit untuk sambung, 7 hari percuma, tanpa kad. Pekerja AI anda menjawab, membuat tempahan dan membuat susulan di nombor WhatsApp yang sudah digunakan pelanggan anda.