OverviewProductsPlatformsAPI ReferenceResources
WhatsApp

Approve join requests

POSThttps://zernio.com/api/v1/whatsapp/wa-groups/{groupId}/join-requests

Approve pending join requests for a WhatsApp group.

Not available on Coexistence numbers. Requires a Cloud API-only number.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

groupIdstringRequired

Group ID

Query parameters

accountIdstringRequired

WhatsApp account ID

Body

application/json

What every request needs

phoneNumbersarray of stringsRequired

Phone numbers to approve

Responses

Success· the request worked

Errors· the request failed

POST/v1/whatsapp/wa-groups/{groupId}/join-requests
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsapp.approveWhatsAppGroupJoinRequests({  path: {    groupId: 'group_abc123',  },  query: {    accountId: 'account_abc123',  },  body: {    phoneNumbers: [      'string',    ],  },});console.log(data);
{  "success": true,  "message": "string"}
OpenAPI specification
Was this page helpful?