📤 Chatting

Send a list message (interactive)

Send a List message with sections and rows

post/api/sendList

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/api/sendList
  • Auth: API key in header X-Api-Key

Request body

chatIdstring required
reply_tostring

The ID of the message to reply to - false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA

sessionstring required

Example request

{
  "chatId": "11111111111@c.us",
  "message": {
    "title": "Example List",
    "description": "Choose one of the options",
    "footer": "Footer note",
    "button": "Select",
    "sections": [
      {
        "title": "Section 1",
        "rows": [
          {
            "title": "Option 1",
            "rowId": "option1",
            "description": "Description 1"
          },
          {
            "title": "Option 2",
            "rowId": "option2",
            "description": "Description 2"
          }
        ]
      }
    ]
  }
}

Response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.