Skip to navigation

Send Image Service Message

View as Markdown

This endpoint allows you to send service messages with image header to recipients using whatsApp.

Request

  • Method: POST

  • URL: https://business.me-mate.net/sendservicemessages/sendmessages

  • Headers:

    • Content-Type: application/json
  • Body:

  • to (string) - The recipient’s number.

  • type (string) - The type of message, e.g., image, text, etc.

  • image (object) - The image details including the link and caption.

    • link (string) - The full URL of the image.

    • caption (string) - The caption text for the image.

  • recipient_type (string) - The type of recipient, e.g., individual, group, etc.

  • messaging_product (string) - WhatsApp.

  • api_key (string) - Your production API key. > How to get Your API key?

Response

The response is in JSON format and follows the schema below:

  • messaging_product (string): The messaging product used

  • contacts (array): An array of contact objects

    • input (string): Input information

    • wa_id (string): WhatsApp ID

  • messages (array): An array of message objects

    • id (string): Message ID

Request

This endpoint expects an object.
tostringRequired
typestringRequired
imageobjectRequired
api_keystringRequired
recipient_typestringRequired
messaging_productstringRequired

Response

OK
contactslist of objects
messageslist of objects
messaging_productstring