POST
Create Admin Invite
Send a channel admin invite message to a contact.
API endpoint
https://waclient.com/api/create_channel_admin_inviteExample:
curl -X POST \
'https://waclient.com/api/create_channel_admin_invite' \
-H 'Content-Type: application/json' \
--data '{
"channel_id": "1203634123522XXXXX@newsletter",
"number": "20100981XXXX",
"expiration": "86400",
"instance_id": "6A4B02A1XXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'Response
{
"status": "success",
"message": "Success",
"data": {
"channel_id": "1203634123522XXXXX@newsletter",
"recipient": "[email protected]"
}
}| Parameter | Description |
|---|---|
| channel_id | Channel JID (WhatsApp uses @newsletter suffix), e.g. 1203634123522XXXXX@newsletter |
| number | Phone number or WhatsApp JID, e.g. 20100981XXXX |
| message | Optional caption (Optional) |
| expiration | Invite TTL in seconds (Optional) |
| instance_id | Your instance ID |
| access_token | Your access token |