Description
The routes on this page are about the WhatsApp account connected to the instance: the privacy settings and the presence (online or offline). The routes apply only to the unofficial connection (device). On another
instance type, the response is 422 with
code: "UNSUPPORTED_FOR_INSTANCE_TYPE".
Privacy
Query the privacy
GET /{instanceId}/profile/privacy
null.
Change the privacy
PATCH /{instanceId}/profile/privacy
messages,defense, andstickersare read-only.- A value that the setting does not accept responds
400.
With
readReceipts set to none, the account also stops seeing the read
receipts of the contacts. The Mark as read
route does not show the blue ticks to the sender.Account presence
POST /{instanceId}/profile/presence
available) or offline
(unavailable) for the contacts. The API responds 204, with no body.
- The instance goes online at each connection. After a reconnection, send
unavailableagain if you want the account offline. - When offline, the account does not receive the
presence.updateevent of the subscribed contacts.