Send WhatsApp text (Meta)
POST
https://app.sendapp.ai/api/whatsapp-meta/send
Send a free-text message through Meta's WhatsApp Cloud API (
type=freetext). You can attach a media file, add up to 3 quick-reply buttons, or add one button that opens a link. 24-hour window: free-text messages can only be sent within 24 hours of the customer's last message. Outside this window you must use an approved template.
A message can carry either up to 3 quick-reply buttons (
buttons) or one link button (url_button): WhatsApp does not allow both together. With url_button, any media becomes the message header (image, video or document, not audio).Parameters
12 · 4 required
apikey
required
Your API Key.
token
required
Account token.
number
required
Recipient number in international format without + (e.g. 1234567890).
type
required
Must be
freetext.
message
optional
Message text (or caption if you attach a media file). Required if you do not pass a media file.
media_url
optional
Public URL of the file to attach.
media_type
optional
Media type:
image, video, audio or document. Required if you pass media_url.
file_name
optional
File name (only for documents).
header
optional
Header text, max 60 characters (for messages with buttons).
footer
optional
Footer text, max 60 characters (for messages with buttons).
buttons
optional
Array of quick-reply buttons, max 3. Each button has an
id and a title (max 20 characters).
url_button
optional
A button that opens a link: an object with
display_text (button label, max 20 characters) and url (http or https only). Requires message; cannot be combined with buttons.
Need help with the integration? info@sendapp.live