Send WhatsApp Interactive List Message

Sends a WhatsApp interactive list message, allowing users to select from multiple options grouped into sections.

Endpoint

POST /api/messages/send

Base URL

https://api.rampwin.com

Description

This API allows you to send list-based interactive messages where users can choose one option from a structured list.
Useful for menus, selections, and guided user flows.


When to Use

Use this API when you want to:

  • Show multiple selectable options
  • Create menus (e.g., services, categories)
  • Guide users through structured choices

Authentication

  • API Key

Query Parameters

ParameterTypeRequiredDescription
dontShowInChatListbooleanNoHide message from chat list (default: false)

Headers

HeaderTypeRequiredDescription
X-API-KeystringYesYour Rampwin API key
Content-TypestringYesapplication/json

Request Body

{
  "channel_id": "CHANNEL_ID",
  "phone_number": "919999999999",
  "hide_from_chat": false,
  "interactive": {
    "type": "list",
    "body": {
      "text": "Hello"
    },
    "action": {
      "button": "Select",
      "sections": [
        {
          "title": "Section 1",
          "rows": [
            {
              "id": "row_1",
              "title": "Row 1",
              "description": "desc"
            },
            {
              "id": "row_2",
              "title": "Row 2",
              "description": "desc"
            }
          ]
        },
        {
          "title": "Section 2",
          "rows": [
            {
              "id": "row_3",
              "title": "Row 3",
              "description": "desc"
            },
            {
              "id": "row_4",
              "title": "Row 4",
              "description": "desc"
            }
          ]
        }
      ]
    },
    "footer": {
      "text": "Thank You"
    }
  }
}

Request Parameters

FieldTypeRequiredDescription
channel_idstringYesWhatsApp channel ID
phone_numberstringYesRecipient phone number (with country code)
hide_from_chatbooleanNoHide message in chat UI
interactiveobjectYesInteractive list object

Example Request

curl --location 'https://api.rampwin.com/api/messages/send?dontShowInChatList=false' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "channel_id": "YOUR_CHANNEL_ID",
  "phone_number": "919999999999",
  "hide_from_chat": false,
  "interactive": {
    "type": "list",
    "body": {
      "text": "Hello"
    },
    "action": {
      "button": "Select",
      "sections": [
        {
          "title": "Section 1",
          "rows": [
            {
              "id": "row_1",
              "title": "Row 1",
              "description": "desc"
            },
            {
              "id": "row_2",
              "title": "Row 2",
              "description": "desc"
            }
          ]
        }
      ]
    },
    "footer": {
      "text": "Thank You"
    }
  }
}'

Response

Success (200)

{
  "success": true,
  "message": "Interactive list message sent successfully"
}

Error (400)

{
  "success": false,
  "message": "Invalid interactive list payload"
}

Common Errors

ErrorDescription
Invalid sectionsगलत section/row structure
Missing buttonAction button text required
Too many rowsExceeds WhatsApp limits
UnauthorizedInvalid API key