Send Message
v1
Request Example
Complete Message JSON
{
"phone_number": "+<Phone Number>",
"phone_number_id": "<Phone Number ID>",
"sender_phone_number": "<Sender Phone Number>",
"workspace_id": "<Your Workspace ID>",
"waba_id": "<WA Business for API ID>",
"template_name": "<Your Template Name>",
"components": [
{
"type": "header",
"parameters": [
{ "type": "text", "text": "Welcome to {{1}}!" }
]
},
{
"type": "body",
"parameters": [
{ "type": "text", "text": "Your order {{2}} is ready for pickup." }
]
},
{
"type": "button",
"sub_type": "quick_reply",
"index": "0"
},
{
"type": "button",
"sub_type": "copy_code",
"index": "1"
"parameters": [
{ "type": "coupon_code", "coupon_code": "<Coupon Code>" }
]
},
{
"type": "button",
"sub_type": "flow",
"index": "2"
}
]
}
}Meta Response
Success Response
{
{
"code": 200,
"status": "Success",
"data": {
"messaging_product": "whatsapp",
"contacts": [
{
"input": "+<Phone Number>",
"wa_id": "<Phone Number>"
}
],
"messages": [
{
"id": "<Message ID>",
"message_status": "accepted"
}
]
}
}
}Error Response
{
"code": 500,
"status": "Internal Server Error",
"data": {
"message": "<Error Message>",
"type": "<Error Type>",
"code": <Error Code>,
"error_data": {
"messaging_product": "whatsapp",
"details": "<Error Details>"
},
"fbtrace_id": "<Trace ID>"
}
}Common Error Codes
For common error codes see here
References
This API documentation provides a complete structure for WhatsApp messages, ensuring clarity for developers implementing the system. Let us know if further customization is required!
Support
If you need assistance with workspace creation or management, please reach out to our support team:
Email: [email protected]
Last updated