Send WhatsApp Message
Send a text or template message to a WhatsApp contact.
- UTILITY / MARKETING
- AUTHENTICATION
POST /whatsapp/send-whatsapp-message/
Headers
| Name | Value |
|---|---|
| Authorization | Bearer Access Token |
| Content-Type | application/json |
Payload
Response
{
"message": "Message sent successfully",
"data": {
"id": 1,
"message": "Hello World",
"message_id": "wamid.XXXXX",
"status": "<status (SENT/RECEIVED)>",
"contact": "<contact_id>",
"phone_number_id": "<phone_number_id>",
"created_at": "<timestamp>"
},
"success": true
}
Send authentication template messages for OTP codes and verification purposes.
POST /whatsapp/send-whatsapp-message/
Headers
| Name | Value |
|---|---|
| Authorization | Bearer Access Token |
| Content-Type | application/json |
Payload
Response
{
"message": "Message sent successfully",
"data": {
"id": "<Message ID in FreJun>",
"message": "<OTP with default message from whatsapp>",
"user_id": "<WhatsApp contact ID in FreJun>",
"message_id": "<message ID in whatsapp E.g, wamid.XXXXXXXXXXXXXXXX>",
"status": "QUEUED",
"read_by_user": true,
"created_at": "<timestamp E.g, 2026-02-18T16:48:22.369571>",
"updated_at": "<timestamp E.g, 2026-02-18T16:48:22.369586>",
"template": "<Associated template ID>",
"phone_number_id": "<Associated phone number ID in FreJun>",
"contact": "<Associated contact ID in FreJun>",
"owner": {
"id": "<User ID in FreJun>",
"email": "<email of the frejun account used to send the message>",
"name": "<Name in FreJun account>"
}
},
"success": true
}