Blog

WhatsApp Groups API: Create Groups, Invites & Broadcasts (Free)

November 3, 20262 min read31 views
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

``bash npm install @omdaafreeapi/omdaa-api-client export OMDAA_API_KEY=your-key `

Link a session first: Dashboard → Sessions.

Create a group

`javascript 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); `

`javascript 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

`javascript await client.groups.sendMessage(groupId, { sessionId: 'default', message: 'Ship notes are in the repo — standup in 10.', }); `

Patterns that work well

Pair with webhooks

When a customer DMs your business number, optionally notify an internal group:

`javascript // inside webhook handler if (needsHuman) { await client.groups.sendMessage(process.env.OPS_GROUP_ID, { sessionId: 'default', message: Human needed from ${from}: ${text}, }); } ``

Omdaa API — Free Forever. Group automation without spinning your own Baileys fleet.