Skip to main content

Payload examples for send single message

The following examples demonstrate the supported message payload formats, including text, media, interactive, address, and product messages.

Sending a text message

{
"contactIdentifier": "+919900990090",
"medium": "whatsapp",
"type": "text"
"payload": {
"message": "This is a test message."
}
}

Sending an image message

{
"contactIdentifier": "+919900990090",
"medium": "whatsapp",
"type": "image"
"payload": {
"type": "image",
"media": {
"mediaLink": "https://testimageurl.com/testimage.png",
"caption": "Image message"
}
}
}

Sending a video message

{
"contactIdentifier": "+919900990090",
"medium": "whatsapp",
"type": "video"
"payload": {
"type": "video",
"media": {
"mediaLink": "https://testimageurl.com/testimage.mp4",
"caption": "Video message"
}
}
}

Sending a document message

{
"contactIdentifier": "+919900990090",
"medium": "whatsapp",
"type": "document"
"payload": {
"type": "document",
"media": {
"mediaLink": "https://testimageurl.com/testimage.pdf",
"caption": "Document message"
}
}
}

Sending a message with list/option buttons

{
"contactIdentifier": "+919900990090",
"medium": "whatsapp",
"type": "options"
"payload": {
"type": "options",
"body": "Test options message",
"headerTitle": "headerTitle",
"footerTitle": "footerTitle",
"section": {
"buttonTitle": "buttonTitle",
"sectionTitle": "sectionTitle",
"payload": [
{
"id":"12345",
"name":"option 1",
}
]
}
}
}

Sending a message with QRB buttons

{
"contactIdentifier": "+919900990090",
"medium": "whatsapp",
"type": "buttons"
"payload": {
"type": "buttons",
"body": "Test button message",
"headerTitle": "headerTitle",
"footerTitle": "footerTitle",
"section": {
"buttonTitle": "buttonTitle",
"sectionTitle": "sectionTitle",
"payload": [
{
"id":"12345",
"name":"option 1",
}
]
},
"header": {
"type": "image",
"image": {
"mediaLink": "https://testimageurl.com/testimage.png"
}
}
}
}

Sending a message with address

{
"contactIdentifier": "+919900990090",
"medium": "whatsapp",
"type": "address"
"payload": {
"message": "Test is a address message",
"address": {
"id": "1234";
"name": "Test";
"phone_number": "+919909909990";
"pin_code": "110001";
"floor_number": "1";
"building_name": "Apartment";
"address": "5th cross";
"landmark_area": "Near temple";
"city": "Bengaluru";
"country": "IN";
}
}
}

Sending a message with single product

{
"contactIdentifier": "+919900990090",
"medium": "whatsapp",
"type": "single_product"
"payload": {
"message": "Test message"
"footerText":"footerText",
"catalogId":"1234567890",
"variantId":"898989"
}
}

Sending a message with multiple products

{
"contactIdentifier": "+919900990090",
"medium": "whatsapp",
"type": "multiple_product"
"payload": {
"message": "Test message"
"catalogId": "1234567890",
"sections": [
{
"title": "hello",
"variantIds": [
"67676789898",
"45454588665"
]
},
{
"title": "hii",
"variantIds": [
"1234567890",
"2134567890"
]
}
],
"headerText": "header text",
"footerText": "footer text"
}
}

BikTextMessagePayload type

NameTypeRequired/OptionalDescription
messagestringRequiredThe text content of the message
hasPreviewUrlbooleanOptionalWhether the message contains a URL that should render a link preview

BikMediaMessagePayload type

NameTypeRequired/OptionalDescription
typestringRequiredThe media type: image, video, or document
mediaBikMediaMessageObjectRequiredThe media object containing the file details

BikMediaMessageObject type

NameTypeRequired/OptionalDescription
mediaLinkstringRequiredURL of the media file
captionstringOptionalCaption text displayed with the media
fileNamestringOptionalFile name for the media attachment

BikInteractiveMessagePayload type

NameTypeRequired/OptionalDescription
typestringRequiredThe interactive message type: options or buttons
bodystringRequiredThe body text of the message
headerTitlestringRequiredThe header title text
footerTitlestringRequiredThe footer title text
sectionBikInteractiveActionRequiredThe interactive action configuration
headerBikInteractiveHeaderOptionalThe header media configuration

BikInteractiveAction type

NameTypeRequired/OptionalDescription
buttonTitlestringOptionalThe display title of the button
sectionTitlestringOptionalThe display title of the section
payloadBikInteractiveActionPayload[]RequiredArray of selectable action items

BikInteractiveActionPayload type

NameTypeRequired/OptionalDescription
idstringRequiredUnique identifier for the action item
namestringRequiredDisplay name of the action item

BikInteractiveHeader type

NameTypeRequired/OptionalDescription
typestringRequiredThe media type: image, video, or document
(image, video, document)BikMediaMessageObjectRequiredThe media object for the header

BikAddressMessagePayload type

NameTypeRequired/OptionalDescription
messagestringRequiredThe message text accompanying the address
addressAddressRequiredThe address object

Address type

NameTypeRequired/OptionalDescription
idstringRequiredUnique identifier for the address
namestringRequiredRecipient name
phone_numberstringRequiredContact phone number
pin_codestringRequiredPostal or PIN code
floor_numberstringRequiredFloor number
building_namestringRequiredBuilding or apartment name
addressstringRequiredStreet address
landmark_areastringRequiredNearby landmark or area
citystringRequiredCity name
countrystringRequiredCountry code (e.g., IN)

BikProductMessagePayload type

NameTypeRequired/OptionalDescription
messagestringRequiredThe message text accompanying the product
footerTextstringOptionalFooter text displayed below the product
headerTextstringOptionalHeader text displayed above the product
catalogIdstringRequiredThe product catalog identifier
variantIdstringOptionalThe specific product variant identifier (for single product messages)
sectionsBikProductSectionOptionalArray of product sections (for multiple product messages)

BikProductSection type

NameTypeRequired/OptionalDescription
titlestringRequiredThe section heading
variantIdsstring[]RequiredArray of product variant identifiers in this section