whatsapp
Reject join requests
Reject pending join requests for a WhatsApp group. Not available on [Coexistence](/platforms/whatsapp#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
groupIdstring
Group ID
Query Parameters
accountIdstring
WhatsApp social account ID
phoneNumbersarray<string>
Phone numbers to reject
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsapp.rejectWhatsAppGroupJoinRequests({ path: { groupId: 'group_abc123', }, query: { accountId: 'account_abc123', }, body: { phoneNumbers: [ 'string', ], },});console.log(data);{
"success": true,
"message": "string"
}{
"error": "Unauthorized"
}Approve join requests POST
Approve pending join requests for a WhatsApp group. Not available on [Coexistence](/platforms/whatsapp#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.
List templates GET
List all message templates for the WhatsApp Business Account (WABA) associated with the given account. Templates are fetched directly from the WhatsApp Cloud API.