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

Error Response

Common Error Codes

For common error codes see herearrow-up-right


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!

circle-info

Support

If you need assistance with workspace creation or management, please reach out to our support team:

Last updated