Skip to main content

Upsert Chat Operations

EVENT 

webhook

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

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[]
  • Array [
  • chatId string
    remoteJid string
    createdAt date-time
  • ]
  • event string

    Possible values: [chats.upsert]

Responses

Data was successfully processed by the API. The return of a 200 status confirms the seamless integration of the submitted chat data.

Loading...