Messages

Send template message

Sends an approved WhatsApp template message. This is the only message type that reaches recipients that never messaged the business or whose service window is closed.

When the template contains a FLOW button, the request must include the matching button component with sub_type: flow.

post/messages/template

Request body

fromstring required

WhatsApp id of the sender phone number

tostring required

Recipient phone number, digits only, including country code

Response

Message sent successfully

idstring uuid required

Id of the created message

Changes

Changed in 2 of the 9 revisions of this API.1310

    • added the media type application/json for the response with the status

      response-media-type-added

    • added the media type application/json for the response with the status

      response-media-type-added

    • added the media type application/json for the response with the status

      response-media-type-added

  • 8ccfb9a461e2137See the full diff
    • request body became required

      request-body-became-required

    • the request property /// became not nullable

      request-property-became-not-nullable

    • the request property /// became not nullable

      request-property-became-not-nullable

    • the request property became required

      request-property-became-required

    • the request property became required

      request-property-became-required

    • the request property /// became required

      request-property-became-required

    • the request property / became required

      request-property-became-required

    • the request property // became required

      request-property-became-required

    • the request property / became required

      request-property-became-required

    • the request property became required

      request-property-became-required

    • the request property's minLength was increased from 0 to 1

      request-property-min-length-increased

    • the request property's minLength was increased from 0 to 1

      request-property-min-length-increased

    • the //// request property type changed from string to no type

      request-property-type-changed

    • added the new optional request property ///

      new-optional-request-property

    • added the non-success response with the status

      response-non-success-status-added

    • added the non-success response with the status

      response-non-success-status-added

    • added the non-success response with the status

      response-non-success-status-added

    • the response property became required for the status

      response-property-became-required

    • the response's property pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$ was added for the status

      response-property-pattern-added

    • added the required property to the response with the status

      response-required-property-added