curl --request POST \
  --url https://api.periskope.app/v1/chats/{chat_id}/invite \
  --header 'Authorization: Bearer <token>'
{
  "invite_link": "https://chat.whatsapp.com/invite/IzKhJSOewu2MwBxYVGofA"
}

Authorizations

Authorization
string
header
required

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

Headers

x-phone
string

Please provide the number of the phone you want to call with this API in the header. The number must be in country code + number format without any characters or spaces, e.g. 919876543210; Alternatively, provide the phone_id (phone-xxxxxxxxxxxx) in the header

Example:

"{{orgPhone}}"

Path Parameters

chat_id
string
required

ID of the chat

Response

200 - application/json
Successful operation

WhatsApp invite link

Example:

"https://chat.whatsapp.com/invite/IzKhJSOewu2MwBxYVGofA"