GET
/
conversation
/
{id}
/
messages
curl --request GET \
  --url https://api.wapikit.com/api/conversation/{id}/messages
{
  "messages": [
    {
      "uniqueId": "<string>",
      "conversationId": "<string>",
      "direction": "InBound",
      "status": "Read",
      "messageType": "Text",
      "createdAt": "2023-11-07T05:31:56Z",
      "replyToMessageId": "<string>",
      "whatsAppMessageId": "<string>",
      "messageData": {
        "text": "<string>"
      }
    }
  ],
  "paginationMeta": {
    "page": 123,
    "per_page": 123,
    "total": 123
  }
}

Path Parameters

id
string
required

The id value of the conversation you want to get messages from.

Query Parameters

page
integer
required

number of records to skip

per_page
integer
required

max number of records to return per page

order
enum<string>

order by asc or desc

Available options:
asc,
desc

Response

200
application/json

list of messages

The response is of type object.