Upsert a user information message to a given phone number. Donβt worry about the structure, if the data is in the body AI will take care of it
| Field | Type | Required | Description |
|---|---|---|---|
channel_phone_number | string | Yes | Your WhatsApp channel phone number (the sender) |
channel | string | Yes | Channel type: βwhatsappβ or βweb-whatsappβ |
contact_phone_number | string | No | Customerβs phone number (can also be in meta_data) |
contact_name | string | No | Customerβs full name |
contact_email | string | No | Customerβs email address |
stageId | string | No | Pipeline stage UUID to assign the customer to |
agentId | string | No | Team member UUID to assign as responsible agent |
meta_data | object | No | Any additional customer data (AI will structure it) |
| Field | Type | Description |
|---|---|---|
id | string (UUID) | Unique identifier for the contact |
name | string | Contactβs name |
phone | string | Contactβs phone number |
email | string | Contactβs email |
platform | string | Channel platform (whatsapp, web-whatsapp) |
client_id | string (UUID) | Your organization ID |
ai_customer_id | string (UUID) | Associated customer profile ID |
created_at | string (ISO) | Contact creation timestamp |
default_stage_id | string (UUID) | Current pipeline stage (if assigned) |
contact_phone_number field is optional because the AI can extract it from meta_data:
Option 1 - Explicit phone number:
| Channel | Description | Use When |
|---|---|---|
whatsapp | WhatsApp Business API | Using official WhatsApp API |
web-whatsapp | WhatsApp Web (QR Code) | Using WhatsApp Web connection |
| Status Code | Description |
|---|---|
| 400 | Bad Request - Missing required fields |
| 401 | Unauthorized - Invalid or missing API key |
| 404 | Not Found - Channel phone number not found |
| 500 | Internal Server Error - Something went wrong |
POST /api/public/whatsapp/message/note/send endpoint:
Old:
API key needed to authorize the request
The phone number of the channel you want associate with the user
1Channel you want associate with the user
whatsapp, web-whatsapp Phone number you want associate with the user
Stage ID you want associate with the user
Agent ID you want associate with the user
Email you want associate with the user
Name you want associate with the user
Message sent successfully.