WhatsApp Business Message API Documentation

v1

The API allows you to send template-based messages through WhatsApp with customizable components:

  1. Base URL and Authorization: Use the provided URL to send requests with a valid access token for authentication.

  2. Message Components:

    • Header: Add a title or media (text, image, video, or document).

    • Body: Include static or dynamic text (personalized with placeholders like {{1}}).

    • Footer: Optional text displayed at the bottom.

    • Buttons: Add interactive elements like:

      • Quick Reply: Predefined responses.

      • URL: Static or dynamic links.

      • Coupon Code: Shareable codes.

      • WhatsApp Flow: Links to another workflow.

  3. Request Structure: The message JSON includes messaging_product, recipient details (to), template name, language, and the defined components.

  4. Success Response: Returns a message ID upon successful delivery.

  5. Error Handling: Provides error details, including type, code, and descriptions, for troubleshooting.

This documentation enables developers to create and send dynamic, interactive WhatsApp messages effectively.

Last updated