Node.js
// Requires the documented scopes. Keep keys on your server.
// For writes, persist the request key first; inspect unknown results.
const result = await client.request("/groups/120000000000@g.us/join-requests", { method: "GET" });
console.log(result);
{
"approvalRequired": true,
"version": "<string>",
"requests": [
{
"id": "<string>",
"number": "<string>",
"timestamp": 123
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}WhatsApp actions
List group join requests
groups:requests on the selected group and current admin status. Returns exact requester IDs and a queue version. approvalRequired can be unavailable on an older engine.
Node.js
// Requires the documented scopes. Keep keys on your server.
// For writes, persist the request key first; inspect unknown results.
const result = await client.request("/groups/120000000000@g.us/join-requests", { method: "GET" });
console.log(result);
{
"approvalRequired": true,
"version": "<string>",
"requests": [
{
"id": "<string>",
"number": "<string>",
"timestamp": 123
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}