🧰 open-wa API Explorer

Session: calling-live-20261022 · Base URL: http://127.0.0.1:8132/api

⚡ Commands 154

MethodNamespaceDescription
sendSticker messages Turn an image or video into a sticker, apply optional effects and author and pack labels, and send it. Resolves to the message ID once WhatsApp accepts it, not a delivery receipt. If the outcome is unknown, check the chat before you retry.
sendAlbum messages Sends images and videos together as a native WhatsApp album with one caption on its first item. GIFs use MP4 video data with isGif: true. Documents are rejected. Phone-number IDs are resolved to LIDs; the destination chat must already be loaded and allow sending. WhatsApp controls the minimum item count and upload limits. Runtime failures include the parent and submitted child IDs when available; inspect the chat before retrying.
sendText messages Send a text message to a chat. Starting a chat with a number that has never messaged you needs a Restricted or Premium license.
sendTextWithMentions messages Sends a text message that includes @mentions
sendReplyWithMentions messages Sends a reply to a message that includes @mentions
sendPaymentRequest messages Sends a payment request message
sendImage messages Send an image or video, or any other media file, as a WhatsApp attachment. Options set the caption, view once, GIF playback or a round video note. Media is sent as is, without conversion. Resolves to the send result, not a delivery receipt.
sendFile messages Sends an image, video, audio file or document using MIME detection or an explicit typed presentation. Incompatible options are rejected before sending. Media is not transcoded.
sendAudio messages Sends an audio attachment with an optional quoted message. Use sendPtt for voice notes and view-once audio.
sendPtt messages Sends prepared audio as a voice note, optionally view once. It does not transcode the input; use suitable voice-note audio such as Ogg Opus.
sendVideoAsGif messages Sends MP4 video with WhatsApp GIF playback. GIF is a video presentation flag; this method does not convert a GIF image or transcode video.
sendLocation messages Sends a location to a chat
sendVCard messages Sends a contact card (vCard)
sendContact messages Sends a single contact
sendMultipleContacts messages Sends multiple contacts
sendButtons messages Sends a button message (deprecated)
sendAdvancedButtons messages Sends an advanced button message with media (deprecated)
sendListMessage messages Sends a list/menu message (deprecated)
sendPoll messages Send a poll with a selection limit, an optional quoted message, an optional closing time in Unix milliseconds and optionally hidden voter names. Closing times and hidden names only work where WhatsApp supports them for the sending account and chat.
voteOnPoll messages Votes using option IDs returned by getPollResults; an empty array removes the current vote. The poll must be open and allow this account to vote.
getPollResults messages Get the current counts, choices and votes for a poll. Polls with hidden voters leave out voter identities and the votes array, and very recent votes may not appear yet.
pinMessage messages Pins a message in its chat for everyone, subject to native permissions. This differs from pinChat, which changes the current account chat list.
unpinMessage messages Removes a message pin for everyone, subject to native chat permissions.
sendBanner messages Sends a banner image
sendYouTubeLink messages Sends a YouTube link with auto-generated preview
sendLinkWithAutoPreview messages Sends a link with auto-generated preview
sendMessageWithThumb messages Sends a link preview message with custom thumbnail
forwardMessages messages Forwards messages to a chat
deleteMessage messages Deletes a message
getMessageById messages Retrieves a specific message by ID
getAlbumMessages messages Returns currently loaded image and video messages associated with an album, including GIF videos. The album can arrive before its media, so the array may be incomplete. Returns false if the album is not loaded or the ID belongs to another message type.
getAllMessages messages Retrieves all messages in the session
getMyLastMessage messages Get last message sent by host
getStarredMessages messages Get starred messages
getUnsentMessages messages Get unsent/pending messages
getMessageInfo messages Get message delivery info
getVCards messages Extract vCards from message
getMessagesForLLM messages Get messages formatted for LLMs
starMessage messages Star a message
unstarMessage messages Unstar a message
editMessage messages Edit the text of a message you sent
react messages React to message with emoji
sendSeen messages Mark message as seen
loadEarlierMessages messages Loads earlier messages from a chat
sendFileFromUrl messages Downloads media and sends it through sendFile with the same typed presentation options.
getAllChats chats Returns serialized Chat objects from the current session, optionally limited to chats with unread messages.
getAllChatIds chatIds Get all chat IDs
getChat chats Get specific chat by ID
getChatWithNonContacts chats Get chats with non-contacts
archiveChat chats Archive a chat
unarchiveChat chats Unarchive a chat
clearChat chats Clear chat history
deleteChat chats Delete a chat
pinChat chats Pin a chat
unpinChat chats Unpin a chat
muteChat chats Mute a chat
unmuteChat chats Unmute a chat
markAsRead chats Mark chat as read
markAsUnread chats Mark chat as unread
setChatEphemeral chats Set ephemeral messages for chat
isChatOnline chats Check if chat is online
requestPhoneNumber contacts Ask a direct LID chat to voluntarily share their phone number. A submitted request does not confirm sharing.
sharePhoneNumber contacts Share the logged-in account’s own phone number in a one-to-one chat that only shows a LID. You can’t share any other number.
getAllContacts contacts Retrieves all contacts
getContact contacts Get specific contact
getCommonGroups contacts Get common groups with contact
getNumberProfile contacts Get profile of number
getBlockedIds contacts Get blocked contact IDs
blockContact contacts Block a contact
unblockContact contacts Unblock a contact
checkReadReceipts contacts Check read receipts setting
checkNumberStatus contacts Check if number is on WhatsApp
getProfilePicture contacts Get profile picture from server
getGroupMembers groups Retrieves members of a group
getAllGroups groups Get all groups
getGroupMembersId groups Get group member IDs
getGroupInfo groups Get a group title and description
getGroupAdmins groups Get group admins
getKickedGroups groups Get groups where kicked
getGroupInviteLink groups Get group invite link
createGroup groups Create new group
leaveGroup groups Leave a group
joinGroupViaLink groups Join group via invite link
revokeGroupInviteLink groups Revoke group invite link
setGroupTitle groups Set group title
setGroupDescription groups Set group description
setGroupIcon groups Set group icon
setGroupToAdminsOnly groups Restrict group to admins only
setGroupEditToAdminsOnly groups Restrict group editing to admins only
addParticipant groups Add participant to group
removeParticipant groups Remove participant from group
promoteParticipant groups Promote participant to admin
demoteParticipant groups Demote participant from admin
approveGroupJoinRequest groups Approve group join request
rejectGroupJoinRequest groups Reject group join request
getAllCommunities communities Get all communities
getCommunityInfo communities Get community metadata
getCommunityParticipantIds communities Get community participant IDs
getCommunityAdminIds communities Get community admin IDs
getCommunityParticipants communities Get community participants
getCommunityAdmins communities Get community admins
postTextStatus status Post text status
postImageStatus status Post image status
postVideoStatus status Post video status
getStories status Get all stories
getStatus mystatus Get specific status
deleteStatus status Delete status
deleteAllStatus status Delete all statuses
getAllLabels labels Get all labels
getChatsByLabel labels Get chats by label
addLabel labels Add label to chat
removeLabel labels Remove label from chat
getBusinessProfile business Get business profile
getBusinessProducts business Get business products
getOrder business Get order details
getMe session Get host account info
getHostNumber session Get host phone number
getConnectionState session Get connection state
getWAVersion session Get WhatsApp Web version
getBatteryLevel session Get phone battery level
isPlugged session Check if phone is charging
getFeatures session Get enabled features
getLicenseType session Get license type
getLicenseFeatures session List which licensed features your license key turns on. Each method still checks availability when you call it.
getUserAgent session Get user agent
getProcessStats session Get process statistics
getLoadedMessageCount session Get loaded message count
getSnapshot session Take screenshot
healthCheck session Health check
setMyName session Set host name
setMyStatus session Set host status
setProfilePicture session Set profile picture
decryptMedia media Decrypts media from a message
downloadMedia media Downloads and decrypts media from a message to a file
sendInteractive messages Send a portable interactive message document (Insiders and above)
sendRawMessage messages Send a constructed WhatsApp protobuf Message payload (Insiders and above); media must already be uploaded
getCallCapabilities calls Optional calling availability for UI and diagnostics. Actions perform admission automatically.
getActiveCall calls Get the current call, if there is one. In the SDK the result also has methods to control the call.
acceptCall calls Prepare media and accept this incoming call.
startCall calls Prepare media and place an outgoing audio or video call.
rejectCall calls Reject an incoming call and wait for WhatsApp to confirm it.
endCall calls Request hangup for this call.
muteCall calls Mute or unmute the microphone without ending reception.
clearCallAudio calls Discard queued outgoing audio.
setCallMedia calls Prepare a replacement before releasing the working media.
observeCallAudio calls Attach an isolated receive-only audio sink. Its failure does not interrupt the call owner.
stopCallAudioObserver calls Stop an audio observer and finalize its sink.
sendEvent events Send a native WhatsApp event with Unix-second times. Returns its submitted message ID; delivery is observed through ACKs.
getEvent events Retrieve an event by message ID from WhatsApp local history. Returns null when absent.
getEvents events Page through a chat’s locally synced event history, newest first. Pass nextCursor as options.before to retrieve the next page.
getEventResponses events Get the latest decrypted RSVP per participant, including responses persisted in WhatsApp local history.
editEvent events Edit an event created by this account. Unspecified fields retain their current values; endTime: null removes the end time.
cancelEvent events Cancel an event created by this account using WhatsApp’s encrypted event edit action.
respondToEvent events Send your RSVP to a WhatsApp event.

📡 Listeners 17

EventLegacy AliasNamespaceDescription
message onMessage messages Fired when a new message is received (excluding own messages)
anyMessage onAnyMessage messages Fired for any message including own messages
messageDeleted onMessageDeleted messages Fired when a message is deleted
ack onAck messages Fired when a message acknowledgment is received
reaction onReaction messages Fired when a reaction is added to a message
interactiveResponse onInteractiveResponse messages Structured reply, list, form or native interactive response
formResponse onFormResponse messages A form submission with question IDs and chosen option IDs
stateChanged onStateChanged state Fired when connection state changes
chatState onChatState state Fired when someone is typing or recording
logout onLogout state Fired when the session is logged out
participantsChanged onParticipantsChanged groups Fired when group participants change
addedToGroup onAddedToGroup groups Fired when you are added to a group
incomingCall onIncomingCall calls A native incoming call. The SDK hydrates its bound controls.
callState onCallState calls Observed native call state, including unknown states.
event onEvent events A native event added or changed in the synced message store, including this account’s events.
eventResponse onEventResponse events A decrypted RSVP added or changed in WhatsApp’s dedicated event-response collection. History loads may emit responses too; deduplicate by id and timestamp.
pollVote onPollVote messages Someone voted on a poll or changed their vote. Older votes can arrive again after the session starts, so deduplicate by id and timestamp and call getPollResults for current totals. Polls with hidden voters leave out sender and message IDs.