Skip to main content

Prepare Media for Download

EVENT 

webhook

This endpoint is triggered to notify that the media file has been processed and is now ready for download.

Request

Header Parameters

    x-businessId stringrequired

    Identificador do negócio

    x-instanceId stringrequired

    Identificador da instanceia

    x-whatsappId stringrequired

    Identificador do whatsapp conectado

Body

    event string

    Possible values: [prepared.media]

    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
    mediaId string
    size integer
    filename string
    mimetype string

Responses

The API successfully acknowledged the notification, returning a 200 status to confirm the successful receipt.

Loading...