Skip to Content
SettingsDeveloperMessage Formats

WhatsApp Message Formats

This guide provides a comprehensive reference of all supported WhatsApp message payload formats for the AeternityChat Developer API.

Send these payloads inside the messages array of the Send Bulk Messages API endpoint:

POST https://api.aeternity.chat/api/v1/developer/message/channel/:channel/connection/:connectionId

Message Envelope

Every message object in the messages array requires the following base envelope fields:

FieldTypeRequiredDescription
messaging_productstringYesMust be "whatsapp"
tostringYesRecipient phone number in international format with country code, without +, spaces, or dashes (e.g., 919876543210)
typestringYesType of message (text, image, video, audio, document, sticker, location, contacts, reaction, interactive, template)
recipient_typestringNoRecipient type. Defaults to "individual"

Quick Navigation

CategoryMessage TypetypeDescription
StandardTexttextPlain text with optional URL link previews
MediaImageimageJPG / PNG images with optional caption
MediaVideovideoMP4 / 3GPP videos with optional caption
MediaAudioaudioAAC, MP3, OGG audio / voice recordings
MediaDocumentdocumentPDF, DOC, XLS files with optional filename & caption
MediaStickerstickerWebP stickers (static or animated)
Location & ContactLocationlocationStatic GPS pin with name and address
Location & ContactContact CardcontactsFull vCard contact details
EngagementReactionreactionReact with emoji or remove reaction
InteractiveQuick Reply ButtonsinteractiveUp to 3 clickable reply buttons
InteractiveList MenuinteractiveInteractive menu with up to 10 options across sections
InteractiveCTA URL ButtoninteractiveCall-to-action button linking to an external website
InteractiveLocation RequestinteractivePrompts customer to share their live GPS location
InteractiveWhatsApp FlowinteractiveMulti-screen native interactive forms
InteractiveCall Permission RequestinteractiveRequests permission to place a WhatsApp voice call
InteractiveVoice Call ButtoninteractiveIn-chat WhatsApp voice calling button
InteractiveCarousel CardsinteractiveHorizontal swipeable cards (2–10 cards)
InteractiveAddress RequestinteractiveIn-chat structured address collection form
Interactive / CommerceOrder Details & PaymentsinteractiveNative checkout with Razorpay, PayU, Zaakpay, BillDesk, or UPI
CommerceSingle ProductinteractiveShowcase a single product from Meta Commerce Catalog
CommerceProduct ListinteractiveMulti-product catalog list categorized into sections
CommerceCatalog MessageinteractiveOpens entire Meta Commerce Catalog
TemplateTemplate MessagetemplatePre-approved Meta templates for 24h+ outreach

Standard Messages

Text Message

Send plain text messages. Supports emojis, bold (*text*), italic (_text_), strikethrough (~text~), and code formatting (```code```).

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "text", "text": { "preview_url": true, "body": "Hello! Thank you for contacting *AeternityChat*. Visit https://aeternity.chat for more info." } }

Fields

FieldTypeRequiredConstraintsDescription
text.bodystringYes1 to 65,000 charactersMain message text content
text.preview_urlbooleanNotrue or false (default false)Automatically generates a thumbnail and link preview if a valid URL is in body

Image Message

Send an image via a hosted public URL (link) or a previously uploaded media ID (id).

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "image", "image": { "link": "https://images.unsplash.com/photo-1579202673506-ca3ce28943ef", "caption": "Welcome to our summer festival! ☀️" } }

Fields

FieldTypeRequiredConstraintsDescription
image.linkstringOptional*Valid HTTP/HTTPS URLPublic URL of the image
image.idstringOptional*Media ID stringMedia ID from uploaded file
image.captionstringNoMax 1024 charactersOptional text caption beneath the image

* Exactly one of link or id must be provided. Supported formats: JPEG, PNG. Max file size: 5 MB.


Video Message

Send video files with optional text captions.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "video", "video": { "link": "https://example.com/media/product-walkthrough.mp4", "caption": "Here is a quick overview of how our automation works 🎬" } }

Fields

FieldTypeRequiredConstraintsDescription
video.linkstringOptional*Valid HTTP/HTTPS URLPublic URL of the video file
video.idstringOptional*Media ID stringUploaded media ID
video.captionstringNoMax 1024 charactersOptional video caption

Supported video formats: MP4 (H.264 video codec and AAC audio), 3GPP. Max file size: 16 MB.


Audio Message

Send audio recordings or voice messages.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "audio", "audio": { "link": "https://example.com/audio/greeting.mp3" } }

Fields

FieldTypeRequiredConstraintsDescription
audio.linkstringOptional*Valid HTTP/HTTPS URLPublic URL of the audio file
audio.idstringOptional*Media ID stringUploaded media ID

Supported audio formats: AAC, MP4, AMR, MP3, OGG (Opus codec for voice notes). Max file size: 16 MB.


Document Message

Send documents (PDFs, spreadsheets, presentations, invoices) with custom file names.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "document", "document": { "link": "https://example.com/docs/invoice_OCT2026.pdf", "filename": "Invoice_OCT2026.pdf", "caption": "Your monthly billing invoice from AeternityChat" } }

Fields

FieldTypeRequiredConstraintsDescription
document.linkstringOptional*Valid HTTP/HTTPS URLPublic URL of the document
document.idstringOptional*Media ID stringUploaded media ID
document.filenamestringNoMax 240 charactersCustom file name shown to the user on WhatsApp
document.captionstringNoMax 1024 charactersOptional text caption

Supported formats: PDF, DOCX, XLSX, PPTX, TXT, CSV, ZIP. Max file size: 100 MB.


Sticker Message

Send static or animated WhatsApp stickers.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "sticker", "sticker": { "link": "https://example.com/stickers/welcome.webp" } }

Constraints

  • Must be formatted as WebP (image/webp)
  • Dimensions: exactly 512x512 pixels
  • Max file size: 100 KB (static), 500 KB (animated)

Location Message

Send a specific geographic location pin on Google Maps.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "location", "location": { "latitude": 12.971598, "longitude": 77.594566, "name": "AeternityChat Headquarters", "address": "100 Feet Road, Indiranagar, Bengaluru, Karnataka 560038" } }

Fields

FieldTypeRequiredDescription
location.latitudenumber / stringYesLatitude of the location
location.longitudenumber / stringYesLongitude of the location
location.namestringNoName of the venue or point of interest
location.addressstringNoFull street address

Contact Card Message

Send one or multiple contact cards (vCards).

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "contacts", "contacts": [ { "name": { "formatted_name": "Jane Doe", "first_name": "Jane", "last_name": "Doe" }, "org": { "company": "AeternityChat Technologies", "department": "Customer Success", "title": "Senior Solutions Architect" }, "phones": [ { "phone": "+1 (555) 019-2834", "type": "WORK", "wa_id": "15550192834" } ], "emails": [ { "email": "[email protected]", "type": "WORK" } ], "urls": [ { "url": "https://aeternity.chat", "type": "WORK" } ], "addresses": [ { "street": "100 Tech Park Way", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "United States", "country_code": "US", "type": "WORK" } ] } ] }

Reaction Message

Add an emoji reaction to an existing message, or remove a previously sent reaction.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "reaction", "reaction": { "message_id": "wamid.HBgLMTE5ODc2NTQzMjEwFQIAERgSRjAzMzc3NkM1QzkzOEVBMTRBAA==", "emoji": "🎉" } }

Fields

FieldTypeRequiredDescription
reaction.message_idstringYesThe WhatsApp message ID (wamid) of the message to react to
reaction.emojistringYesSingle emoji character (e.g., "👍", "❤️", "🔥"). Provide an empty string "" to remove a reaction

Interactive Messages

Interactive messages give users an intuitive way to take action with buttons, menus, forms, and product selectors.

All interactive messages use "type": "interactive" at the top level and specify the interactive subtype in interactive.type.


Quick Reply Buttons

Send up to 3 clickable buttons. When tapped, the button title is sent back as a response.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "interactive", "interactive": { "type": "button", "header": { "type": "text", "text": "Support Request #4021" }, "body": { "text": "Your ticket has been marked as resolved. How would you rate your support experience today?" }, "footer": { "text": "Powered by AeternityChat" }, "action": { "buttons": [ { "type": "reply", "reply": { "id": "rating_great", "title": "😍 Great" } }, { "type": "reply", "reply": { "id": "rating_okay", "title": "😐 Okay" } }, { "type": "reply", "reply": { "id": "rating_bad", "title": "👎 Needs Help" } } ] } } }

Constraints

  • Buttons: Minimum 1, Maximum 3
  • Button ID: Maximum 256 characters (unique identifier sent in webhooks)
  • Button Title: Maximum 20 characters
  • Header Text: Maximum 60 characters (supports text or media: image, video, document)
  • Body Text: Maximum 1024 characters
  • Footer Text: Maximum 60 characters

List Menu Message

Presents a menu button that opens a structured picker list with up to 10 items organized across sections.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "interactive", "interactive": { "type": "list", "header": { "type": "text", "text": "AeternityChat Services" }, "body": { "text": "Please choose a department below to connect with the right specialist:" }, "footer": { "text": "Available Mon-Fri 9am-6pm IST" }, "action": { "button": "Select Department", "sections": [ { "title": "Sales & Onboarding", "rows": [ { "id": "dept_sales_enterprise", "title": "Enterprise Sales", "description": "Custom plans, volume discounts & SLA" }, { "id": "dept_sales_startup", "title": "Startup Program", "description": "Credits & launch assistance for early-stage teams" } ] }, { "title": "Technical Support", "rows": [ { "id": "dept_support_api", "title": "API & Webhook Help", "description": "Integration guidance and error troubleshooting" }, { "id": "dept_support_billing", "title": "Billing & Invoices", "description": "Payment queries, GST invoices & upgrades" } ] } ] } } }

Constraints

  • action.button: Maximum 20 characters (the text on the menu trigger button)
  • Sections: 1 to 10 sections
  • Section Title: Maximum 24 characters
  • Total Rows: Maximum 10 rows across all sections combined
  • Row Title: Maximum 24 characters
  • Row Description: Maximum 72 characters
  • Row ID: Maximum 200 characters

CTA URL Button

Send an interactive message with a single Call-to-Action button that opens an external website URL.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "interactive", "interactive": { "type": "cta_url", "header": { "type": "image", "image": { "link": "https://example.com/banner-summer-sale.jpg" } }, "body": { "text": "🎉 *Summer Festival Exclusive*: Enjoy 30% off on all annual plans for the next 48 hours!" }, "footer": { "text": "Use code SUMMER30 at checkout" }, "action": { "name": "cta_url", "parameters": { "display_text": "Claim Discount", "url": "https://aeternity.chat/pricing?promo=SUMMER30" } } } }

Fields

FieldTypeRequiredConstraintsDescription
action.parameters.display_textstringYesMax 20 charactersLabel displayed on the CTA button
action.parameters.urlstringYesValid URLTarget destination URL opened in browser

Location Request Message

Prompts the user with a native WhatsApp “Send Location” button to easily share their live or current GPS location.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "interactive", "interactive": { "type": "location_request_message", "body": { "text": "To find the nearest store and calculate express delivery time, please share your current location." }, "action": { "name": "send_location" } } }

WhatsApp Flow Message

Launch a native, multi-screen WhatsApp Flow / Form inside the chat. Ideal for bookings, surveys, KYC, lead capture, and appointment scheduling.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "interactive", "interactive": { "type": "flow", "header": { "type": "text", "text": "Schedule Consultation" }, "body": { "text": "Tap below to choose your preferred date, time slot, and meeting specialist:" }, "footer": { "text": "Instant confirmation via WhatsApp" }, "action": { "name": "flow", "parameters": { "flow_message_version": "3", "flow_token": "booking_session_user_89102", "flow_id": "893740284729103", "flow_cta": "Book Appointment", "flow_action": "navigate", "flow_action_payload": { "screen": "APPOINTMENT_SCREEN", "data": { "user_name": "Jane", "tier": "Premium" } } } } } }

Fields

FieldTypeRequiredDescription
flow_idstringYesPublished Flow ID from Meta Business Manager
flow_tokenstringYesUnique session or context token returned in the form response webhook
flow_ctastringYesText on the button that launches the flow (e.g. "Open Form")
flow_message_versionstringYesFlow protocol version ("3")
flow_actionstringYesAction type (usually "navigate")
flow_action_payloadobjectNoInitial screen identifier (screen) and input data passed to the form
modestringNoSet to "draft" when testing unapproved/unpublished flows

Call Permission Request

Requests permission from the recipient to receive incoming voice calls on WhatsApp.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "interactive", "interactive": { "type": "call_permission_request", "body": { "text": "Our customer success manager is available to assist you with your setup. May we place a voice call to you now?" }, "action": { "name": "call_permission_request" } } }

Voice Call Button

Provides a direct in-chat button enabling the user to start a WhatsApp voice call with your business.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "interactive", "interactive": { "type": "voice_call", "header": { "type": "text", "text": "Priority Support Ready" }, "body": { "text": "Your dedicated engineer is online and waiting on the line." }, "action": { "name": "voice_call", "parameters": { "display_text": "Call Support", "ttl_minutes": 30, "payload": "session_ticket_89412" } } } }

Send a horizontal swipeable carousel containing between 2 and 10 media cards, each equipped with its own CTA URL or Quick Reply buttons.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "interactive", "interactive": { "type": "carousel", "body": { "text": "🌟 Explore our featured software plans:" }, "action": { "cards": [ { "card_index": 0, "type": "cta_url", "header": { "type": "image", "image": { "link": "https://example.com/cards/starter-plan.png" } }, "body": { "text": "*Starter Plan* — Ideal for emerging teams & side projects." }, "action": { "name": "cta_url", "parameters": { "display_text": "View Starter", "url": "https://aeternity.chat/plans/starter" } } }, { "card_index": 1, "type": "cta_url", "header": { "type": "image", "image": { "link": "https://example.com/cards/pro-plan.png" } }, "body": { "text": "*Pro Plan* — Advanced automations, unlimited workflows & AI." }, "action": { "name": "cta_url", "parameters": { "display_text": "View Pro", "url": "https://aeternity.chat/plans/pro" } } } ] } } }

Constraints

  • Cards array: Minimum 2 cards, maximum 10 cards
  • Card header: Supported media: image or video with a direct URL
  • Card body text: Maximum 160 characters per card

Address Request Message

Sends a native in-chat form prompting the user to select or input a structured delivery address.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "interactive", "interactive": { "type": "address_message", "body": { "text": "Please provide your delivery address for order dispatch:" }, "action": { "name": "address_message", "parameters": { "country": "IN", "name": "Rahul Sharma", "phone_number": "919876543210", "in_pin_code": "560038", "city": "Bengaluru", "state": "Karnataka" } } } }

Fields

FieldTypeRequiredDescription
countrystringYes2-letter ISO country code ("IN", "US", etc.)
namestringNoPre-filled customer recipient name
phone_numberstringNoPre-filled customer phone number
in_pin_codestringNo6-digit postal code (India)
city / statestringNoPre-filled city and state
house_number / building_name / addressstringNoAddress line details

Order Details & Payments

Send an in-chat checkout message allowing customers to review items and make direct payments through Razorpay, PayU, Zaakpay, BillDesk, or a UPI Intent Link.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "interactive", "interactive": { "type": "order_details", "body": { "text": "Your order is ready. Tap below to review items and complete payment securely:" }, "footer": { "text": "100% Secure Checkout powered by AeternityChat" }, "action": { "name": "review_and_pay", "parameters": { "reference_id": "ORD_REF_20261001_001", "type": "digital-goods", "currency": "INR", "total_amount": { "value": 49900, "offset": 100 }, "payment_settings": [ { "type": "payment_gateway", "payment_gateway": { "type": "razorpay", "configuration_name": "razorpay_aeternity_main", "razorpay": { "receipt": "rcpt_98214", "notes": { "application": "aeternitychat", "integration": "whatsapp" } } } } ], "order": { "status": "pending", "items": [ { "retailer_id": "SKU_PRO_1M", "name": "AeternityChat Pro Subscription (1 Month)", "amount": { "value": 49900, "offset": 100 }, "quantity": 1 } ], "subtotal": { "value": 49900, "offset": 100 }, "tax": { "value": 0, "offset": 100, "description": "Includes GST" } } } } } }

Amounts & Offsets: All financial values are expressed as integers with an offset. For INR (currency: "INR"), offset is always 100 (e.g., 49900 with offset 100 represents ₹499.00). total_amount.value must exactly equal subtotal + tax + shipping - discount.

To accept payments directly via UPI apps (Google Pay, PhonePe, Paytm, BHIM):

"payment_settings": [ { "type": "upi_intent_link", "upi_intent_link": { "link": "upi://pay?pa=merchant@icici&pn=AeternityChat&am=499.00&cu=INR&tn=Pro%20Plan%20Payment" } } ]

Commerce & Product Messages

Meta Commerce Catalog integration enables seamless shopping experiences within WhatsApp.

Single Product Message

Displays a specific product card with price, image, and description pulled directly from your Meta Catalog.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "interactive", "interactive": { "type": "product", "body": { "text": "Check out this featured smart watch:" }, "footer": { "text": "In Stock • Free Next-Day Delivery" }, "action": { "catalog_id": "184920482019482", "product_retailer_id": "SKU_WATCH_GT4_BLACK" } } }

Product List Message

Displays a multi-product catalog selector organized into categories/sections.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "interactive", "interactive": { "type": "product_list", "header": { "type": "text", "text": "Autumn Gadgets" }, "body": { "text": "Tap below to browse our latest arrivals:" }, "footer": { "text": "Limited festival discounts available" }, "action": { "catalog_id": "184920482019482", "sections": [ { "title": "Smart Watches", "product_items": [ { "product_retailer_id": "SKU_WATCH_GT4_BLACK" }, { "product_retailer_id": "SKU_WATCH_GT4_SILVER" } ] }, { "title": "Audio & Earbuds", "product_items": [ { "product_retailer_id": "SKU_EARBUDS_PRO_ANC" } ] } ] } } }

Catalog Message

Sends a prompt that opens your complete Meta product catalog.

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "interactive", "interactive": { "type": "catalog_message", "body": { "text": "Browse our full product catalog and place your order directly on WhatsApp:" }, "footer": { "text": "Tap to view catalog" }, "action": { "name": "catalog_message" } } }

Template Messages

Template messages allow you to initiate conversations with customers outside the 24-hour service window. Templates must be approved in advance by Meta.


Basic Text Template with Variables

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "template", "template": { "name": "order_confirmation_v2", "language": { "code": "en_US" }, "components": [ { "type": "body", "parameters": [ { "type": "text", "text": "John Doe" }, { "type": "text", "text": "ORD-98214" }, { "type": "text", "text": "₹1,499.00" } ] } ] } }

Template with Media Header & Named Parameters

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "template", "template": { "name": "shipping_update_media", "language": { "code": "en" }, "components": [ { "type": "header", "parameters": [ { "type": "image", "image": { "link": "https://example.com/delivery/status-shipped.png" } } ] }, { "type": "body", "parameters": [ { "type": "text", "parameter_name": "customer_name", "text": "Jane" }, { "type": "text", "parameter_name": "carrier_name", "text": "BlueDart Express" }, { "type": "text", "parameter_name": "tracking_number", "text": "BLU981249124" } ] } ] } }

Template with Interactive Buttons (URL, Quick Reply, Coupon Code, Flow)

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "919876543210", "type": "template", "template": { "name": "festival_promo_offer", "language": { "code": "en_US" }, "components": [ { "type": "header", "parameters": [ { "type": "image", "image": { "link": "https://example.com/promos/festive2026.jpg" } } ] }, { "type": "body", "parameters": [ { "type": "text", "text": "Priya" }, { "type": "text", "text": "25%" } ] }, { "type": "button", "sub_type": "url", "index": 0, "parameters": [ { "type": "text", "text": "priya_festive_25" } ] }, { "type": "button", "sub_type": "COPY_CODE", "index": 1, "parameters": [ { "type": "coupon_code", "coupon_code": "FESTIVE25" } ] }, { "type": "button", "sub_type": "quick_reply", "index": 2, "parameters": [ { "type": "payload", "payload": "UNSUBSCRIBE_PROMOS" } ] } ] } }

Batch Sending Example (Multiple Message Formats in 1 Call)

You can mix and match different formats in the messages array of a single API call (up to 100 messages):

curl --request POST \ --url "https://api.aeternity.chat/api/v1/developer/message/channel/whatsapp/connection/YOUR_CONNECTION_ID" \ --header "Content-Type: application/json" \ --header "x-aeternitychat-key: YOUR_API_KEY" \ --data '{ "messages": [ { "messaging_product": "whatsapp", "to": "919876543210", "type": "text", "text": { "body": "Hello John, welcome to AeternityChat!" } }, { "messaging_product": "whatsapp", "to": "919876543211", "type": "interactive", "interactive": { "type": "button", "body": { "text": "Would you like a live product walkthrough?" }, "action": { "buttons": [ { "type": "reply", "reply": { "id": "demo_yes", "title": "Yes, please" } }, { "type": "reply", "reply": { "id": "demo_no", "title": "Not right now" } } ] } } } ] }'

Summary of Media & Parameter Limitations

TypeFormats / CodecsMax SizeKey Constraints
ImageJPEG, PNG5 MBLink or Media ID
VideoMP4, 3GPP (H.264 + AAC)16 MBLink or Media ID
AudioAAC, MP4, AMR, MP3, OGG (Opus)16 MBVoice & audio files
DocumentPDF, DOCX, XLSX, PPTX, TXT, CSV, ZIP100 MBOptional filename & caption
StickerWebP100 KB (static) / 500 KB (animated)Exactly 512x512 pixels
Quick Reply Buttons——1–3 buttons, title max 20 chars
List Menu——Max 10 rows across all sections, button label max 20 chars
Carousel Cards——2–10 cards, card body max 160 chars
WhatsApp Flow——Protocol version "3", requires valid flow_id
Payment OrdersINR—offset: 100, total amount must match line items