Get Messages

get
Get Messages by WhatsApp Number

https://api.cakes.com/api/v1/getMessages/{whatsapp_number}
This endpoint allows you to get messages by WhatsApp Number
Request
Response
Request
Path Parameters
pageNumber
optional
integer
Page Number
pageSize
optional
integer
Page Size
whatsapp_number
required
string
WhatsApp Number
Headers
authorization
required
string
Authorization Token
Response
200: OK
{
"result": "success",
"messages": {
"items": [
{
"text": "We are experiencing high volume of queries now. We will get back to you soon.\n\nPlease refer to our FAQ : https://support.wati.io",
"type": "text",
"data": null,
"timestamp": "1601028134",
"owner": true,
"statusString": "READ",
"avatarUrl": "/assets/images/avatar/bot.png",
"assignedId": "5ea9ab59fe17e30001f1e964",
"operatorName": "Bot ",
"contacts": null,
"id": "5f6dc026ff755f4683a7db29",
"created": "2020-09-25T10:02:14.06Z",
"conversationId": "5eaa7da1fe17e30001f285db",
"ticketId": "5f6d71e6ff755f4683a79672",
"eventType": "message"
}
],
"pageNumber": 1,
"pageSize": 1,
"total": 258,
"orderBy": null,
"lastId": null,
"sortBy": 0,
"filters": null,
"allowFilters": null,
"search": null
},
"link": {
"prevPage": null,
"nextPage": "https://wati-server-demo4.clare.ai/api/v1/getMessages/xxxxxxxxxxxx?pageSize=1&pageNumber=2"
}
}

‚Äč