WhatsApp Groups API: Create Groups, Invites & Broadcasts (Free)
Groups are how communities and ops teams coordinate on WhatsApp. With Omdaa API you can create groups, manage participants, and fetch invite links — free forever.
Series: Free Forever WhatsApp Dev
What you can automate
- Create a group with an initial participant list
- Add / remove participants
- Fetch the invite link
- Send group messages
- Drive it from Cursor MCP tools
Setup
npm install @omdaafreeapi/omdaa-api-client
export OMDAA_API_KEY=your-key
Link a session first: Dashboard → Sessions.
Create a group
const { OmdaaClient } = require('@omdaafreeapi/omdaa-api-client');
const client = new OmdaaClient({ apiKey: process.env.OMDAA_API_KEY });
const group = await client.groups.create({
sessionId: 'default',
subject: 'Omdaa Builders',
participants: ['201111111111', '201222222222'],
});
const groupId = group.data?.id || group.data?.groupId;
console.log(groupId);
Invite link & participants
const link = await client.groups.getInviteLink(groupId, { sessionId: 'default' });
await client.groups.addParticipants(groupId, {
sessionId: 'default',
participants: ['201333333333'],
});
MCP equivalents: create_group, add_group_participants, get_group_invite_link, send_group_message.
Send a group message
await client.groups.sendMessage(groupId, {
sessionId: 'default',
message: 'Ship notes are in the repo — standup in 10.',
});
Patterns that work well
| Pattern | Use case |
|---|---|
| Support triage group | Route hot tickets from webhook → group ping |
| Launch war-room | Temporary group + invite link |
| Community onboarding | Auto-send invite after signup |
| Ops alerts | n8n watches metrics → group message |
Pair with webhooks
When a customer DMs your business number, optionally notify an internal group:
// inside webhook handler
if (needsHuman) {
await client.groups.sendMessage(process.env.OPS_GROUP_ID, {
sessionId: 'default',
message: `Human needed from ${from}: ${text}`,
});
}
Related tutorials
Omdaa API — Free Forever. Group automation without spinning your own Baileys fleet.
Top comments (0)