Wawp WhatsApp API
HomePricing
HomePricing
WhatsApp
API Status
  1. 📤 Send Messages
  • ⛓️‍💥 Session - instances
    • Wawp’s Session Lifecycle
    • Create new Session
      POST
    • Start Session
      POST
    • Stop Session
      POST
    • Restart Session
      POST
    • Delete Session
      DELETE
    • Logout Session
      POST
    • Get Session info
      GET
    • About WhatsApp Data
      GET
  • 📲 Authentication - Login
    • About login authentication
    • GET QR raw
      GET
    • GET QR image
      GET
    • Request code
      POST
    • Get a live screenshot
      GET
  • 📤 Send Messages
    • Send Messages
    • Send Text
      POST
    • Send Image
      POST
    • Send PDF
      POST
    • Send Voice
      POST
    • Send video
      POST
    • Send Link Preview
      POST
    • Send Location
      POST
    • Send poll
      POST
    • Send Contact Vcard
      POST
    • Mark message(s) as seen
      POST
    • Start typing
      POST
    • Stop typing
      POST
    • Reaction
      PUT
    • Star/unstar a message
      PUT
  • ℹ️ Whatsapp Profile info
    • WhatsApp Profile Info
    • Get profile
    • Set display‑name
    • Set “About” status
    • Upload Whatsapp picture
    • Delete profile picture
  • 📢 Channels Control
    • Get list of know channels
    • Create a new channel.
    • Get channel info
    • Delete channel
    • Preview channel messages
    • Follow a channel
    • Unfollow a channel
    • Mute a channel
    • Unmute a channel
    • Search channels — by view
    • Search channels — by text
    • Search metadata — views / countries / categories
  • 🟢 Presence information
    • Presence API
    • Set session presence
    • Get the presence for the chat id
  • 🔊 24 Hour Status
    • Text status
    • Image status
    • Voice status
    • Video status
    • Delete status
  • 💬 Chats
    • Chats list & overview
    • chats overview
    • chats overview
    • Delete the chat
    • Get chat picture
    • Get messages in the chat.
    • Clear all messages from the chat.
    • Mark unread messages as read.
    • Get message by id
    • Delete a message
    • Edit a text message
    • Pin a message
    • Unpin a message
    • Archive the chat
    • Unarchive the chat
    • Mark chat as unread
  • 🪪 Contacts
    • Get all contacts
    • Get basic contact info
    • Check phone is on WhatsApp
    • Get contact “about”
    • Get contact profile picture (24h cache; add refresh=true to bust)
    • Block contact
    • Unblock contact
    • Create/Update contact on phone address book
    • Get all known lids to phone number mapping
    • Get the number of known lids
  • 👥 Groups
    • Get All List groups
    • Create a group
    • Join info (by code or URL)
    • Join group
    • Get the number of groups
    • Refresh groups from the server
    • Get the group
    • Delete the group
    • Leave the group
    • Get group picture
    • Set group picture
    • Delete group picture
    • Updates the group description
    • Updates the group subject
    • Updates the group "info admin only" settings
    • Update settings - who can send messages
    • Get settings - who can send messages
    • Set messages admin only
    • Get the invite code for the group
    • Invalidates the current group invite code and generates a new one
    • Get participants
    • Add participants
    • Remove participants
    • Promote participants to admin users
    • Demotes participants to regular users
  • 🏷️ Labels
    • Labels API
    • GET all labels
    • Create label
    • Update label
    • DELETE label
    • labels for a chat
    • Save labels for a chat
    • Chats with a label
  • 🪝 Webhooks
    • Wawp’s Webhook API
    • session.status
    • message
    • message.reaction
    • message.any
    • message.ack
    • message.revoked
    • message.edited
    • group.v2.join
    • group.v2.leave
    • group.v2.update
    • group.v2.participants
    • presence.update
    • poll.vote.failed
    • chat.archive
    • call.received
    • call.accepted
    • call.rejected
    • label.upsert
    • label.deleted
    • label.chat.added
    • label.chat.deleted
    • event.response
    • event.response.failed
    • engine.event
  1. 📤 Send Messages

Send Messages

Send text or media to a single WhatsApp user, group, or channel.
By centralizing text, media, and chat actions behind a consistent, hardened proxy, Wawp makes messaging reliable, efficient, and safe for production.
Whats_App_Group_Feature_a8156ed83c.webp

Request Body#

{
  "instance_id": "string",          // Your instance identifier
  "access_token": "string",         // API access token
  "chatId": "string",               // Recipient identifier (see formats below)
  "text": "Hello world!",           // Optional. Message text
  "file": {                          // Optional. Media payload
    "data": "base64string",         // OR
    "url": "https://example.com/photo.jpg"
  },
  "reply_to": "false_111...AAAA"    // Optional. ID of the message you are replying to
}

Field Descriptions#

FieldTypeRequiredDescription
instance_idstring✔️Your unique instance identifier.
access_tokenstring✔️Secret token generated for the instance.
chatIdstring✔️Recipient address. See Chat ID Formats.
textstring✔️Plain‑text body of the message. Omit when sending media‑only messages.
file.datastring (base64)✔️Base64‑encoded media payload. Provide either file.data or file.url.
file.urlstring (URL)✔️HTTPS URL to a publicly accessible file.
reply_tostring❌ID of the message you wish to reply to.

Chat ID Formats#

ContextExampleNotes
User12132132131@c.usInternational phone number (E.164) without the leading +, suffixed with @c.us.
Group12312312123133@g.usGroup IDs end with @g.us.
Hidden user123123123@lidInternal user ID introduced with Communities.
Channel123123123@newsletterWhatsApp Channels (📰).

Sending Media (file)#

You can attach media in one of two mutually exclusive ways:
1.
Inline Base64
"file": {
  "data": "iVBORw0KGgoAAA..."
}
2.
Remote URL
"file": {
  "url": "https://cdn.example.com/banner.jpg"
}
Note: The URL must be publicly reachable by the API server.

Replying to a Message#

Include the reply_to field to create a threaded reply:
"reply_to": "false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA"

Example – Send an Image#

{
  "instance_id": "123456789",
  "access_token": "123456789",
  "chatId": "12132132130@c.us",
  "file": {
    "url": "https://example.com/photo.jpg"
  },
  "reply_to": "false_12132132130@c.us_BBBBBBBBBBBBBBBBBBBB"
}

Success Response#

{
  "result": true,
  "message_id": "true_12132132130@c.us_CCCCCCCCCCCCCCCCCCCC"
}

Additional Notes#

Every call consumes one send‑message quota unit.
Audio files with .mp3 or .ogg extensions are treated as voice notes.
The maximum file size is 64 MB.
Security-conscious defaults (no logging of secrets, size/type guards) protect users and decrease incident response friction.
Modified at 2025-09-10 22:13:02
Previous
Get a live screenshot
Next
Send Text
Built with