Skip to main content
WPPConnect Server, a self-hosted gateway on WhatsApp Web (WA-JS). REST with a Bearer token; webhooks authenticated with a token in the webhook URL.

Install

Usage

  • ingest() is async and takes the request URL as third argument, because wppconnect-server cannot add headers: the token travels in the query string.
  • Unknown LIDs are resolved to phone numbers (contact/pn-lid) before emitting.
  • markRead marks the whole chat as seen; buttons and lists degrade to numbered text.
  • The connection follows the server’s status-find webhooks: isLogged / qrReadSuccess → ready, notLogged and qrcode → authenticating, unlinking the device from the phone (disconnectedMobile) → closed with sessionInvalid. bot.stop() does not close the session on the server.

Next steps