Upsert Chat Operations
EVENTwebhook
This endpoint is triggered when there's a new chat initiation or when particular actions on existing chats occur, such as archiving or unarchiving. It serves to synchronize the chat state, ensuring that the system is updated with the most recent chat actions.
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[]
chatId string
remoteJid string
createdAt date-time
event string
Possible values: [chats.upsert
]
Responses
- 200
Data was successfully processed by the API. The return of a 200 status confirms the seamless integration of the submitted chat data.
Loading...