Skip to main content
GET
/
conversation
/
{id}
/
messages
cURL
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

list of messages

messages
object[]
required
  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
  • Option 6
  • Option 7
  • Option 8
  • Option 9
  • Option 10
  • Option 11
  • Option 12
  • Option 13
paginationMeta
object
required