Получить журнал входящих сообщений
GET
/waInstance{{idInstance}}/lastIncomingMessages/{{apiTokenInstance}}Документация LastIncomingMessages
Request
Query Params
minutes
string
required
Время в минутах
Example:
1440
Request samples
Responses
lastIncomingMessages(200)
lastIncomingMessages
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
array of:
type
string
required
idMessage
string
required
timestamp
integer
required
typeMessage
string
required
chatId
string
required
textMessage
string
optional
senderId
string
required
senderName
string
required
senderContactName
string
required
deletedMessageId
string
required
editedMessageId
string
required
isEdited
boolean
required
isDeleted
boolean
required
extendedTextMessageData
object
optional
text
string
required
quotedMessage
object
optional
stanzaId
string
required
participant
string
required
ExamplelastIncomingMessages
[
{
"type": "incoming",
"idMessage": "9DB14F14A253D33F4A9CD84123456789",
"timestamp": 1706522263,
"typeMessage": "textMessage",
"chatId": "120363153000000000@g.us",
"textMessage": "Hi",
"senderId": "70000000012@c.us",
"senderName": "Rachel",
"senderContactName": "Rachel 2",
"deletedMessageId": "",
"editedMessageId": "",
"isEdited": false,
"isDeleted": false
},
{
"type": "incoming",
"idMessage": "3A1EBA0F23004BD415BB",
"timestamp": 1706601621,
"typeMessage": "reactionMessage",
"chatId": "70000000012@c.us",
"extendedTextMessageData": {
"text": "😄"
},
"quotedMessage": {
"stanzaId": "B4D7D8A1A7D887D5580F000000000000",
"participant": "70000000012@c.us"
},
"senderId": "70000000013@c.us",
"senderName": "Rachel",
"senderContactName": "Rachel 2",
"deletedMessageId": "",
"editedMessageId": "",
"isEdited": false,
"isDeleted": false
}
]
Last modified: 19 days ago