Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 3.18 KB

File metadata and controls

59 lines (39 loc) · 3.18 KB

SendInboxMessageRequest

Properties

Name Type Description Notes
accountId String Social account ID
message String Message text [optional]
attachmentUrl String URL of the attachment to send (image, video, audio, or file). The URL must be publicly accessible. For binary file uploads, use multipart/form-data instead. [optional]
attachmentType AttachmentTypeEnum Type of attachment. Defaults to file if not specified. [optional]
voiceNote Boolean WhatsApp only. When `true` on an audio attachment, the message is sent as a voice message (PTT) — the recipient sees the waveform + voice-note UI instead of a basic audio attachment. The audio file MUST be `.ogg` encoded with the OPUS codec (mono) per Meta's voice-message contract; other formats are rejected by WhatsApp. Ignored for non-audio attachments. [optional]
quickReplies List<SendInboxMessageRequestQuickRepliesInner> Quick reply buttons. Mutually exclusive with buttons. Max 13 items. [optional]
buttons List<SendInboxMessageRequestButtonsInner> Action buttons. Mutually exclusive with quickReplies. Max 3 items. [optional]
template SendInboxMessageRequestTemplate [optional]
interactive SendInboxMessageRequestInteractive [optional]
replyMarkup SendInboxMessageRequestReplyMarkup [optional]
messagingType MessagingTypeEnum Facebook messaging type. Required when using messageTag. [optional]
messageTag MessageTagEnum Facebook message tag for messaging outside 24h window. Requires messagingType MESSAGE_TAG. Instagram only supports HUMAN_AGENT. [optional]
replyTo String Platform message ID to quote-reply to. For WhatsApp, pass the wamid (available in message.platformMessageId from webhooks). For Telegram, pass the Telegram message ID. [optional]
location SendInboxMessageRequestLocation [optional]
contacts List<SendInboxMessageRequestContactsInner> WhatsApp-only. Send one or more contact cards. [optional]

Enum: AttachmentTypeEnum

Name Value
IMAGE "image"
VIDEO "video"
AUDIO "audio"
FILE "file"

Enum: MessagingTypeEnum

Name Value
RESPONSE "RESPONSE"
UPDATE "UPDATE"
MESSAGE_TAG "MESSAGE_TAG"

Enum: MessageTagEnum

Name Value
CONFIRMED_EVENT_UPDATE "CONFIRMED_EVENT_UPDATE"
POST_PURCHASE_UPDATE "POST_PURCHASE_UPDATE"
ACCOUNT_UPDATE "ACCOUNT_UPDATE"
HUMAN_AGENT "HUMAN_AGENT"