Groups Management

Omdaa API provides a comprehensive interface for managing WhatsApp groups. You can create groups, manage members, update settings, and send messages to groups.

Get All Groups

To get a list of all groups from a specific session:

"function">curl "keyword">-X GET "https://omdaa.com/api/v1/groups?sessionId=my class="keyword">-instance" \
  "keyword">-H "Authorization: Bearer YOUR_JWT_TOKEN"

Create New Group

To create a new group with members:

"function">curl "keyword">-X POST https://omdaa.com/api/v1/groups/create \
  "keyword">-H "Authorization: Bearer YOUR_JWT_TOKEN" \
  "keyword">-H "Content"keyword">-Type: application/json" \
  "keyword">-d '{
  "sessionId": "my"keyword">-instance",
  "subject": "My Group",
  "participants": ["966501234567@s.whatsapp.net"]
}'

Send Message to Group

To send a text message to a group:

"function">curl "keyword">-X POST https://omdaa.com/api/v1/groups/120363123456789012@g.us/send \
  "keyword">-H "Authorization: Bearer YOUR_JWT_TOKEN" \
  "keyword">-H "Content"keyword">-Type: application/json" \
  "keyword">-d '{
  "sessionId": "my"keyword">-instance",
  "message": "Hello Group!"
}'

Add Participants to Group

To add new members to a group:

"function">curl "keyword">-X POST https://omdaa.com/api/v1/groups/120363123456789012@g.us/participants/add \
  "keyword">-H "Authorization: Bearer YOUR_JWT_TOKEN" \
  "keyword">-H "Content"keyword">-Type: application/json" \
  "keyword">-d '{
  "sessionId": "my"keyword">-instance",
  "participants": ["966501234567@s.whatsapp.net"]
}'

Available Operations

Member Management

  • • Add members
  • • Remove members
  • • Set admin
  • • Remove admin

Update Settings

  • • Update group name
  • • Update description
  • • Update group picture
  • • Update privacy settings

Link Management

  • • Get invite link
  • • Create new link
  • • Revoke invite link

Group Information

  • • Get group details
  • • Get members list
  • • Get admins list

💡 Note

Group ID in WhatsApp starts with 120363and ends with @g.us. Make sure to use the correct format in all requests.