logo
enes

Participants and invitations

Last update: 6 hours ago by Irais Aguirre

Manage group participants and invitations: invite links, join requests, and removing participants.

Integration summary

  • Base URL: https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services
  • Token: admin token, in the Authorization: Bearer {{admin-token}} header (how to generate it)
  • Endpoints on this page:
    • GET /v1/group/{{waba_id}}/{{group_id}}/invite_link: Get group invite link
    • PUT /v1/group/{{waba_id}}/{{group_id}}/invite_link: Reset group invite link
    • GET /v1/group/{{waba_id}}/{{group_id}}/join_requests: Get group join requests
    • POST /v1/group/{{waba_id}}/{{group_id}}/join_requests: Approve group join requests
    • PUT /v1/group/{{waba_id}}/{{group_id}}/join_requests: Reject group join requests
    • PUT /v1/group/{{waba_id}}/{{group_id}}/participants: Remove group participants

Get group join requests

Returns the list of open join requests for a group that requires approval.

Request

Get group join requests request:

URLhttps://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/group/{{waba_id}}/{{group_id}}/join_requests
MethodGET

Headers

Get group join requests headers:

NameDescriptionTypeRequirements
AuthorizationAdmin token. See Generate authentication token.StringRequired

Parameters

Get group join requests parameters:

NameDescriptionTypeRequirements
waba_idWhatsApp Business Account ID.StringRequired
group_idGroup ID.StringRequired

Example

Complete Get group join requests example:

curl --location 'https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/group/{{waba_id}}/{{group_id}}/join_requests' \
--header 'Authorization: Bearer {{admin-token}}'

Response

Get group join requests response:

NameDescriptionType
dataList of open join requests. Each object contains join_request_id, wa_id, and creation_timestamp.Object list
{
"data": [
{
"join_request_id": "MTY0NjcwNDM1OTU6MTIwMzYzNDA0Njk0MjMzODIw",
"wa_id": "16505551234",
"creation_timestamp": "1755548877"
}
]
}


Approve group join requests

Applies only to groups created with join_approval_mode set to require approval. Lets you approve, in bulk, pending requests from users who want to join through the invite link.

Request

Approve group join requests request:

URLhttps://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/group/{{waba_id}}/{{group_id}}/join_requests
MethodPOST
Typeapplication/json

Headers

Approve group join requests headers:

NameDescriptionTypeRequirements
Content-Typeapplication/jsonStringRequired
AuthorizationAdmin token. See Generate authentication token.StringRequired

Parameters

Approve group join requests parameters:

NameDescriptionTypeRequirements
waba_idWhatsApp Business Account ID.StringRequired
group_idGroup ID.StringRequired

Body

Approve group join requests body fields:

NameDescriptionTypeRequirements
join_requestsList of IDs (join_request_id) of the join requests to approve.Array of stringsRequired

Example

Complete Approve group join requests example:

curl --location 'https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/group/{{waba_id}}/{{group_id}}/join_requests' \
--header 'Authorization: Bearer {{admin-token}}' \
--header 'Content-Type: application/json' \
--data '{
"join_requests": [
"{{join_request_id}}"
]
}'

Response

Approve group join requests response:

NameDescriptionType
approved_join_requestsList of IDs of the join requests that were approved.Array of strings
{
"approved_join_requests": [
"NTIxMjcyMjE1OTgwMToxMjAzNjM0Mjg5OTE4MTE1ODAZD"
]
}


Reject group join requests

Rejects one or more pending join requests in bulk, identified by their join_request_id.

Request

Reject group join requests request:

URLhttps://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/group/{{waba_id}}/{{group_id}}/join_requests
MethodPUT
Typeapplication/json

Headers

Reject group join requests headers:

NameDescriptionTypeRequirements
Content-Typeapplication/jsonStringRequired
AuthorizationAdmin token. See Generate authentication token.StringRequired

Parameters

Reject group join requests parameters:

NameDescriptionTypeRequirements
waba_idWhatsApp Business Account ID.StringRequired
group_idGroup ID.StringRequired

Body

Reject group join requests body fields:

NameDescriptionTypeRequirements
join_requestsList of IDs of the join requests to reject.Array of stringsRequired

Example

Complete Reject group join requests example:

curl --location --request PUT 'https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/group/{{waba_id}}/{{group_id}}/join_requests' \
--header 'Authorization: Bearer {{admin-token}}' \
--header 'Content-Type: application/json' \
--data '{
"join_requests": [
"{{join_request_id}}"
]
}'

Response

Reject group join requests response:

NameDescriptionType
rejected_join_requestsList of IDs of the join requests that were successfully rejected.Array of strings
failed_join_requestsOnly included if one or more requests couldn't be rejected. Each item contains join_request_id (String) and errors (list of objects with code Integer, title String, message String, and error_data Object).Object list
errorsList of overall request errors. Each error contains code (Integer), title (String), message (String), and error_data (Object).Object list
{
"rejected_join_requests": [
"NTIxMjcyMjE1OTgwMToxMjAzNjM0Mjg5OTE4MTE1ODAZD"
],
"failed_join_requests": [
{
"join_request_id": "{{join_request_id}}",
"errors": [
{
"code": 100,
"title": "Invalid parameter",
"message": "Join request not found",
"error_data": {}
}
]
}
],
"errors": []
}


Remove group participants

Removes one or more participants from the group (up to 8 per request). There is no endpoint to add participants: users always join by invitation. A removed user can't rejoin the same group. The operation is asynchronous: the request returns a request_id, and the result is confirmed by webhook.

Request

Remove group participants request:

URLhttps://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/group/{{waba_id}}/{{group_id}}/participants
MethodPUT
Typeapplication/json

Headers

Remove group participants headers:

NameDescriptionTypeRequirements
Content-Typeapplication/jsonStringRequired
AuthorizationAdmin token. See Generate authentication token.StringRequired

Parameters

Remove group participants parameters:

NameDescriptionTypeRequirements
waba_idWhatsApp Business Account ID.StringRequired
group_idGroup ID.StringRequired

Body

Remove group participants body fields:

NameDescriptionTypeRequirements
participantsList of { "user": "<phone_number_or_wa_id>" } objects to remove. Maximum 8. Can't be empty. Each object has a user field (String, required) with the phone number or WhatsApp ID.List of objectsRequired

Example

Complete Remove group participants example:

curl --location --request PUT 'https://{{url}}/whatsapp-bsp-admin-ext-endpoint-ws/services/v1/group/{{waba_id}}/{{group_id}}/participants' \
--header 'Authorization: Bearer {{admin-token}}' \
--header 'Content-Type: application/json' \
--data '{
"participants": [
{ "user": "5212722159801" }
]
}'

Response

Remove group participants response:

NameDescriptionType
request_idUnique request ID. Removal is asynchronous; the result is confirmed by webhook.String
{
"request_id": "384EE736D97215A005AF71B3482C5DB5"
}

Previous
Manage groups
Next — WhatsApp
Block users