Skip to main content

Send a media message (image, video, document, audio) to a specified instance.

POST 

/message/sendMedia/:instanceName

Send a media message (image, video, document, audio) to a specified instance.

Request

Path Parameters

    instanceName stringrequired

    The name of the instance to which the media message should be sent.

    Example: codechat

Body

required
    number string

    The recipient's phone number.

    mediaMessage object
    mediatype stringrequired

    Possible values: [image, document, video, audio]

    Type of the media content.

    fileName string

    Name of the media file (optional).

    caption string

    Caption to accompany the media.

    media stringrequired

    URL of the media content.

    options object
    delay integer

    Delay time before sending the message.

    presence string

    Possible values: [composing, recording, paused]

    Indicates the sender's action/status.

Responses

Successful response

Schema
    any
Loading...