Adds an invite link for an Instant Messaging (IM) group.
Operation description
The API for adding invite links to IM groups is in beta testing on Meta. Contact your account manager to add your account to the allowlist.
-
Before you call this operation, make sure that an IM group has been created.
-
If you do not have an IM group, call the AddChatGroup operation to create one.
-
After you add an invite link by calling this operation, you can use the link to invite members to the group.
-
Currently, members can join an IM group only using an invite link.
-
A WhatsApp group can have a maximum of 8 members.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cams:AddChatGroupInviteLink |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BusinessNumber |
string |
Yes |
The business phone number. To obtain this number, call the ListChatGroup operation. |
8613800*** |
| ChannelType |
string |
No |
The type. Valid value:
Note
Currently, only the WhatsApp channel type is supported. Valid values:
|
|
| GroupId |
string |
Yes |
The group ID. To obtain this ID, call the ListChatGroup operation. |
E93kdk**** |
| CustSpaceId |
string |
Yes |
The SpaceId or instance ID of the ISV sub-customer. This is the channel ID. View the channel ID on the Channel Management page. |
cams-x*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
Details about the access denial. |
None |
| Message |
string |
The error message. |
None |
| RequestId |
string |
The request ID. |
90E63D28-E31D-1EB2-8939-A94866411B2O |
| InviteLink |
string |
The invite link. |
https://chat.whatsapp.com/**** |
| Code |
string |
The request status code. Valid values:
|
OK |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"AccessDeniedDetail": "None",
"Message": "None",
"RequestId": "90E63D28-E31D-1EB2-8939-A94866411B2O\n",
"InviteLink": "https://chat.whatsapp.com/****",
"Code": "OK",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.