Set Messages Data
EVENTwebhook
This endpoint accepts a batch of messages from the connected WhatsApp account. It's primarily used to sync and upload a collection of messages to ensure the system has the latest data.
Request
Header Parameters
x-businessId stringrequired
Identificador do negócio
x-instanceId stringrequired
Identificador da instanceia
x-whatsappId stringrequired
Identificador do whatsapp conectado
- application/json
Body
- Array [
- ]
instance object
instanceId string
name string
state string
Possible values: [active
, inactive
]
connection string
Possible values: [refused
, close
, open
]
createdAt date-time
WhatsApp object
whatsappId string
remoteJid string
pictureUrl string
pushName string
createdAt date-time
Business object
businessId string
name string
data object[]
messageId string
keyId string
keyRemoteJid string
keyParticipant string
pushName string
contentType string
content object
property name* object
source string
Possible values: [ios
, android
, web
, api
]
messageTimestamp int32
createdAt date-time
event string
Possible values: [messages.set
]
Responses
- 200
The API successfully processed the batch of messages and returned a status of 200, confirming successful receipt and synchronization.
Loading...