Send Messages
Send Messages
Send messages from your channel to a user by specifying the content type. Supports identification by phone number or BSUID.
POST
Identifying the recipient
TheuserId field accepts two formats:
- Phone number: E.164 format without the leading
+(e.g.:593999999999). - BSUID (Business-Scoped User ID): an identifier with the format
CC.alphanumeric(e.g.:US.13491208655302741918).
What is a BSUID? When a user enables number privacy in WhatsApp, Meta stops exposing their real phone number and instead identifies the user through a BSUID unique to your business. If your integration already knows a user’s BSUID —for example, because you received it in an incoming webhook—, you can use it directly in
userId to send them a message without needing their phone number.- With phone number
- With BSUID
cURL
Use Cases
- Simple notifications
- Confirmations
- Informational messages
- Basic automated responses
- Replying to a user who enabled number privacy in WhatsApp, using the BSUID received in an incoming webhook
- Sending proactive messages to users identified exclusively by BSUID, without needing to store or know their real phone number
Examples
Replying to an incoming message identified by BSUID
When a user with number privacy enabled writes to you, the incoming webhook carries their BSUID instead of a phone number. Use that same value to reply:cURL
Sending an image to a recipient identified by BSUID
Every other message type (image, document, location, etc.) works the same way: just swap theuserId value for the recipient’s BSUID.
cURL
Authorizations
Body
application/json
Message payload. The structure varies based on the message type.
- Text
- Text with options (WhatsApp)
- Text with options (Instagram / Messenger)
- Quick replies
- Image
- Audio
- Video
- File
- Sticker
- Location
- Contacts
- Location request
- Contact info request
- URL button
- Call button
Unique identifier of the user receiving the message. Accepts either a phone number in E.164 format without the leading '+' (e.g. '593999999999') or a BSUID (Business-Scoped User ID, e.g. 'US.13491208655302741918') for users who have enabled phone number privacy in WhatsApp.
Example:
"593999999999"