Skip to main content

Send PTV

POST 

/api/v2/instance/:instanceId/send/ptv

Send PTV

This endpoint allows sending pre-recorded video (PTV) messages on a specific instance.

Request

Path Parameters

    instanceId stringrequired

    ID of the instance.

Body

required
    recipient Recipientrequired

    Contact number or group id

    options object
    delay Delay

    Defines the delay with which the message will be sent in milliseconds.

    quoteMessageById Quote Message

    Enter the id of the message to be quoted.

    groupMention object

    Mention the participants of a group.

    hidden Hidden

    Default value: true

    This parameter allows mentioning all members of a group without directly referencing them.

    everyone Everyone

    Default value: true

    Use this attribute to explicitly mention all members of a group.

    externalAttributes External Attributes

    An external value of any type that will be sent in the webhook.

    audioMessage object
    url Urlrequired

    WhatsApp-type audio sending

Responses

ResponseSendMessage

Schema
    messageId stringrequired
    keyId stringrequired
    keyFromMe booleanrequired
    keyRemoteJid stringrequired
    keyParticipant string
    pushName stringrequired
    contentType stringrequired
    isGroup booleanrequired
    content objectrequired
    source stringrequired
    messageTimestamp numberrequired
    createdAt date-timerequired

    Default value: 2023-12-13T17:55:01.032Z

    instanceInstanceId stringrequired

    Default value: 2023-12-13T17:55:01.032Z

    externalAttributes stringrequired
Loading...