v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-06-11720209.3 KB
Message Controller

Send List

Send List

post/message/sendList/{instance}

Path parameters

instancestring required

ID of the instance to connect

Request body

numberstring

Number to receive the message (with country code)

Response

Created

messageTimestampstring

The timestamp of the message, represented as a string.

statusstring

The status of the message, such as sent, received, or pending.

Example response

{
  "key": {
    "remoteJid": "553198296801@s.whatsapp.net",
    "fromMe": true,
    "id": "BAE5096096C5E261"
  },
  "message": {
    "listMessage": {
      "title": "List Title",
      "description": "List description",
      "buttonText": "Click Me",
      "listType": "PRODUCT_LIST",
      "sections": [
        {
          "title": "Section title",
          "rows": [
            {
              "title": "Row 1",
              "description": "Row 1 description",
              "rowId": "1"
            },
            {
              "title": "Row 2",
              "description": "Row 2 description",
              "rowId": "2"
            }
          ]
        },
        {
          "title": "Section 2",
          "rows": [
            {
              "title": "Row 1",
              "description": "Row 1 description",
              "rowId": "1"
            },
            {
              "title": "Row 2",
              "description": "Row 2 description",
              "rowId": "2"
            }
          ]
        }
      ],
      "contextInfo": {}
    }
  },
  "messageTimestamp": "1717782429",
  "status": "PENDING"
}