Update an existing contact using their ID
| Scenario | Use this endpoint | Use upsert instead |
|---|---|---|
| Change a contact’s email | Yes | Only if phone number is also provided (upsert falls back to phone matching) |
| Update a known contact by ID | Yes | Either works |
| Create a new contact | No (returns 404) | Yes |
| Update by email/phone match | No | Yes |
| Field | Type | Description |
|---|---|---|
email | boolean | Email marketing opt-in (true) or opt-out (false) |
whatsapp | boolean | WhatsApp marketing opt-in (true) or opt-out (false) |
true opts the
contact in, false opts them out.| Error | Cause | Solution |
|---|---|---|
not_found | No contact with this ID | Verify the contact ID |
unauthorized | Invalid API key | Verify API key in Authorization header |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Contact ID