open-wa v5 is alpha. Use v4.76.0 for mature production systems unless you are validating v5.
The Client APIAPI ExplorerLicensing

Client Reference

Comprehensive flat client method reference.

Client Client Methods Wally

Client Reference

Generated file warning: this page is generated by packages/schema/scripts/gen-client-reference-docs.ts. Do not edit generated method content by hand.

This page documents all client methods alphabetically in a single flat namespace for easy reference.

addLabel

Add label to chat

Overview

PropValue
Namespacelabels
Actionupdate
Functionalitybusiness-only
Positional parameter orderlabel, chatId
Aliaseslabels.add
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/labels/addaddLabelActive
AliasPUT/api/addLabeladdLabelActive

Usage

const result = await client.addLabel({
  label: "label",
  chatId: "447123456789@c.us",
});
const result = await client.labels.add({
  label: "label",
  chatId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/labels/add" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "label": "label",
    "chatId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

addParticipant

Add participant to group

Overview

PropValue
Namespacegroups
Actionupdate
Functionalityboth
Positional parameter ordergroupId, contactId
AliasesaddGroupParticipant, groups.addParticipant
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/groups/addParticipantaddParticipantActive
AliasPUT/api/addGroupParticipantaddGroupParticipantActive
AliasPUT/api/addParticipantaddParticipantActive

Usage

const result = await client.addParticipant({
  groupId: "447123456789-1445627445@g.us",
  contactId: "447123456789@c.us",
});
const result = await client.groups.addParticipant({
  groupId: "447123456789-1445627445@g.us",
  contactId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/groups/addParticipant" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "groupId": "447123456789-1445627445@g.us",
    "contactId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

approveGroupJoinRequest

Approve group join request

Overview

PropValue
Namespacegroups
Actionupdate
Functionalityboth
Positional parameter ordergroupId, contactId
Aliasesgroups.approveJoinRequest
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/groups/approveJoinRequestapproveGroupJoinRequestActive
AliasPUT/api/approveGroupJoinRequestapproveGroupJoinRequestActive

Usage

const result = await client.approveGroupJoinRequest({
  groupId: "447123456789-1445627445@g.us",
  contactId: "447123456789@c.us",
});
const result = await client.groups.approveJoinRequest({
  groupId: "447123456789-1445627445@g.us",
  contactId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/groups/approveJoinRequest" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "groupId": "447123456789-1445627445@g.us",
    "contactId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typestring | boolean

archiveChat

Archive a chat

Overview

PropValue
Namespacechats
Actionupdate
Functionalityboth
Positional parameter orderchatId
Aliaseschats.archive
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/chats/archivearchiveChatActive
AliasPUT/api/archiveChatarchiveChatActive

Usage

const result = await client.archiveChat({
  chatId: "447123456789@c.us",
});
const result = await client.chats.archive({
  chatId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/chats/archive" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "chatId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

blockContact

Block a contact

Overview

PropValue
Namespacecontacts
Actionupdate
Functionalityboth
Positional parameter ordercontactId
AliasescontactBlock, contacts.block, contacts.contactBlock
Deprecated aliasescontactBlock, contacts.contactBlock
Licensenone
WAPI overridecontactBlock
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/contacts/blockblockContactActive
AliasPUT/api/blockContactblockContactActive
Deprecated aliasPUT/api/contactBlockcontactBlockDeprecated
Deprecated aliasPUT/api/contacts/contactBlockcontacts.contactBlockDeprecated

Usage

const result = await client.blockContact({
  contactId: "447123456789@c.us",
});
const result = await client.contacts.block({
  contactId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/contacts/block" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "contactId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

checkNumberStatusInsiders

Check if number is on WhatsApp

Overview

PropValue
Namespacecontacts
Actionread
Functionalityboth
Positional parameter ordercontactId
Aliasescontacts.checkNumberStatus
Deprecated aliases-
Licenseinsiders
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/contacts/checkNumberStatuscheckNumberStatusActive
AliasGET/api/checkNumberStatuscheckNumberStatusActive

Usage

const result = await client.checkNumberStatus({
  contactId: "447123456789@c.us",
});
const result = await client.contacts.checkNumberStatus({
  contactId: "447123456789@c.us",
});
curl -G "http://localhost:8080/api/contacts/checkNumberStatus" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "contactId=447123456789@c.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

checkReadReceipts

Check read receipts setting

Overview

PropValue
Namespacecontacts
Actionread
Functionalityboth
Positional parameter ordercontactId
Aliasescontacts.checkReadReceipts, contacts.getReadReceipts, getReadReceipts
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/contacts/checkReadReceiptscheckReadReceiptsActive
AliasGET/api/checkReadReceiptscheckReadReceiptsActive
AliasGET/api/contacts/getReadReceiptscontacts.getReadReceiptsActive
AliasGET/api/getReadReceiptsgetReadReceiptsActive

Usage

const result = await client.checkReadReceipts({
  contactId: "447123456789@c.us",
});
const result = await client.contacts.checkReadReceipts({
  contactId: "447123456789@c.us",
});
curl -G "http://localhost:8080/api/contacts/checkReadReceipts" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "contactId=447123456789@c.us"

Parameters

Prop

Type

Output

PropValue
Return typeboolean | string

clearChat

Clear chat history

Overview

PropValue
Namespacechats
Actiondelete
Functionalityboth
Positional parameter orderchatId
Aliaseschats.clear
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryDELETE/api/chats/clearclearChatActive
AliasDELETE/api/clearChatclearChatActive

Usage

const result = await client.clearChat({
  chatId: "447123456789@c.us",
});
const result = await client.chats.clear({
  chatId: "447123456789@c.us",
});
curl -X DELETE "http://localhost:8080/api/chats/clear" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "chatId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

createGroupRestricted

Create new group

Overview

PropValue
Namespacegroups
Actionsend
Functionalityboth
Positional parameter ordername, contacts
Aliasesgroups.create
Deprecated aliases-
Licenserestricted
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/groups/createcreateGroupActive
AliasPOST/api/createGroupcreateGroupActive

Usage

const result = await client.createGroup({
  name: "name",
  contacts: "447123456789@c.us",
});
const result = await client.groups.create({
  name: "name",
  contacts: "447123456789@c.us",
});
curl -X POST "http://localhost:8080/api/groups/create" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "name": "name",
    "contacts": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeunknown

decryptMedia

Decrypts media from a message

Overview

PropValue
Namespacemedia
Actionread
Functionalityboth
Positional parameter ordermessage
Aliasesmedia.decrypt
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/media/decryptdecryptMediaActive
AliasPOST/api/decryptMediadecryptMediaActive

Usage

const result = await client.decryptMedia({
  message: {},
});
const result = await client.media.decrypt({
  message: {},
});
curl -X POST "http://localhost:8080/api/media/decrypt" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "message": {}
  }'

Parameters

Prop

Type

Output

PropValue
Return typestring

deleteAllStatusInsiders

Delete all statuses

Overview

PropValue
Namespacestatus
Actiondelete
Functionalityboth
Positional parameter order-
AliasesdeleteAllStatuses, status.deleteAll
Deprecated aliases-
Licenseinsiders
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryDELETE/api/status/deleteAlldeleteAllStatusActive
AliasDELETE/api/deleteAllStatusdeleteAllStatusActive
AliasDELETE/api/deleteAllStatusesdeleteAllStatusesActive

Usage

const result = await client.deleteAllStatus({});
const result = await client.status.deleteAll({});
curl -X DELETE "http://localhost:8080/api/status/deleteAll" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typeunknown

deleteChat

Delete a chat

Overview

PropValue
Namespacechats
Actiondelete
Functionalityboth
Positional parameter orderchatId
Aliaseschats.delete
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryDELETE/api/chats/deletedeleteChatActive
AliasDELETE/api/deleteChatdeleteChatActive

Usage

const result = await client.deleteChat({
  chatId: "447123456789@c.us",
});
const result = await client.chats.delete({
  chatId: "447123456789@c.us",
});
curl -X DELETE "http://localhost:8080/api/chats/delete" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "chatId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

deleteMessage

Deletes a message

Overview

PropValue
Namespacemessages
Actiondelete
Functionalityboth
Positional parameter orderchatId, messageId, onlyLocal
Aliasesmessages.delete
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryDELETE/api/messages/deletedeleteMessageActive
AliasDELETE/api/deleteMessagedeleteMessageActive

Usage

const result = await client.deleteMessage({
  chatId: "447123456789@c.us",
  messageId: ["false_447123456789@c.us_ABC123","false_447123456789@c.us_DEF456"],
  onlyLocal: true,
});
const result = await client.messages.delete({
  chatId: "447123456789@c.us",
  messageId: ["false_447123456789@c.us_ABC123","false_447123456789@c.us_DEF456"],
  onlyLocal: true,
});
curl -X DELETE "http://localhost:8080/api/messages/delete" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "chatId": "447123456789@c.us",
    "messageId": [
      "false_447123456789@c.us_ABC123",
      "false_447123456789@c.us_DEF456"
    ],
    "onlyLocal": true
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

deleteStatusInsiders

Delete status

Overview

PropValue
Namespacestatus
Actiondelete
Functionalityboth
Positional parameter orderstatusesToDelete
Aliasesstatus.delete
Deprecated aliases-
Licenseinsiders
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryDELETE/api/status/deletedeleteStatusActive
AliasDELETE/api/deleteStatusdeleteStatusActive

Usage

const result = await client.deleteStatus({
  statusesToDelete: [],
});
const result = await client.status.delete({
  statusesToDelete: [],
});
curl -X DELETE "http://localhost:8080/api/status/delete" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "statusesToDelete": []
  }'

Parameters

Prop

Type

Output

PropValue
Return typeunknown

demoteParticipant

Demote participant from admin

Overview

PropValue
Namespacegroups
Actionupdate
Functionalityboth
Positional parameter ordergroupId, contactId
AliasesdemoteGroupParticipant, groups.demoteParticipant
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/groups/demoteParticipantdemoteParticipantActive
AliasPUT/api/demoteGroupParticipantdemoteGroupParticipantActive
AliasPUT/api/demoteParticipantdemoteParticipantActive

Usage

const result = await client.demoteParticipant({
  groupId: "447123456789-1445627445@g.us",
  contactId: "447123456789@c.us",
});
const result = await client.groups.demoteParticipant({
  groupId: "447123456789-1445627445@g.us",
  contactId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/groups/demoteParticipant" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "groupId": "447123456789-1445627445@g.us",
    "contactId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean | string

downloadMedia

Downloads and decrypts media from a message to a file

Overview

PropValue
Namespacemedia
Actionread
Functionalityboth
Positional parameter ordermessage, path
Aliasesmedia.download
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/media/downloaddownloadMediaActive
AliasPOST/api/downloadMediadownloadMediaActive

Usage

const result = await client.downloadMedia({
  message: {},
  path: "path",
});
const result = await client.media.download({
  message: {},
  path: "path",
});
curl -X POST "http://localhost:8080/api/media/download" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "message": {},
    "path": "path"
  }'

Parameters

Prop

Type

Output

PropValue
Return typestring

forwardMessages

Forwards messages to a chat

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, messages, skipMyMessages
Aliasesmessages.forward
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/forwardforwardMessagesActive
AliasPOST/api/forwardMessagesforwardMessagesActive

Usage

const result = await client.forwardMessages({
  to: "447123456789@c.us",
  messages: ["false_447123456789@c.us_ABC123","false_447123456789@c.us_DEF456"],
  skipMyMessages: false,
});
const result = await client.messages.forward({
  to: "447123456789@c.us",
  messages: ["false_447123456789@c.us_ABC123","false_447123456789@c.us_DEF456"],
  skipMyMessages: false,
});
curl -X POST "http://localhost:8080/api/messages/forward" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "messages": [
      "false_447123456789@c.us_ABC123",
      "false_447123456789@c.us_DEF456"
    ],
    "skipMyMessages": false
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized }[] | boolean

getAllChatIds

Get all chat IDs

Overview

PropValue
NamespacechatIds
Actionread
Functionalityboth
Positional parameter order-
AliaseschatIds.all, chatIds.getAll, chatIds.list, chats.ids, listChatIds
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/chatIds/getAllgetAllChatIdsActive
AliasGET/api/chatIds/allchatIds.allActive
AliasGET/api/chatIds/listchatIds.listActive
AliasGET/api/chats/idschats.idsActive
AliasGET/api/getAllChatIdsgetAllChatIdsActive
AliasGET/api/listChatIdslistChatIdsActive

Usage

const result = await client.getAllChatIds({});
const result = await client.chatIds.getAll({});
curl -X GET "http://localhost:8080/api/chatIds/getAll" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typestring[]

getAllChats

Retrieves all chats

Overview

PropValue
Namespacechats
Actionread
Functionalityboth
Positional parameter orderwithNewMessagesOnly
Aliaseschats.all, chats.getAll, chats.list, listChats
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/chats/getAllgetAllChatsActive
AliasGET/api/chats/allchats.allActive
AliasGET/api/chats/listchats.listActive
AliasGET/api/getAllChatsgetAllChatsActive
AliasGET/api/listChatslistChatsActive

Usage

const result = await client.getAllChats({
  withNewMessagesOnly: false,
});
const result = await client.chats.getAll({
  withNewMessagesOnly: false,
});
curl -G "http://localhost:8080/api/chats/getAll" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "withNewMessagesOnly=false"

Parameters

Prop

Type

Output

PropValue
Return typeunknown[]

getAllCommunities

Get all communities

Overview

PropValue
Namespacecommunities
Actionread
Functionalityboth
Positional parameter order-
Aliasescommunities.all, communities.getAll, communities.list, listCommunities
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/communities/getAllgetAllCommunitiesActive
AliasGET/api/communities/allcommunities.allActive
AliasGET/api/communities/listcommunities.listActive
AliasGET/api/getAllCommunitiesgetAllCommunitiesActive
AliasGET/api/listCommunitieslistCommunitiesActive

Usage

const result = await client.getAllCommunities({});
const result = await client.communities.getAll({});
curl -X GET "http://localhost:8080/api/communities/getAll" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typestring[]

getAllContacts

Retrieves all contacts

Overview

PropValue
Namespacecontacts
Actionread
Functionalityboth
Positional parameter order-
Aliasescontacts.all, contacts.getAll, contacts.list, listContacts
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/contacts/getAllgetAllContactsActive
AliasGET/api/contacts/allcontacts.allActive
AliasGET/api/contacts/listcontacts.listActive
AliasGET/api/getAllContactsgetAllContactsActive
AliasGET/api/listContactslistContactsActive

Usage

const result = await client.getAllContacts({});
const result = await client.contacts.getAll({});
curl -X GET "http://localhost:8080/api/contacts/getAll" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typeunknown[]

getAllGroups

Get all groups

Overview

PropValue
Namespacegroups
Actionread
Functionalityboth
Positional parameter orderwithNewMessagesOnly
Aliasesgroups.all, groups.getAll, groups.list, listGroups
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/groups/getAllgetAllGroupsActive
AliasGET/api/getAllGroupsgetAllGroupsActive
AliasGET/api/groups/allgroups.allActive
AliasGET/api/groups/listgroups.listActive
AliasGET/api/listGroupslistGroupsActive

Usage

const result = await client.getAllGroups({
  withNewMessagesOnly: false,
});
const result = await client.groups.getAll({
  withNewMessagesOnly: false,
});
curl -G "http://localhost:8080/api/groups/getAll" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "withNewMessagesOnly=false"

Parameters

Prop

Type

Output

PropValue
Return typeunknown[]

getAllLabels

Get all labels

Overview

PropValue
Namespacelabels
Actionread
Functionalitybusiness-only
Positional parameter order-
Aliaseslabels.all, labels.getAll, labels.list, listLabels
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/labels/getAllgetAllLabelsActive
AliasGET/api/getAllLabelsgetAllLabelsActive
AliasGET/api/labels/alllabels.allActive
AliasGET/api/labels/listlabels.listActive
AliasGET/api/listLabelslistLabelsActive

Usage

const result = await client.getAllLabels({});
const result = await client.labels.getAll({});
curl -X GET "http://localhost:8080/api/labels/getAll" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typeunknown[]

getAllMessages

Retrieves all messages in the session

Overview

PropValue
Namespacemessages
Actionread
Functionalityboth
Positional parameter orderchatId, includeMe, includeNotifications
AliaseslistMessages, messages.all, messages.getAll, messages.list
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/messages/getAllgetAllMessagesActive
AliasGET/api/getAllMessagesgetAllMessagesActive
AliasGET/api/listMessageslistMessagesActive
AliasGET/api/messages/allmessages.allActive
AliasGET/api/messages/listmessages.listActive

Usage

const result = await client.getAllMessages({
  chatId: "447123456789@c.us",
  includeMe: true,
  includeNotifications: true,
});
const result = await client.messages.getAll({
  chatId: "447123456789@c.us",
  includeMe: true,
  includeNotifications: true,
});
curl -G "http://localhost:8080/api/messages/getAll" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "chatId=447123456789@c.us" \
  --data-urlencode "includeMe=true" \
  --data-urlencode "includeNotifications=true"

Parameters

Prop

Type

Output

PropValue
Return typeunknown[]

getBatteryLevel

Get phone battery level

Overview

PropValue
Namespacesession
Actionread
Functionalityboth
Positional parameter order-
Aliasessession.getBatteryLevel
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/session/getBatteryLevelgetBatteryLevelActive
AliasGET/api/getBatteryLevelgetBatteryLevelActive

Usage

const result = await client.getBatteryLevel({});
const result = await client.session.getBatteryLevel({});
curl -X GET "http://localhost:8080/api/session/getBatteryLevel" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typenumber

getBlockedIds

Get blocked contact IDs

Overview

PropValue
Namespacecontacts
Actionread
Functionalityboth
Positional parameter order-
Aliasescontacts.getBlockedIds
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/contacts/getBlockedIdsgetBlockedIdsActive
AliasGET/api/getBlockedIdsgetBlockedIdsActive

Usage

const result = await client.getBlockedIds({});
const result = await client.contacts.getBlockedIds({});
curl -X GET "http://localhost:8080/api/contacts/getBlockedIds" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typestring[]

getBusinessProducts

Get business products

Overview

PropValue
Namespacebusiness
Actionread
Functionalityboth
Positional parameter ordercontactId
Aliasesbusiness.getProducts, business.getProfilesProducts, getBusinessProfilesProducts
Deprecated aliasesbusiness.getProfilesProducts, getBusinessProfilesProducts
Licensenone
WAPI overridegetBusinessProfilesProducts
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/business/getProductsgetBusinessProductsActive
Deprecated aliasGET/api/business/getProfilesProductsbusiness.getProfilesProductsDeprecated
AliasGET/api/getBusinessProductsgetBusinessProductsActive
Deprecated aliasGET/api/getBusinessProfilesProductsgetBusinessProfilesProductsDeprecated

Usage

const result = await client.getBusinessProducts({
  contactId: "447123456789@c.us",
});
const result = await client.business.getProducts({
  contactId: "447123456789@c.us",
});
curl -G "http://localhost:8080/api/business/getProducts" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "contactId=447123456789@c.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getBusinessProfile

Get business profile

Overview

PropValue
Namespacebusiness
Actionread
Functionalityboth
Positional parameter ordercontactId
Aliasesbusiness.getProfile
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/business/getProfilegetBusinessProfileActive
AliasGET/api/getBusinessProfilegetBusinessProfileActive

Usage

const result = await client.getBusinessProfile({
  contactId: "447123456789@c.us",
});
const result = await client.business.getProfile({
  contactId: "447123456789@c.us",
});
curl -G "http://localhost:8080/api/business/getProfile" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "contactId=447123456789@c.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getChat

Get specific chat by ID

Overview

PropValue
Namespacechats
Actionread
Functionalityboth
Positional parameter orderchatId
Aliaseschats.get, chats.getById, getChatById
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/chats/getgetChatActive
AliasGET/api/chats/getByIdchats.getByIdActive
AliasGET/api/getChatgetChatActive
AliasGET/api/getChatByIdgetChatByIdActive

Usage

const result = await client.getChat({
  chatId: "447123456789@c.us",
});
const result = await client.chats.get({
  chatId: "447123456789@c.us",
});
curl -G "http://localhost:8080/api/chats/get" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "chatId=447123456789@c.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getChatsByLabel

Get chats by label

Overview

PropValue
Namespacelabels
Actionread
Functionalitybusiness-only
Positional parameter orderlabel
Aliaseslabels.getChats, labels.getChatsBy
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/labels/getChatsgetChatsByLabelActive
AliasGET/api/getChatsByLabelgetChatsByLabelActive
AliasGET/api/labels/getChatsBylabels.getChatsByActive

Usage

const result = await client.getChatsByLabel({
  label: "label",
});
const result = await client.labels.getChats({
  label: "label",
});
curl -G "http://localhost:8080/api/labels/getChats" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "label=label"

Parameters

Prop

Type

Output

PropValue
Return typeunknown[]

getChatWithNonContacts

Get chats with non-contacts

Overview

PropValue
Namespacechats
Actionread
Functionalityboth
Positional parameter order-
Aliaseschats.getWithNonContacts
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/chats/getWithNonContactsgetChatWithNonContactsActive
AliasGET/api/getChatWithNonContactsgetChatWithNonContactsActive

Usage

const result = await client.getChatWithNonContacts({});
const result = await client.chats.getWithNonContacts({});
curl -X GET "http://localhost:8080/api/chats/getWithNonContacts" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typeunknown[]

getCommonGroups

Get common groups with contact

Overview

PropValue
Namespacecontacts
Actionread
Functionalityboth
Positional parameter ordercontactId
Aliasescontacts.getCommonGroups
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/contacts/getCommonGroupsgetCommonGroupsActive
AliasGET/api/getCommonGroupsgetCommonGroupsActive

Usage

const result = await client.getCommonGroups({
  contactId: "447123456789@c.us",
});
const result = await client.contacts.getCommonGroups({
  contactId: "447123456789@c.us",
});
curl -G "http://localhost:8080/api/contacts/getCommonGroups" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "contactId=447123456789@c.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getCommunityAdminIds

Get community admin IDs

Overview

PropValue
Namespacecommunities
Actionread
Functionalityboth
Positional parameter ordercommunityId
Aliasescommunities.getAdminIds
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/communities/getAdminIdsgetCommunityAdminIdsActive
AliasGET/api/getCommunityAdminIdsgetCommunityAdminIdsActive

Usage

const result = await client.getCommunityAdminIds({
  communityId: "447123456789-1445627445@g.us",
});
const result = await client.communities.getAdminIds({
  communityId: "447123456789-1445627445@g.us",
});
curl -G "http://localhost:8080/api/communities/getAdminIds" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "communityId=447123456789-1445627445@g.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getCommunityAdmins

Get community admins

Overview

PropValue
Namespacecommunities
Actionread
Functionalityboth
Positional parameter ordercommunityId
Aliasescommunities.getAdmins
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/communities/getAdminsgetCommunityAdminsActive
AliasGET/api/getCommunityAdminsgetCommunityAdminsActive

Usage

const result = await client.getCommunityAdmins({
  communityId: "447123456789-1445627445@g.us",
});
const result = await client.communities.getAdmins({
  communityId: "447123456789-1445627445@g.us",
});
curl -G "http://localhost:8080/api/communities/getAdmins" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "communityId=447123456789-1445627445@g.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getCommunityInfo

Get community metadata

Overview

PropValue
Namespacecommunities
Actionread
Functionalityboth
Positional parameter ordercommunityId
Aliasescommunities.getInfo
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/communities/getInfogetCommunityInfoActive
AliasGET/api/getCommunityInfogetCommunityInfoActive

Usage

const result = await client.getCommunityInfo({
  communityId: "447123456789-1445627445@g.us",
});
const result = await client.communities.getInfo({
  communityId: "447123456789-1445627445@g.us",
});
curl -G "http://localhost:8080/api/communities/getInfo" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "communityId=447123456789-1445627445@g.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getCommunityParticipantIds

Get community participant IDs

Overview

PropValue
Namespacecommunities
Actionread
Functionalityboth
Positional parameter ordercommunityId
Aliasescommunities.getParticipantIds
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/communities/getParticipantIdsgetCommunityParticipantIdsActive
AliasGET/api/getCommunityParticipantIdsgetCommunityParticipantIdsActive

Usage

const result = await client.getCommunityParticipantIds({
  communityId: "447123456789-1445627445@g.us",
});
const result = await client.communities.getParticipantIds({
  communityId: "447123456789-1445627445@g.us",
});
curl -G "http://localhost:8080/api/communities/getParticipantIds" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "communityId=447123456789-1445627445@g.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getCommunityParticipants

Get community participants

Overview

PropValue
Namespacecommunities
Actionread
Functionalityboth
Positional parameter ordercommunityId
Aliasescommunities.getParticipants
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/communities/getParticipantsgetCommunityParticipantsActive
AliasGET/api/getCommunityParticipantsgetCommunityParticipantsActive

Usage

const result = await client.getCommunityParticipants({
  communityId: "447123456789-1445627445@g.us",
});
const result = await client.communities.getParticipants({
  communityId: "447123456789-1445627445@g.us",
});
curl -G "http://localhost:8080/api/communities/getParticipants" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "communityId=447123456789-1445627445@g.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getConnectionState

Get connection state

Overview

PropValue
Namespacesession
Actionread
Functionalityboth
Positional parameter order-
Aliasessession.getConnectionState
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/session/getConnectionStategetConnectionStateActive
AliasGET/api/getConnectionStategetConnectionStateActive

Usage

const result = await client.getConnectionState({});
const result = await client.session.getConnectionState({});
curl -X GET "http://localhost:8080/api/session/getConnectionState" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typeunknown

getContact

Get specific contact

Overview

PropValue
Namespacecontacts
Actionread
Functionalityboth
Positional parameter ordercontactId
Aliasescontacts.get
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/contacts/getgetContactActive
AliasGET/api/getContactgetContactActive

Usage

const result = await client.getContact({
  contactId: "447123456789@c.us",
});
const result = await client.contacts.get({
  contactId: "447123456789@c.us",
});
curl -G "http://localhost:8080/api/contacts/get" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "contactId=447123456789@c.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getFeatures

Get enabled features

Overview

PropValue
Namespacesession
Actionread
Functionalityboth
Positional parameter order-
Aliasessession.getFeatures
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/session/getFeaturesgetFeaturesActive
AliasGET/api/getFeaturesgetFeaturesActive

Usage

const result = await client.getFeatures({});
const result = await client.session.getFeatures({});
curl -X GET "http://localhost:8080/api/session/getFeatures" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typeunknown

getGroupAdmins

Get group admins

Overview

PropValue
Namespacegroups
Actionread
Functionalityboth
Positional parameter ordergroupId
Aliasesgroups.getAdmins
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/groups/getAdminsgetGroupAdminsActive
AliasGET/api/getGroupAdminsgetGroupAdminsActive

Usage

const result = await client.getGroupAdmins({
  groupId: "447123456789-1445627445@g.us",
});
const result = await client.groups.getAdmins({
  groupId: "447123456789-1445627445@g.us",
});
curl -G "http://localhost:8080/api/groups/getAdmins" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "groupId=447123456789-1445627445@g.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown[]

getGroupInfo

Get group metadata

Overview

PropValue
Namespacegroups
Actionread
Functionalityboth
Positional parameter ordergroupId
Aliasesgroups.getInfo
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/groups/getInfogetGroupInfoActive
AliasGET/api/getGroupInfogetGroupInfoActive

Usage

const result = await client.getGroupInfo({
  groupId: "447123456789-1445627445@g.us",
});
const result = await client.groups.getInfo({
  groupId: "447123456789-1445627445@g.us",
});
curl -G "http://localhost:8080/api/groups/getInfo" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "groupId=447123456789-1445627445@g.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

Get group invite link

Overview

PropValue
Namespacegroups
Actionread
Functionalityboth
Positional parameter ordergroupId
Aliasesgroups.getInviteLink
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/groups/getInviteLinkgetGroupInviteLinkActive
AliasGET/api/getGroupInviteLinkgetGroupInviteLinkActive

Usage

const result = await client.getGroupInviteLink({
  groupId: "447123456789-1445627445@g.us",
});
const result = await client.groups.getInviteLink({
  groupId: "447123456789-1445627445@g.us",
});
curl -G "http://localhost:8080/api/groups/getInviteLink" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "groupId=447123456789-1445627445@g.us"

Parameters

Prop

Type

Output

PropValue
Return typestring

getGroupMembers

Retrieves members of a group

Overview

PropValue
Namespacegroups
Actionread
Functionalityboth
Positional parameter ordergroupId
Aliasesgroups.getMembers
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/groups/getMembersgetGroupMembersActive
AliasGET/api/getGroupMembersgetGroupMembersActive

Usage

const result = await client.getGroupMembers({
  groupId: "447123456789-1445627445@g.us",
});
const result = await client.groups.getMembers({
  groupId: "447123456789-1445627445@g.us",
});
curl -G "http://localhost:8080/api/groups/getMembers" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "groupId=447123456789-1445627445@g.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown[]

getGroupMembersId

Get group member IDs

Overview

PropValue
Namespacegroups
Actionread
Functionalityboth
Positional parameter ordergroupId
AliasesgetGroupMemberIds, groups.getMemberIds, groups.getMembersId
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/groups/getMemberIdsgetGroupMembersIdActive
AliasGET/api/getGroupMemberIdsgetGroupMemberIdsActive
AliasGET/api/getGroupMembersIdgetGroupMembersIdActive
AliasGET/api/groups/getMembersIdgroups.getMembersIdActive

Usage

const result = await client.getGroupMembersId({
  groupId: "447123456789-1445627445@g.us",
});
const result = await client.groups.getMemberIds({
  groupId: "447123456789-1445627445@g.us",
});
curl -G "http://localhost:8080/api/groups/getMemberIds" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "groupId=447123456789-1445627445@g.us"

Parameters

Prop

Type

Output

PropValue
Return typestring[]

getHostNumber

Get host phone number

Overview

PropValue
Namespacesession
Actionread
Functionalityboth
Positional parameter order-
Aliasessession.getHostNumber
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/session/getHostNumbergetHostNumberActive
AliasGET/api/getHostNumbergetHostNumberActive

Usage

const result = await client.getHostNumber({});
const result = await client.session.getHostNumber({});
curl -X GET "http://localhost:8080/api/session/getHostNumber" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typestring

getKickedGroups

Get groups where kicked

Overview

PropValue
Namespacegroups
Actionread
Functionalityboth
Positional parameter order-
Aliasesgroups.getKicked
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/groups/getKickedgetKickedGroupsActive
AliasGET/api/getKickedGroupsgetKickedGroupsActive

Usage

const result = await client.getKickedGroups({});
const result = await client.groups.getKicked({});
curl -X GET "http://localhost:8080/api/groups/getKicked" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typestring[]

getLicenseType

Get license type

Overview

PropValue
Namespacesession
Actionread
Functionalityboth
Positional parameter order-
Aliasessession.getLicenseType
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/session/getLicenseTypegetLicenseTypeActive
AliasGET/api/getLicenseTypegetLicenseTypeActive

Usage

const result = await client.getLicenseType({});
const result = await client.session.getLicenseType({});
curl -X GET "http://localhost:8080/api/session/getLicenseType" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typeunknown | boolean

getLoadedMessageCount

Get loaded message count

Overview

PropValue
Namespacesession
Actionread
Functionalityboth
Positional parameter order-
AliasesgetAmountOfLoadedMessages, session.getAmountOfLoadedMessages, session.getLoadedMessageCount
Deprecated aliasesgetAmountOfLoadedMessages, session.getAmountOfLoadedMessages
Licensenone
WAPI overridegetAmountOfLoadedMessages
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/session/getLoadedMessageCountgetLoadedMessageCountActive
Deprecated aliasGET/api/getAmountOfLoadedMessagesgetAmountOfLoadedMessagesDeprecated
AliasGET/api/getLoadedMessageCountgetLoadedMessageCountActive
Deprecated aliasGET/api/session/getAmountOfLoadedMessagessession.getAmountOfLoadedMessagesDeprecated

Usage

const result = await client.getLoadedMessageCount({});
const result = await client.session.getLoadedMessageCount({});
curl -X GET "http://localhost:8080/api/session/getLoadedMessageCount" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typenumber

getMe

Get host account info

Overview

PropValue
Namespacesession
Actionread
Functionalityboth
Positional parameter order-
Aliasessession.getMe
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/session/getMegetMeActive
AliasGET/api/getMegetMeActive

Usage

const result = await client.getMe({});
const result = await client.session.getMe({});
curl -X GET "http://localhost:8080/api/session/getMe" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typeunknown

getMessageById

Retrieves a specific message by ID

Overview

PropValue
Namespacemessages
Actionread
Functionalityboth
Positional parameter ordermessageId
AliasesgetMessage, messages.get, messages.getById
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/messages/getgetMessageByIdActive
AliasGET/api/getMessagegetMessageActive
AliasGET/api/getMessageByIdgetMessageByIdActive
AliasGET/api/messages/getByIdmessages.getByIdActive

Usage

const result = await client.getMessageById({
  messageId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
const result = await client.messages.get({
  messageId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
curl -G "http://localhost:8080/api/messages/get" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "messageId=false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getMessageInfo

Get message delivery info

Overview

PropValue
Namespacemessages
Actionread
Functionalityboth
Positional parameter ordermessageId
Aliasesmessages.getInfo
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/messages/getInfogetMessageInfoActive
AliasGET/api/getMessageInfogetMessageInfoActive

Usage

const result = await client.getMessageInfo({
  messageId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
const result = await client.messages.getInfo({
  messageId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
curl -G "http://localhost:8080/api/messages/getInfo" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "messageId=false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getMessagesForLLM

Get messages formatted for LLMs

Overview

PropValue
Namespacemessages
Actionread
Functionalityboth
Positional parameter orderchatId, last
AliasesgetGptArray, messages.getForLLM, messages.getGptArray
Deprecated aliasesgetGptArray, messages.getGptArray
Licensenone
WAPI overridegetGptArray
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/messages/getForLLMgetMessagesForLLMActive
Deprecated aliasGET/api/getGptArraygetGptArrayDeprecated
AliasGET/api/getMessagesForLLMgetMessagesForLLMActive
Deprecated aliasGET/api/messages/getGptArraymessages.getGptArrayDeprecated

Usage

const result = await client.getMessagesForLLM({
  chatId: "447123456789@c.us",
  last: 1,
});
const result = await client.messages.getForLLM({
  chatId: "447123456789@c.us",
  last: 1,
});
curl -G "http://localhost:8080/api/messages/getForLLM" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "chatId=447123456789@c.us" \
  --data-urlencode "last=1"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getMyLastMessage

Get last message sent by host

Overview

PropValue
Namespacemessages
Actionread
Functionalityboth
Positional parameter orderchatId
Aliasesmessages.getMyLast
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/messages/getMyLastgetMyLastMessageActive
AliasGET/api/getMyLastMessagegetMyLastMessageActive

Usage

const result = await client.getMyLastMessage({
  chatId: "447123456789@c.us",
});
const result = await client.messages.getMyLast({
  chatId: "447123456789@c.us",
});
curl -G "http://localhost:8080/api/messages/getMyLast" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "chatId=447123456789@c.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getNumberProfileInsiders

Get profile of number

Overview

PropValue
Namespacecontacts
Actionread
Functionalityboth
Positional parameter ordercontactId
Aliasescontacts.getNumberProfile
Deprecated aliases-
Licenseinsiders
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/contacts/getNumberProfilegetNumberProfileActive
AliasGET/api/getNumberProfilegetNumberProfileActive

Usage

const result = await client.getNumberProfile({
  contactId: "447123456789@c.us",
});
const result = await client.contacts.getNumberProfile({
  contactId: "447123456789@c.us",
});
curl -G "http://localhost:8080/api/contacts/getNumberProfile" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "contactId=447123456789@c.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getOrderInsiders

Get order details

Overview

PropValue
Namespacebusiness
Actionread
Functionalityboth
Positional parameter orderid
Aliasesbusiness.getOrder
Deprecated aliases-
Licenseinsiders
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/business/getOrdergetOrderActive
AliasGET/api/getOrdergetOrderActive

Usage

const result = await client.getOrder({
  id: "id",
});
const result = await client.business.getOrder({
  id: "id",
});
curl -G "http://localhost:8080/api/business/getOrder" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "id=id"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getProcessStats

Get process statistics

Overview

PropValue
Namespacesession
Actionread
Functionalityboth
Positional parameter order-
Aliasessession.getProcessStats
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/session/getProcessStatsgetProcessStatsActive
AliasGET/api/getProcessStatsgetProcessStatsActive

Usage

const result = await client.getProcessStats({});
const result = await client.session.getProcessStats({});
curl -X GET "http://localhost:8080/api/session/getProcessStats" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typeunknown

getProfilePicture

Get profile picture from server

Overview

PropValue
Namespacecontacts
Actionread
Functionalityboth
Positional parameter orderchatId
Aliasescontacts.getProfilePicFromServer, contacts.getProfilePicture, getProfilePicFromServer
Deprecated aliasescontacts.getProfilePicFromServer, getProfilePicFromServer
Licensenone
WAPI overridegetProfilePicFromServer
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/contacts/getProfilePicturegetProfilePictureActive
Deprecated aliasGET/api/contacts/getProfilePicFromServercontacts.getProfilePicFromServerDeprecated
Deprecated aliasGET/api/getProfilePicFromServergetProfilePicFromServerDeprecated
AliasGET/api/getProfilePicturegetProfilePictureActive

Usage

const result = await client.getProfilePicture({
  chatId: "447123456789@c.us",
});
const result = await client.contacts.getProfilePicture({
  chatId: "447123456789@c.us",
});
curl -G "http://localhost:8080/api/contacts/getProfilePicture" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "chatId=447123456789@c.us"

Parameters

Prop

Type

Output

PropValue
Return typestring

getSnapshot

Take screenshot

Overview

PropValue
Namespacesession
Actionread
Functionalityboth
Positional parameter orderchatId, width, height
Aliasessession.getSnapshot, session.takeScreenshot, takeScreenshot
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/session/getSnapshotgetSnapshotActive
AliasGET/api/getSnapshotgetSnapshotActive
AliasGET/api/session/takeScreenshotsession.takeScreenshotActive
AliasGET/api/takeScreenshottakeScreenshotActive

Usage

const result = await client.getSnapshot({
  chatId: "447123456789@c.us",
  width: 1,
  height: 1,
});
const result = await client.session.getSnapshot({
  chatId: "447123456789@c.us",
  width: 1,
  height: 1,
});
curl -G "http://localhost:8080/api/session/getSnapshot" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "chatId=447123456789@c.us" \
  --data-urlencode "width=1" \
  --data-urlencode "height=1"

Parameters

Prop

Type

Output

PropValue
Return typestring

getStarredMessagesInsiders

Get starred messages

Overview

PropValue
Namespacemessages
Actionread
Functionalityboth
Positional parameter orderchatId
Aliasesmessages.getStarred
Deprecated aliases-
Licenseinsiders
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/messages/getStarredgetStarredMessagesActive
AliasGET/api/getStarredMessagesgetStarredMessagesActive

Usage

const result = await client.getStarredMessages({
  chatId: "447123456789@c.us",
});
const result = await client.messages.getStarred({
  chatId: "447123456789@c.us",
});
curl -G "http://localhost:8080/api/messages/getStarred" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "chatId=447123456789@c.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown[]

getStatusInsiders

Get specific status

Overview

PropValue
Namespacemystatus
Actionread
Functionalityboth
Positional parameter ordercontactId
Aliasesmystatus.getStatus
Deprecated aliases-
Licenseinsiders
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/mystatus/getStatusgetStatusActive
AliasGET/api/getStatusgetStatusActive

Usage

const result = await client.getStatus({
  contactId: "447123456789@c.us",
});
const result = await client.mystatus.getStatus({
  contactId: "447123456789@c.us",
});
curl -G "http://localhost:8080/api/mystatus/getStatus" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "contactId=447123456789@c.us"

Parameters

Prop

Type

Output

PropValue
Return typeunknown

getStoriesInsiders

Get all stories

Overview

PropValue
Namespacestatus
Actionread
Functionalityboth
Positional parameter order-
AliasesgetStatuses, status.get, status.getAll, status.getStories
Deprecated aliases-
Licenseinsiders
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/status/getAllgetStoriesActive
AliasGET/api/getStatusesgetStatusesActive
AliasGET/api/getStoriesgetStoriesActive
AliasGET/api/status/getstatus.getActive
AliasGET/api/status/getStoriesstatus.getStoriesActive

Usage

const result = await client.getStories({});
const result = await client.status.getAll({});
curl -X GET "http://localhost:8080/api/status/getAll" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typeunknown[]

getUnsentMessages

Get unsent/pending messages

Overview

PropValue
Namespacemessages
Actionread
Functionalityboth
Positional parameter order-
Aliasesmessages.getUnsent
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/messages/getUnsentgetUnsentMessagesActive
AliasGET/api/getUnsentMessagesgetUnsentMessagesActive

Usage

const result = await client.getUnsentMessages({});
const result = await client.messages.getUnsent({});
curl -X GET "http://localhost:8080/api/messages/getUnsent" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typeunknown[]

getUserAgent

Get user agent

Overview

PropValue
Namespacesession
Actionread
Functionalityboth
Positional parameter orderuserAgent
AliasesgetGeneratedUserAgent, session.getGeneratedUserAgent, session.getUserAgent
Deprecated aliasesgetGeneratedUserAgent, session.getGeneratedUserAgent
Licensenone
WAPI overridegetGeneratedUserAgent
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/session/getUserAgentgetUserAgentActive
Deprecated aliasGET/api/getGeneratedUserAgentgetGeneratedUserAgentDeprecated
AliasGET/api/getUserAgentgetUserAgentActive
Deprecated aliasGET/api/session/getGeneratedUserAgentsession.getGeneratedUserAgentDeprecated

Usage

const result = await client.getUserAgent({
  userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)",
});
const result = await client.session.getUserAgent({
  userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)",
});
curl -G "http://localhost:8080/api/session/getUserAgent" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "userAgent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"

Parameters

Prop

Type

Output

PropValue
Return typestring

getVCards

Extract vCards from message

Overview

PropValue
Namespacemessages
Actionread
Functionalityboth
Positional parameter ordermessageId
Aliasesmessages.getVCards
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/messages/getVCardsgetVCardsActive
AliasGET/api/getVCardsgetVCardsActive

Usage

const result = await client.getVCards({
  messageId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
const result = await client.messages.getVCards({
  messageId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
curl -G "http://localhost:8080/api/messages/getVCards" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "messageId=false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB"

Parameters

Prop

Type

Output

PropValue
Return typestring[]

getWAVersion

Get WhatsApp Web version

Overview

PropValue
Namespacesession
Actionread
Functionalityboth
Positional parameter order-
AliasesgetWhatsAppVersion, session.getWAVersion, session.getWhatsAppVersion
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/session/getWAVersiongetWAVersionActive
AliasGET/api/getWAVersiongetWAVersionActive
AliasGET/api/getWhatsAppVersiongetWhatsAppVersionActive
AliasGET/api/session/getWhatsAppVersionsession.getWhatsAppVersionActive

Usage

const result = await client.getWAVersion({});
const result = await client.session.getWAVersion({});
curl -X GET "http://localhost:8080/api/session/getWAVersion" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typestring

healthCheck

Health check

Overview

PropValue
Namespacesession
Actionread
Functionalityboth
Positional parameter order-
Aliasessession.healthCheck
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/session/healthCheckhealthCheckActive
AliasGET/api/healthCheckhealthCheckActive

Usage

const result = await client.healthCheck({});
const result = await client.session.healthCheck({});
curl -X GET "http://localhost:8080/api/session/healthCheck" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typeunknown

isChatOnline

Check if chat is online

Overview

PropValue
Namespacechats
Actionread
Functionalityboth
Positional parameter orderchatId
Aliaseschats.isOnline
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/chats/isOnlineisChatOnlineActive
AliasGET/api/isChatOnlineisChatOnlineActive

Usage

const result = await client.isChatOnline({
  chatId: "447123456789@c.us",
});
const result = await client.chats.isOnline({
  chatId: "447123456789@c.us",
});
curl -G "http://localhost:8080/api/chats/isOnline" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-urlencode "chatId=447123456789@c.us"

Parameters

Prop

Type

Output

PropValue
Return typeboolean | string

isPlugged

Check if phone is charging

Overview

PropValue
Namespacesession
Actionread
Functionalityboth
Positional parameter order-
AliasesgetIsPlugged, session.getIsPlugged, session.isPlugged
Deprecated aliasesgetIsPlugged, session.getIsPlugged
Licensenone
WAPI overridegetIsPlugged
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/session/isPluggedisPluggedActive
Deprecated aliasGET/api/getIsPluggedgetIsPluggedDeprecated
AliasGET/api/isPluggedisPluggedActive
Deprecated aliasGET/api/session/getIsPluggedsession.getIsPluggedDeprecated

Usage

const result = await client.isPlugged({});
const result = await client.session.isPlugged({});
curl -X GET "http://localhost:8080/api/session/isPlugged" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{}'

Parameters

This method does not define input parameters.

Output

PropValue
Return typeboolean

Join group via invite link

Overview

PropValue
Namespacegroups
Actionsend
Functionalityboth
Positional parameter orderlink, returnChatObj
Aliasesgroups.join, groups.joinViaLink, joinGroup
Deprecated aliases-
Licenserestricted
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/groups/joinjoinGroupViaLinkActive
AliasPOST/api/groups/joinViaLinkgroups.joinViaLinkActive
AliasPOST/api/joinGroupjoinGroupActive
AliasPOST/api/joinGroupViaLinkjoinGroupViaLinkActive

Usage

const result = await client.joinGroupViaLink({
  link: "link",
  returnChatObj: true,
});
const result = await client.groups.join({
  link: "link",
  returnChatObj: true,
});
curl -X POST "http://localhost:8080/api/groups/join" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "link": "link",
    "returnChatObj": true
  }'

Parameters

Prop

Type

Output

PropValue
Return typestring | boolean | number | unknown

leaveGroup

Leave a group

Overview

PropValue
Namespacegroups
Actionupdate
Functionalityboth
Positional parameter ordergroupId
Aliasesgroups.leave
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/groups/leaveleaveGroupActive
AliasPUT/api/leaveGroupleaveGroupActive

Usage

const result = await client.leaveGroup({
  groupId: "447123456789-1445627445@g.us",
});
const result = await client.groups.leave({
  groupId: "447123456789-1445627445@g.us",
});
curl -X PUT "http://localhost:8080/api/groups/leave" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "groupId": "447123456789-1445627445@g.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeunknown

loadEarlierMessages

Loads earlier messages from a chat

Overview

PropValue
Namespacemessages
Actionread
Functionalityboth
Positional parameter orderchatId, count, includeMe
AliasesloadOlderMessages, messages.loadEarlier, messages.loadOlder
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/loadEarlierloadEarlierMessagesActive
AliasPOST/api/loadEarlierMessagesloadEarlierMessagesActive
AliasPOST/api/loadOlderMessagesloadOlderMessagesActive
AliasPOST/api/messages/loadOldermessages.loadOlderActive

Usage

const result = await client.loadEarlierMessages({
  chatId: "447123456789@c.us",
  count: 1,
  includeMe: true,
});
const result = await client.messages.loadEarlier({
  chatId: "447123456789@c.us",
  count: 1,
  includeMe: true,
});
curl -X POST "http://localhost:8080/api/messages/loadEarlier" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "chatId": "447123456789@c.us",
    "count": 1,
    "includeMe": true
  }'

Parameters

Prop

Type

Output

PropValue
Return typeunknown[]

markAsRead

Mark chat as read

Overview

PropValue
Namespacechats
Actionupdate
Functionalityboth
Positional parameter orderchatId
Aliaseschats.markAsRead
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/chats/markAsReadmarkAsReadActive
AliasPUT/api/markAsReadmarkAsReadActive

Usage

const result = await client.markAsRead({
  chatId: "447123456789@c.us",
});
const result = await client.chats.markAsRead({
  chatId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/chats/markAsRead" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "chatId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

markAsUnread

Mark chat as unread

Overview

PropValue
Namespacechats
Actionupdate
Functionalityboth
Positional parameter orderchatId
Aliaseschats.markAsUnread
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/chats/markAsUnreadmarkAsUnreadActive
AliasPUT/api/markAsUnreadmarkAsUnreadActive

Usage

const result = await client.markAsUnread({
  chatId: "447123456789@c.us",
});
const result = await client.chats.markAsUnread({
  chatId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/chats/markAsUnread" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "chatId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

muteChat

Mute a chat

Overview

PropValue
Namespacechats
Actionupdate
Functionalityboth
Positional parameter orderchatId, muteDuration
Aliaseschats.mute
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/chats/mutemuteChatActive
AliasPUT/api/muteChatmuteChatActive

Usage

const result = await client.muteChat({
  chatId: "447123456789@c.us",
  muteDuration: 1,
});
const result = await client.chats.mute({
  chatId: "447123456789@c.us",
  muteDuration: 1,
});
curl -X PUT "http://localhost:8080/api/chats/mute" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "chatId": "447123456789@c.us",
    "muteDuration": 1
  }'

Parameters

Prop

Type

Output

PropValue
Return typestring | boolean | number

pinChat

Pin a chat

Overview

PropValue
Namespacechats
Actionupdate
Functionalityboth
Positional parameter orderchatId
Aliaseschats.pin
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/chats/pinpinChatActive
AliasPUT/api/pinChatpinChatActive

Usage

const result = await client.pinChat({
  chatId: "447123456789@c.us",
});
const result = await client.chats.pin({
  chatId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/chats/pin" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "chatId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

postImageStatusInsiders

Post image status

Overview

PropValue
Namespacestatus
Actionsend
Functionalityboth
Positional parameter orderimage, caption
Aliasesstatus.postImage
Deprecated aliases-
Licenseinsiders
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/status/postImagepostImageStatusActive
AliasPOST/api/postImageStatuspostImageStatusActive

Usage

const result = await client.postImageStatus({
  image: "image",
  caption: "caption",
});
const result = await client.status.postImage({
  image: "image",
  caption: "caption",
});
curl -X POST "http://localhost:8080/api/status/postImage" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "image": "image",
    "caption": "caption"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeunknown

postTextStatusInsiders

Post text status

Overview

PropValue
Namespacestatus
Actionsend
Functionalityboth
Positional parameter ordertext, backgroundColor, font
Aliasesstatus.postText
Deprecated aliases-
Licenseinsiders
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/status/postTextpostTextStatusActive
AliasPOST/api/postTextStatuspostTextStatusActive

Usage

const result = await client.postTextStatus({
  text: "text",
  backgroundColor: "backgroundColor",
  font: 1,
});
const result = await client.status.postText({
  text: "text",
  backgroundColor: "backgroundColor",
  font: 1,
});
curl -X POST "http://localhost:8080/api/status/postText" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "text": "text",
    "backgroundColor": "backgroundColor",
    "font": 1
  }'

Parameters

Prop

Type

Output

PropValue
Return typeunknown

postVideoStatusInsiders

Post video status

Overview

PropValue
Namespacestatus
Actionsend
Functionalityboth
Positional parameter ordervideo, caption
Aliasesstatus.postVideo
Deprecated aliases-
Licenseinsiders
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/status/postVideopostVideoStatusActive
AliasPOST/api/postVideoStatuspostVideoStatusActive

Usage

const result = await client.postVideoStatus({
  video: "video",
  caption: "caption",
});
const result = await client.status.postVideo({
  video: "video",
  caption: "caption",
});
curl -X POST "http://localhost:8080/api/status/postVideo" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "video": "video",
    "caption": "caption"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeunknown

promoteParticipant

Promote participant to admin

Overview

PropValue
Namespacegroups
Actionupdate
Functionalityboth
Positional parameter ordergroupId, contactId
Aliasesgroups.promoteParticipant, promoteGroupParticipant
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/groups/promoteParticipantpromoteParticipantActive
AliasPUT/api/promoteGroupParticipantpromoteGroupParticipantActive
AliasPUT/api/promoteParticipantpromoteParticipantActive

Usage

const result = await client.promoteParticipant({
  groupId: "447123456789-1445627445@g.us",
  contactId: "447123456789@c.us",
});
const result = await client.groups.promoteParticipant({
  groupId: "447123456789-1445627445@g.us",
  contactId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/groups/promoteParticipant" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "groupId": "447123456789-1445627445@g.us",
    "contactId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean | string

react

React to message with emoji

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter ordermessageId, emoji
Aliasesmessages.react
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/reactreactActive
AliasPOST/api/reactreactActive

Usage

const result = await client.react({
  messageId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
  emoji: "emoji",
});
const result = await client.messages.react({
  messageId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
  emoji: "emoji",
});
curl -X POST "http://localhost:8080/api/messages/react" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "messageId": "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
    "emoji": "emoji"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

rejectGroupJoinRequest

Reject group join request

Overview

PropValue
Namespacegroups
Actionupdate
Functionalityboth
Positional parameter ordergroupId, contactId
Aliasesgroups.rejectJoinRequest
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/groups/rejectJoinRequestrejectGroupJoinRequestActive
AliasPUT/api/rejectGroupJoinRequestrejectGroupJoinRequestActive

Usage

const result = await client.rejectGroupJoinRequest({
  groupId: "447123456789-1445627445@g.us",
  contactId: "447123456789@c.us",
});
const result = await client.groups.rejectJoinRequest({
  groupId: "447123456789-1445627445@g.us",
  contactId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/groups/rejectJoinRequest" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "groupId": "447123456789-1445627445@g.us",
    "contactId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typestring | boolean

removeLabel

Remove label from chat

Overview

PropValue
Namespacelabels
Actionupdate
Functionalitybusiness-only
Positional parameter orderlabel, chatId
Aliaseslabels.remove
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/labels/removeremoveLabelActive
AliasPUT/api/removeLabelremoveLabelActive

Usage

const result = await client.removeLabel({
  label: "label",
  chatId: "447123456789@c.us",
});
const result = await client.labels.remove({
  label: "label",
  chatId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/labels/remove" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "label": "label",
    "chatId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

removeParticipant

Remove participant from group

Overview

PropValue
Namespacegroups
Actionupdate
Functionalityboth
Positional parameter ordergroupId, contactId
Aliasesgroups.removeParticipant, removeGroupParticipant
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/groups/removeParticipantremoveParticipantActive
AliasPUT/api/removeGroupParticipantremoveGroupParticipantActive
AliasPUT/api/removeParticipantremoveParticipantActive

Usage

const result = await client.removeParticipant({
  groupId: "447123456789-1445627445@g.us",
  contactId: "447123456789@c.us",
});
const result = await client.groups.removeParticipant({
  groupId: "447123456789-1445627445@g.us",
  contactId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/groups/removeParticipant" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "groupId": "447123456789-1445627445@g.us",
    "contactId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

Revoke group invite link

Overview

PropValue
Namespacegroups
Actionupdate
Functionalityboth
Positional parameter ordergroupId
Aliasesgroups.revokeInviteLink
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/groups/revokeInviteLinkrevokeGroupInviteLinkActive
AliasPUT/api/revokeGroupInviteLinkrevokeGroupInviteLinkActive

Usage

const result = await client.revokeGroupInviteLink({
  groupId: "447123456789-1445627445@g.us",
});
const result = await client.groups.revokeInviteLink({
  groupId: "447123456789-1445627445@g.us",
});
curl -X PUT "http://localhost:8080/api/groups/revokeInviteLink" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "groupId": "447123456789-1445627445@g.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typestring | boolean

sendAdvancedButtonsInsiders

Sends an advanced button message with media (deprecated)

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, body, buttons, text, footer, filename
Aliasesmessages.sendAdvancedButtons
Deprecated aliases-
Licenseinsiders
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendAdvancedButtonssendAdvancedButtonsActive
AliasPOST/api/sendAdvancedButtonssendAdvancedButtonsActive

Usage

const result = await client.sendAdvancedButtons({
  to: "447123456789@c.us",
  body: "body",
  buttons: [],
  text: "text",
  footer: "footer",
  filename: "filename",
});
const result = await client.messages.sendAdvancedButtons({
  to: "447123456789@c.us",
  body: "body",
  buttons: [],
  text: "text",
  footer: "footer",
  filename: "filename",
});
curl -X POST "http://localhost:8080/api/messages/sendAdvancedButtons" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "body": "body",
    "buttons": [],
    "text": "text",
    "footer": "footer",
    "filename": "filename"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendAudio

Sends an audio file to a chat

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, file, filename, quotedMsgId
Aliasesmessages.sendAudio
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendAudiosendAudioActive
AliasPOST/api/sendAudiosendAudioActive

Usage

const result = await client.sendAudio({
  to: "447123456789@c.us",
  file: "data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAA...",
  filename: "document.pdf",
  quotedMsgId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
const result = await client.messages.sendAudio({
  to: "447123456789@c.us",
  file: "data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAA...",
  filename: "document.pdf",
  quotedMsgId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
curl -X POST "http://localhost:8080/api/messages/sendAudio" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "file": "data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAA...",
    "filename": "document.pdf",
    "quotedMsgId": "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendBanner

Sends a banner image

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, base64
Aliasesmessages.sendBanner
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendBannersendBannerActive
AliasPOST/api/sendBannersendBannerActive

Usage

const result = await client.sendBanner({
  to: "447123456789@c.us",
  base64: "base64",
});
const result = await client.messages.sendBanner({
  to: "447123456789@c.us",
  base64: "base64",
});
curl -X POST "http://localhost:8080/api/messages/sendBanner" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "base64": "base64"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendButtonsInsiders

Sends a button message (deprecated)

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, body, buttons, title, footer
Aliasesmessages.sendButtons
Deprecated aliases-
Licenseinsiders
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendButtonssendButtonsActive
AliasPOST/api/sendButtonssendButtonsActive

Usage

const result = await client.sendButtons({
  to: "447123456789@c.us",
  body: "body",
  buttons: [],
  title: "title",
  footer: "footer",
});
const result = await client.messages.sendButtons({
  to: "447123456789@c.us",
  body: "body",
  buttons: [],
  title: "title",
  footer: "footer",
});
curl -X POST "http://localhost:8080/api/messages/sendButtons" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "body": "body",
    "buttons": [],
    "title": "title",
    "footer": "footer"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendContact

Sends a single contact

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, contactId
Aliasesmessages.sendContact
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendContactsendContactActive
AliasPOST/api/sendContactsendContactActive

Usage

const result = await client.sendContact({
  to: "447123456789@c.us",
  contactId: [],
});
const result = await client.messages.sendContact({
  to: "447123456789@c.us",
  contactId: [],
});
curl -X POST "http://localhost:8080/api/messages/sendContact" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "contactId": []
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendFile

Sends a file or document to a chat

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, file, filename, caption
Aliasesmessages.sendFile
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendFilesendFileActive
AliasPOST/api/sendFilesendFileActive

Usage

const result = await client.sendFile({
  to: "447123456789@c.us",
  file: "data:application/pdf;base64,JVBERi0xLjQK...",
  filename: "document.pdf",
  caption: "Check out this image!",
});
const result = await client.messages.sendFile({
  to: "447123456789@c.us",
  file: "data:application/pdf;base64,JVBERi0xLjQK...",
  filename: "document.pdf",
  caption: "Check out this image!",
});
curl -X POST "http://localhost:8080/api/messages/sendFile" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "file": "data:application/pdf;base64,JVBERi0xLjQK...",
    "filename": "document.pdf",
    "caption": "Check out this image!"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | string

sendFileFromUrl

Downloads a file from a URL and sends it to a chat

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, url, filename, caption, headers
Aliasesmessages.sendFileFromUrl
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendFileFromUrlsendFileFromUrlActive
AliasPOST/api/sendFileFromUrlsendFileFromUrlActive

Usage

const result = await client.sendFileFromUrl({
  to: "447123456789@c.us",
  url: "url",
  filename: "filename",
  caption: "caption",
  headers: {},
});
const result = await client.messages.sendFileFromUrl({
  to: "447123456789@c.us",
  url: "url",
  filename: "filename",
  caption: "caption",
  headers: {},
});
curl -X POST "http://localhost:8080/api/messages/sendFileFromUrl" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "url": "url",
    "filename": "filename",
    "caption": "caption",
    "headers": {}
  }'

Parameters

Prop

Type

Output

PropValue
Return typestring | boolean

sendImage

Sends an image to a chat

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, imgData, filename, caption, id, waitForId
Aliasesmessages.sendImage
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendImagesendImageActive
AliasPOST/api/sendImagesendImageActive

Usage

const result = await client.sendImage({
  to: "447123456789@c.us",
  imgData: "data:image/png;base64,iVBORw0KGgo...",
  filename: "document.pdf",
  caption: "Check out this image!",
  id: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
  waitForId: true,
});
const result = await client.messages.sendImage({
  to: "447123456789@c.us",
  imgData: "data:image/png;base64,iVBORw0KGgo...",
  filename: "document.pdf",
  caption: "Check out this image!",
  id: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
  waitForId: true,
});
curl -X POST "http://localhost:8080/api/messages/sendImage" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "imgData": "data:image/png;base64,iVBORw0KGgo...",
    "filename": "document.pdf",
    "caption": "Check out this image!",
    "id": "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
    "waitForId": true
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean | string

sendLinkWithAutoPreview

Sends a link with auto-generated preview

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, url, text, thumbnail, quotedMsgId, customSize
Aliasesmessages.sendLink, messages.sendLinkWithAutoPreview, sendLink
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendLinkWithAutoPreviewsendLinkWithAutoPreviewActive
AliasPOST/api/messages/sendLinkmessages.sendLinkActive
AliasPOST/api/sendLinksendLinkActive
AliasPOST/api/sendLinkWithAutoPreviewsendLinkWithAutoPreviewActive

Usage

const result = await client.sendLinkWithAutoPreview({
  to: "447123456789@c.us",
  url: "url",
  text: "Hello, world!",
  thumbnail: "thumbnail",
  quotedMsgId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
  customSize: {},
});
const result = await client.messages.sendLinkWithAutoPreview({
  to: "447123456789@c.us",
  url: "url",
  text: "Hello, world!",
  thumbnail: "thumbnail",
  quotedMsgId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
  customSize: {},
});
curl -X POST "http://localhost:8080/api/messages/sendLinkWithAutoPreview" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "url": "url",
    "text": "Hello, world!",
    "thumbnail": "thumbnail",
    "quotedMsgId": "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
    "customSize": {}
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendListMessageInsiders

Sends a list/menu message (deprecated)

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, sections, title, description, actionText
Aliasesmessages.sendList, sendList
Deprecated aliases-
Licenseinsiders
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendListsendListMessageActive
AliasPOST/api/sendListsendListActive
AliasPOST/api/sendListMessagesendListMessageActive

Usage

const result = await client.sendListMessage({
  to: "447123456789@c.us",
  sections: [],
  title: "title",
  description: "description",
  actionText: "actionText",
});
const result = await client.messages.sendList({
  to: "447123456789@c.us",
  sections: [],
  title: "title",
  description: "description",
  actionText: "actionText",
});
curl -X POST "http://localhost:8080/api/messages/sendList" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "sections": [],
    "title": "title",
    "description": "description",
    "actionText": "actionText"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendLocation

Sends a location to a chat

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, lat, lng, loc, address, url
Aliasesmessages.sendLocation
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendLocationsendLocationActive
AliasPOST/api/sendLocationsendLocationActive

Usage

const result = await client.sendLocation({
  to: "447123456789@c.us",
  lat: 51.5074,
  lng: -0.1278,
  loc: "London, UK",
  address: "address",
  url: "url",
});
const result = await client.messages.sendLocation({
  to: "447123456789@c.us",
  lat: 51.5074,
  lng: -0.1278,
  loc: "London, UK",
  address: "address",
  url: "url",
});
curl -X POST "http://localhost:8080/api/messages/sendLocation" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "lat": 51.5074,
    "lng": -0.1278,
    "loc": "London, UK",
    "address": "address",
    "url": "url"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendMessageWithThumb

Sends a link preview message with custom thumbnail

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderthumb, url, title, description, content, to, quotedMsgId, customSize
Aliasesmessages.sendLinkWithThumbnail, messages.sendWithThumb, sendLinkWithThumbnail
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendLinkWithThumbnailsendMessageWithThumbActive
AliasPOST/api/messages/sendWithThumbmessages.sendWithThumbActive
AliasPOST/api/sendLinkWithThumbnailsendLinkWithThumbnailActive
AliasPOST/api/sendMessageWithThumbsendMessageWithThumbActive

Usage

const result = await client.sendMessageWithThumb({
  thumb: "thumb",
  url: "url",
  title: "title",
  description: "description",
  content: "Hello, world!",
  to: "447123456789@c.us",
  quotedMsgId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
  customSize: {},
});
const result = await client.messages.sendLinkWithThumbnail({
  thumb: "thumb",
  url: "url",
  title: "title",
  description: "description",
  content: "Hello, world!",
  to: "447123456789@c.us",
  quotedMsgId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
  customSize: {},
});
curl -X POST "http://localhost:8080/api/messages/sendLinkWithThumbnail" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "thumb": "thumb",
    "url": "url",
    "title": "title",
    "description": "description",
    "content": "Hello, world!",
    "to": "447123456789@c.us",
    "quotedMsgId": "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
    "customSize": {}
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendMultipleContacts

Sends multiple contacts

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, contactIds
Aliasesmessages.sendContacts, messages.sendMultipleContacts, sendContacts
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendContactssendMultipleContactsActive
AliasPOST/api/messages/sendMultipleContactsmessages.sendMultipleContactsActive
AliasPOST/api/sendContactssendContactsActive
AliasPOST/api/sendMultipleContactssendMultipleContactsActive

Usage

const result = await client.sendMultipleContacts({
  to: "447123456789@c.us",
  contactIds: "447123456789@c.us",
});
const result = await client.messages.sendContacts({
  to: "447123456789@c.us",
  contactIds: "447123456789@c.us",
});
curl -X POST "http://localhost:8080/api/messages/sendContacts" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "contactIds": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendPaymentRequest

Sends a payment request message

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, amount, currency, message
Aliasesmessages.sendPaymentRequest
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendPaymentRequestsendPaymentRequestActive
AliasPOST/api/sendPaymentRequestsendPaymentRequestActive

Usage

const result = await client.sendPaymentRequest({
  to: "447123456789@c.us",
  amount: 1,
  currency: "currency",
  message: "message",
});
const result = await client.messages.sendPaymentRequest({
  to: "447123456789@c.us",
  amount: 1,
  currency: "currency",
  message: "message",
});
curl -X POST "http://localhost:8080/api/messages/sendPaymentRequest" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "amount": 1,
    "currency": "currency",
    "message": "message"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendPoll

Sends a poll message

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, name, options, selectableCount
Aliasesmessages.sendPoll
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendPollsendPollActive
AliasPOST/api/sendPollsendPollActive

Usage

const result = await client.sendPoll({
  to: "447123456789@c.us",
  name: "name",
  options: [],
  selectableCount: 1,
});
const result = await client.messages.sendPoll({
  to: "447123456789@c.us",
  name: "name",
  options: [],
  selectableCount: 1,
});
curl -X POST "http://localhost:8080/api/messages/sendPoll" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "name": "name",
    "options": [],
    "selectableCount": 1
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendPtt

Sends a voice note (push-to-talk) to a chat

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, file, quotedMsgId
Aliasesmessages.sendPtt, messages.sendVoiceNote, sendVoiceNote
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendPttsendPttActive
AliasPOST/api/messages/sendVoiceNotemessages.sendVoiceNoteActive
AliasPOST/api/sendPttsendPttActive
AliasPOST/api/sendVoiceNotesendVoiceNoteActive

Usage

const result = await client.sendPtt({
  to: "447123456789@c.us",
  file: "data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAA...",
  quotedMsgId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
const result = await client.messages.sendPtt({
  to: "447123456789@c.us",
  file: "data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAA...",
  quotedMsgId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
curl -X POST "http://localhost:8080/api/messages/sendPtt" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "file": "data:audio/mpeg;base64,SUQzBAAAAAAAI1RTU0UAAAA...",
    "quotedMsgId": "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendReplyWithMentions

Sends a reply to a message that includes @mentions

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, content, replyMessageId, hideTags, mentions
Aliasesmessages.sendReplyWithMentions
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendReplyWithMentionssendReplyWithMentionsActive
AliasPOST/api/sendReplyWithMentionssendReplyWithMentionsActive

Usage

const result = await client.sendReplyWithMentions({
  to: "447123456789@c.us",
  content: "Hello, world!",
  replyMessageId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
  hideTags: true,
  mentions: ["447123456789@c.us","441234567890@c.us"],
});
const result = await client.messages.sendReplyWithMentions({
  to: "447123456789@c.us",
  content: "Hello, world!",
  replyMessageId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
  hideTags: true,
  mentions: ["447123456789@c.us","441234567890@c.us"],
});
curl -X POST "http://localhost:8080/api/messages/sendReplyWithMentions" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "content": "Hello, world!",
    "replyMessageId": "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
    "hideTags": true,
    "mentions": [
      "447123456789@c.us",
      "441234567890@c.us"
    ]
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendSeen

Mark message as seen

Overview

PropValue
Namespacemessages
Actionupdate
Functionalityboth
Positional parameter orderchatId
Aliasesmessages.sendSeen
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/messages/sendSeensendSeenActive
AliasPUT/api/sendSeensendSeenActive

Usage

const result = await client.sendSeen({
  chatId: "447123456789@c.us",
});
const result = await client.messages.sendSeen({
  chatId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/messages/sendSeen" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "chatId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

sendText

Sends a text message to a chat

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, content, options
Aliasesmessages.sendText
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendTextsendTextActive
AliasPOST/api/sendTextsendTextActive

Usage

const result = await client.sendText({
  to: "447123456789@c.us",
  content: "Hello, world!",
  options: {"quotedMsg":"messageId","mentionedJidList":["447123456789@c.us"]},
});
const result = await client.messages.sendText({
  to: "447123456789@c.us",
  content: "Hello, world!",
  options: {"quotedMsg":"messageId","mentionedJidList":["447123456789@c.us"]},
});
curl -X POST "http://localhost:8080/api/messages/sendText" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "content": "Hello, world!",
    "options": {
      "quotedMsg": "messageId",
      "mentionedJidList": [
        "447123456789@c.us"
      ]
    }
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean | string

sendTextWithMentions

Sends a text message that includes @mentions

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, content, hideTags, mentions
Aliasesmessages.sendTextWithMentions
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendTextWithMentionssendTextWithMentionsActive
AliasPOST/api/sendTextWithMentionssendTextWithMentionsActive

Usage

const result = await client.sendTextWithMentions({
  to: "447123456789@c.us",
  content: "Hello, world!",
  hideTags: true,
  mentions: ["447123456789@c.us","441234567890@c.us"],
});
const result = await client.messages.sendTextWithMentions({
  to: "447123456789@c.us",
  content: "Hello, world!",
  hideTags: true,
  mentions: ["447123456789@c.us","441234567890@c.us"],
});
curl -X POST "http://localhost:8080/api/messages/sendTextWithMentions" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "content": "Hello, world!",
    "hideTags": true,
    "mentions": [
      "447123456789@c.us",
      "441234567890@c.us"
    ]
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

sendVCard

Sends a contact card (vCard)

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, vcard, contactName, contactNumber
Aliasesmessages.sendVCard
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendVCardsendVCardActive
AliasPOST/api/sendVCardsendVCardActive

Usage

const result = await client.sendVCard({
  to: "447123456789@c.us",
  vcard: "vcard",
  contactName: "contactName",
  contactNumber: "contactNumber",
});
const result = await client.messages.sendVCard({
  to: "447123456789@c.us",
  vcard: "vcard",
  contactName: "contactName",
  contactNumber: "contactNumber",
});
curl -X POST "http://localhost:8080/api/messages/sendVCard" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "vcard": "vcard",
    "contactName": "contactName",
    "contactNumber": "contactNumber"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

sendVideoAsGif

Sends a video as an animated GIF

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, file, filename, caption, quotedMsgId
Aliasesmessages.sendVideoAsGif
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendVideoAsGifsendVideoAsGifActive
AliasPOST/api/sendVideoAsGifsendVideoAsGifActive

Usage

const result = await client.sendVideoAsGif({
  to: "447123456789@c.us",
  file: "data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21...",
  filename: "document.pdf",
  caption: "Check out this image!",
  quotedMsgId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
const result = await client.messages.sendVideoAsGif({
  to: "447123456789@c.us",
  file: "data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21...",
  filename: "document.pdf",
  caption: "Check out this image!",
  quotedMsgId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
curl -X POST "http://localhost:8080/api/messages/sendVideoAsGif" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "file": "data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21...",
    "filename": "document.pdf",
    "caption": "Check out this image!",
    "quotedMsgId": "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

Sends a YouTube link with auto-generated preview

Overview

PropValue
Namespacemessages
Actionsend
Functionalityboth
Positional parameter orderto, url, text, thumbnail, quotedMsgId, customSize
Aliasesmessages.sendYoutubeLink, messages.sendYouTubeLink, sendYoutubeLink
Deprecated aliasesmessages.sendYoutubeLink, sendYoutubeLink
Licensenone
WAPI overridesendYoutubeLink
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPOST/api/messages/sendYouTubeLinksendYouTubeLinkActive
Deprecated aliasPOST/api/messages/sendYoutubeLinkmessages.sendYoutubeLinkDeprecated
Deprecated aliasPOST/api/sendYoutubeLinksendYoutubeLinkDeprecated
AliasPOST/api/sendYouTubeLinksendYouTubeLinkActive

Usage

const result = await client.sendYouTubeLink({
  to: "447123456789@c.us",
  url: "url",
  text: "Hello, world!",
  thumbnail: "thumbnail",
  quotedMsgId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
  customSize: {},
});
const result = await client.messages.sendYouTubeLink({
  to: "447123456789@c.us",
  url: "url",
  text: "Hello, world!",
  thumbnail: "thumbnail",
  quotedMsgId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
  customSize: {},
});
curl -X POST "http://localhost:8080/api/messages/sendYouTubeLink" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "to": "447123456789@c.us",
    "url": "url",
    "text": "Hello, world!",
    "thumbnail": "thumbnail",
    "quotedMsgId": "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
    "customSize": {}
  }'

Parameters

Prop

Type

Output

PropValue
Return typeobject { _serialized } | boolean

setChatEphemeral

Set ephemeral messages for chat

Overview

PropValue
Namespacechats
Actionupdate
Functionalityboth
Positional parameter orderchatId, ephemeral
Aliaseschats.setEphemeral
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/chats/setEphemeralsetChatEphemeralActive
AliasPUT/api/setChatEphemeralsetChatEphemeralActive

Usage

const result = await client.setChatEphemeral({
  chatId: "447123456789@c.us",
  ephemeral: 1,
});
const result = await client.chats.setEphemeral({
  chatId: "447123456789@c.us",
  ephemeral: 1,
});
curl -X PUT "http://localhost:8080/api/chats/setEphemeral" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "chatId": "447123456789@c.us",
    "ephemeral": 1
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

setGroupDescription

Set group description

Overview

PropValue
Namespacegroups
Actionupdate
Functionalityboth
Positional parameter ordergroupId, description
Aliasesgroups.setDescription
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/groups/setDescriptionsetGroupDescriptionActive
AliasPUT/api/setGroupDescriptionsetGroupDescriptionActive

Usage

const result = await client.setGroupDescription({
  groupId: "447123456789-1445627445@g.us",
  description: "description",
});
const result = await client.groups.setDescription({
  groupId: "447123456789-1445627445@g.us",
  description: "description",
});
curl -X PUT "http://localhost:8080/api/groups/setDescription" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "groupId": "447123456789-1445627445@g.us",
    "description": "description"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

setGroupEditToAdminsOnly

Restrict group editing to admins only

Overview

PropValue
Namespacegroups
Actionupdate
Functionalityboth
Positional parameter ordergroupId, onlyAdmins
Aliasesgroups.setEditAdminsOnly, groups.setEditToAdminsOnly
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/groups/setEditAdminsOnlysetGroupEditToAdminsOnlyActive
AliasPUT/api/groups/setEditToAdminsOnlygroups.setEditToAdminsOnlyActive
AliasPUT/api/setGroupEditToAdminsOnlysetGroupEditToAdminsOnlyActive

Usage

const result = await client.setGroupEditToAdminsOnly({
  groupId: "447123456789-1445627445@g.us",
  onlyAdmins: true,
});
const result = await client.groups.setEditAdminsOnly({
  groupId: "447123456789-1445627445@g.us",
  onlyAdmins: true,
});
curl -X PUT "http://localhost:8080/api/groups/setEditAdminsOnly" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "groupId": "447123456789-1445627445@g.us",
    "onlyAdmins": true
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

setGroupIcon

Set group icon

Overview

PropValue
Namespacegroups
Actionupdate
Functionalityboth
Positional parameter ordergroupId, image
Aliasesgroups.setIcon
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/groups/setIconsetGroupIconActive
AliasPUT/api/setGroupIconsetGroupIconActive

Usage

const result = await client.setGroupIcon({
  groupId: "447123456789-1445627445@g.us",
  image: "image",
});
const result = await client.groups.setIcon({
  groupId: "447123456789-1445627445@g.us",
  image: "image",
});
curl -X PUT "http://localhost:8080/api/groups/setIcon" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "groupId": "447123456789-1445627445@g.us",
    "image": "image"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

setGroupTitle

Set group title

Overview

PropValue
Namespacegroups
Actionupdate
Functionalityboth
Positional parameter ordergroupId, title
Aliasesgroups.setTitle
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/groups/setTitlesetGroupTitleActive
AliasPUT/api/setGroupTitlesetGroupTitleActive

Usage

const result = await client.setGroupTitle({
  groupId: "447123456789-1445627445@g.us",
  title: "title",
});
const result = await client.groups.setTitle({
  groupId: "447123456789-1445627445@g.us",
  title: "title",
});
curl -X PUT "http://localhost:8080/api/groups/setTitle" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "groupId": "447123456789-1445627445@g.us",
    "title": "title"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

setGroupToAdminsOnly

Restrict group to admins only

Overview

PropValue
Namespacegroups
Actionupdate
Functionalityboth
Positional parameter ordergroupId, onlyAdmins
Aliasesgroups.setAdminsOnly, groups.setToAdminsOnly
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/groups/setAdminsOnlysetGroupToAdminsOnlyActive
AliasPUT/api/groups/setToAdminsOnlygroups.setToAdminsOnlyActive
AliasPUT/api/setGroupToAdminsOnlysetGroupToAdminsOnlyActive

Usage

const result = await client.setGroupToAdminsOnly({
  groupId: "447123456789-1445627445@g.us",
  onlyAdmins: true,
});
const result = await client.groups.setAdminsOnly({
  groupId: "447123456789-1445627445@g.us",
  onlyAdmins: true,
});
curl -X PUT "http://localhost:8080/api/groups/setAdminsOnly" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "groupId": "447123456789-1445627445@g.us",
    "onlyAdmins": true
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

setMyName

Set host name

Overview

PropValue
Namespacesession
Actionupdate
Functionalitypersonal-only
Positional parameter ordername
Aliasessession.setDisplayName, session.setMyName, session.setName, setDisplayName
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/session/setNamesetMyNameActive
AliasPUT/api/session/setDisplayNamesession.setDisplayNameActive
AliasPUT/api/session/setMyNamesession.setMyNameActive
AliasPUT/api/setDisplayNamesetDisplayNameActive
AliasPUT/api/setMyNamesetMyNameActive

Usage

const result = await client.setMyName({
  name: "OpenWA Bot",
});
const result = await client.session.setName({
  name: "OpenWA Bot",
});
curl -X PUT "http://localhost:8080/api/session/setName" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "name": "OpenWA Bot"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

setMyStatus

Set host status

Overview

PropValue
Namespacesession
Actionupdate
Functionalityboth
Positional parameter orderstatusText
Aliasessession.setMyStatus, session.setStatus, session.setStatusText, setStatusText
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/session/setStatussetMyStatusActive
AliasPUT/api/session/setMyStatussession.setMyStatusActive
AliasPUT/api/session/setStatusTextsession.setStatusTextActive
AliasPUT/api/setMyStatussetMyStatusActive
AliasPUT/api/setStatusTextsetStatusTextActive

Usage

const result = await client.setMyStatus({
  statusText: "Available",
});
const result = await client.session.setStatus({
  statusText: "Available",
});
curl -X PUT "http://localhost:8080/api/session/setStatus" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "statusText": "Available"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

setProfilePictureInsiders

Set profile picture

Overview

PropValue
Namespacesession
Actionupdate
Functionalityboth
Positional parameter orderimage
Aliasessession.setProfilePic, session.setProfilePicture, setProfilePic
Deprecated aliasessession.setProfilePic, setProfilePic
Licenseinsiders
WAPI overridesetProfilePic
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/session/setProfilePicturesetProfilePictureActive
Deprecated aliasPUT/api/session/setProfilePicsession.setProfilePicDeprecated
Deprecated aliasPUT/api/setProfilePicsetProfilePicDeprecated
AliasPUT/api/setProfilePicturesetProfilePictureActive

Usage

const result = await client.setProfilePicture({
  image: "data:image/png;base64,iVBORw0KGgo...",
});
const result = await client.session.setProfilePicture({
  image: "data:image/png;base64,iVBORw0KGgo...",
});
curl -X PUT "http://localhost:8080/api/session/setProfilePicture" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "image": "data:image/png;base64,iVBORw0KGgo..."
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

starMessage

Star a message

Overview

PropValue
Namespacemessages
Actionupdate
Functionalityboth
Positional parameter ordermessageId
Aliasesmessages.star
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/messages/starstarMessageActive
AliasPUT/api/starMessagestarMessageActive

Usage

const result = await client.starMessage({
  messageId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
const result = await client.messages.star({
  messageId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
curl -X PUT "http://localhost:8080/api/messages/star" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "messageId": "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

unarchiveChat

Unarchive a chat

Overview

PropValue
Namespacechats
Actionupdate
Functionalityboth
Positional parameter orderchatId
Aliaseschats.unarchive
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/chats/unarchiveunarchiveChatActive
AliasPUT/api/unarchiveChatunarchiveChatActive

Usage

const result = await client.unarchiveChat({
  chatId: "447123456789@c.us",
});
const result = await client.chats.unarchive({
  chatId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/chats/unarchive" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "chatId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

unblockContact

Unblock a contact

Overview

PropValue
Namespacecontacts
Actionupdate
Functionalityboth
Positional parameter ordercontactId
Aliasescontacts.contactUnblock, contacts.unblock, contactUnblock
Deprecated aliasescontacts.contactUnblock, contactUnblock
Licensenone
WAPI overridecontactUnblock
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/contacts/unblockunblockContactActive
Deprecated aliasPUT/api/contacts/contactUnblockcontacts.contactUnblockDeprecated
Deprecated aliasPUT/api/contactUnblockcontactUnblockDeprecated
AliasPUT/api/unblockContactunblockContactActive

Usage

const result = await client.unblockContact({
  contactId: "447123456789@c.us",
});
const result = await client.contacts.unblock({
  contactId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/contacts/unblock" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "contactId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

unmuteChat

Unmute a chat

Overview

PropValue
Namespacechats
Actionupdate
Functionalityboth
Positional parameter orderchatId
Aliaseschats.unmute
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/chats/unmuteunmuteChatActive
AliasPUT/api/unmuteChatunmuteChatActive

Usage

const result = await client.unmuteChat({
  chatId: "447123456789@c.us",
});
const result = await client.chats.unmute({
  chatId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/chats/unmute" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "chatId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typestring | boolean | number

unpinChat

Unpin a chat

Overview

PropValue
Namespacechats
Actionupdate
Functionalityboth
Positional parameter orderchatId
Aliaseschats.unpin
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/chats/unpinunpinChatActive
AliasPUT/api/unpinChatunpinChatActive

Usage

const result = await client.unpinChat({
  chatId: "447123456789@c.us",
});
const result = await client.chats.unpin({
  chatId: "447123456789@c.us",
});
curl -X PUT "http://localhost:8080/api/chats/unpin" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "chatId": "447123456789@c.us"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean

unstarMessage

Unstar a message

Overview

PropValue
Namespacemessages
Actionupdate
Functionalityboth
Positional parameter ordermessageId
Aliasesmessages.unstar
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryPUT/api/messages/unstarunstarMessageActive
AliasPUT/api/unstarMessageunstarMessageActive

Usage

const result = await client.unstarMessage({
  messageId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
const result = await client.messages.unstar({
  messageId: "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB",
});
curl -X PUT "http://localhost:8080/api/messages/unstar" \
  -H "content-type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data '{
    "messageId": "false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB"
  }'

Parameters

Prop

Type

Output

PropValue
Return typeboolean
Wally the Walrus typing

Was this helpful?

Wally and his cute companion coffee mug are coding day and night to keep this up-to-date!

On this page

Client ReferenceaddLabelOverviewRoutesUsageParametersOutputaddParticipantOverviewRoutesUsageParametersOutputapproveGroupJoinRequestOverviewRoutesUsageParametersOutputarchiveChatOverviewRoutesUsageParametersOutputblockContactOverviewRoutesUsageParametersOutputcheckNumberStatus - insidersOverviewRoutesUsageParametersOutputcheckReadReceiptsOverviewRoutesUsageParametersOutputclearChatOverviewRoutesUsageParametersOutputcreateGroup - restrictedOverviewRoutesUsageParametersOutputdecryptMediaOverviewRoutesUsageParametersOutputdeleteAllStatus - insidersOverviewRoutesUsageParametersOutputdeleteChatOverviewRoutesUsageParametersOutputdeleteMessageOverviewRoutesUsageParametersOutputdeleteStatus - insidersOverviewRoutesUsageParametersOutputdemoteParticipantOverviewRoutesUsageParametersOutputdownloadMediaOverviewRoutesUsageParametersOutputforwardMessagesOverviewRoutesUsageParametersOutputgetAllChatIdsOverviewRoutesUsageParametersOutputgetAllChatsOverviewRoutesUsageParametersOutputgetAllCommunitiesOverviewRoutesUsageParametersOutputgetAllContactsOverviewRoutesUsageParametersOutputgetAllGroupsOverviewRoutesUsageParametersOutputgetAllLabelsOverviewRoutesUsageParametersOutputgetAllMessagesOverviewRoutesUsageParametersOutputgetBatteryLevelOverviewRoutesUsageParametersOutputgetBlockedIdsOverviewRoutesUsageParametersOutputgetBusinessProductsOverviewRoutesUsageParametersOutputgetBusinessProfileOverviewRoutesUsageParametersOutputgetChatOverviewRoutesUsageParametersOutputgetChatsByLabelOverviewRoutesUsageParametersOutputgetChatWithNonContactsOverviewRoutesUsageParametersOutputgetCommonGroupsOverviewRoutesUsageParametersOutputgetCommunityAdminIdsOverviewRoutesUsageParametersOutputgetCommunityAdminsOverviewRoutesUsageParametersOutputgetCommunityInfoOverviewRoutesUsageParametersOutputgetCommunityParticipantIdsOverviewRoutesUsageParametersOutputgetCommunityParticipantsOverviewRoutesUsageParametersOutputgetConnectionStateOverviewRoutesUsageParametersOutputgetContactOverviewRoutesUsageParametersOutputgetFeaturesOverviewRoutesUsageParametersOutputgetGroupAdminsOverviewRoutesUsageParametersOutputgetGroupInfoOverviewRoutesUsageParametersOutputgetGroupInviteLinkOverviewRoutesUsageParametersOutputgetGroupMembersOverviewRoutesUsageParametersOutputgetGroupMembersIdOverviewRoutesUsageParametersOutputgetHostNumberOverviewRoutesUsageParametersOutputgetKickedGroupsOverviewRoutesUsageParametersOutputgetLicenseTypeOverviewRoutesUsageParametersOutputgetLoadedMessageCountOverviewRoutesUsageParametersOutputgetMeOverviewRoutesUsageParametersOutputgetMessageByIdOverviewRoutesUsageParametersOutputgetMessageInfoOverviewRoutesUsageParametersOutputgetMessagesForLLMOverviewRoutesUsageParametersOutputgetMyLastMessageOverviewRoutesUsageParametersOutputgetNumberProfile - insidersOverviewRoutesUsageParametersOutputgetOrder - insidersOverviewRoutesUsageParametersOutputgetProcessStatsOverviewRoutesUsageParametersOutputgetProfilePictureOverviewRoutesUsageParametersOutputgetSnapshotOverviewRoutesUsageParametersOutputgetStarredMessages - insidersOverviewRoutesUsageParametersOutputgetStatus - insidersOverviewRoutesUsageParametersOutputgetStories - insidersOverviewRoutesUsageParametersOutputgetUnsentMessagesOverviewRoutesUsageParametersOutputgetUserAgentOverviewRoutesUsageParametersOutputgetVCardsOverviewRoutesUsageParametersOutputgetWAVersionOverviewRoutesUsageParametersOutputhealthCheckOverviewRoutesUsageParametersOutputisChatOnlineOverviewRoutesUsageParametersOutputisPluggedOverviewRoutesUsageParametersOutputjoinGroupViaLink - restrictedOverviewRoutesUsageParametersOutputleaveGroupOverviewRoutesUsageParametersOutputloadEarlierMessagesOverviewRoutesUsageParametersOutputmarkAsReadOverviewRoutesUsageParametersOutputmarkAsUnreadOverviewRoutesUsageParametersOutputmuteChatOverviewRoutesUsageParametersOutputpinChatOverviewRoutesUsageParametersOutputpostImageStatus - insidersOverviewRoutesUsageParametersOutputpostTextStatus - insidersOverviewRoutesUsageParametersOutputpostVideoStatus - insidersOverviewRoutesUsageParametersOutputpromoteParticipantOverviewRoutesUsageParametersOutputreactOverviewRoutesUsageParametersOutputrejectGroupJoinRequestOverviewRoutesUsageParametersOutputremoveLabelOverviewRoutesUsageParametersOutputremoveParticipantOverviewRoutesUsageParametersOutputrevokeGroupInviteLinkOverviewRoutesUsageParametersOutputsendAdvancedButtons - insidersOverviewRoutesUsageParametersOutputsendAudioOverviewRoutesUsageParametersOutputsendBannerOverviewRoutesUsageParametersOutputsendButtons - insidersOverviewRoutesUsageParametersOutputsendContactOverviewRoutesUsageParametersOutputsendFileOverviewRoutesUsageParametersOutputsendFileFromUrlOverviewRoutesUsageParametersOutputsendImageOverviewRoutesUsageParametersOutputsendLinkWithAutoPreviewOverviewRoutesUsageParametersOutputsendListMessage - insidersOverviewRoutesUsageParametersOutputsendLocationOverviewRoutesUsageParametersOutputsendMessageWithThumbOverviewRoutesUsageParametersOutputsendMultipleContactsOverviewRoutesUsageParametersOutputsendPaymentRequestOverviewRoutesUsageParametersOutputsendPollOverviewRoutesUsageParametersOutputsendPttOverviewRoutesUsageParametersOutputsendReplyWithMentionsOverviewRoutesUsageParametersOutputsendSeenOverviewRoutesUsageParametersOutputsendTextOverviewRoutesUsageParametersOutputsendTextWithMentionsOverviewRoutesUsageParametersOutputsendVCardOverviewRoutesUsageParametersOutputsendVideoAsGifOverviewRoutesUsageParametersOutputsendYouTubeLinkOverviewRoutesUsageParametersOutputsetChatEphemeralOverviewRoutesUsageParametersOutputsetGroupDescriptionOverviewRoutesUsageParametersOutputsetGroupEditToAdminsOnlyOverviewRoutesUsageParametersOutputsetGroupIconOverviewRoutesUsageParametersOutputsetGroupTitleOverviewRoutesUsageParametersOutputsetGroupToAdminsOnlyOverviewRoutesUsageParametersOutputsetMyNameOverviewRoutesUsageParametersOutputsetMyStatusOverviewRoutesUsageParametersOutputsetProfilePicture - insidersOverviewRoutesUsageParametersOutputstarMessageOverviewRoutesUsageParametersOutputunarchiveChatOverviewRoutesUsageParametersOutputunblockContactOverviewRoutesUsageParametersOutputunmuteChatOverviewRoutesUsageParametersOutputunpinChatOverviewRoutesUsageParametersOutputunstarMessageOverviewRoutesUsageParametersOutput