Insert a new contact or update an existing one based on email or phone
Match by email
email is provided, searches for an existing contact with the same email in your company.customFields object. Fields are flexible key-value pairs:
| 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.+39 for Italy, +1 for US)+12025551234 (US), +393391234567 (Italy)| Error | Cause | Solution |
|---|---|---|
validation_error | Invalid email format | Check email address format |
invalid_phone_number | Phone not in E.164 format | Add country code, remove spaces |
rate_limit_exceeded | Too many requests | Implement rate limiting, use batching |
unauthorized | Invalid API key | Verify API key in Authorization header |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful response
"12345"