Skip to main content
Node.js

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-phone
string
required

Required. The phone that joins the group — this WhatsApp action is performed by this phone. Use country code + number format with no spaces or special characters (e.g. 919876543210), or the phone_id (phone-xxxxxxxxxxxx). This header is mandatory for this endpoint: the request is rejected with Missing Header: {x-phone} if it is not provided. Passing a phone that is outside your token's scope returns a 401.

Example:

"{{orgPhone}}"

Body

application/json
invite_code
string
required
  • Provide the invite code to accept the group invite
Example:

"EUKdz8Sdy9T2UWPnOKGkxx"

Response

200 - application/json

200 OK

The response is a chat object. Refer to the chat object here