Skip to main content

Upsert Contacts Operations

EVENT 

webhook

This endpoint allows the submission of a batch containing all the contacts from the connected WhatsApp account. It's designed to either insert new contacts or update existing ones, ensuring that the system remains synchronized with the latest contact data.

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 [
  • contactId string
    pushName string
    remoteJid string
    pictureUrl string
    createdAt date-time
  • ]
  • event string

    Possible values: [contacts.upsert]

Responses

The API has successfully processed the provided contact data, returning a 200 status to acknowledge the successful receipt.

Loading...