Upsert Message Data
EVENTwebhook
This endpoint is triggered when a new message is received on the connected WhatsApp account. It serves to either insert new messages or update existing ones, ensuring real-time synchronization with the platform.
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
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.upsert
]
Responses
- 200
The API successfully processed the message data and returned a status of 200, confirming successful receipt and update.
Loading...