WhatsApp Web group
Before you start
Choose a connected session, then select a group from its chats. Use the returned group context.
Required. Send the account API key in the X-API-Key header. Never expose the key in a public browser or git repository.
- GET /api/v2/whatsapp-web/sessions to get accountId.
- GET /api/v2/whatsapp-web/chats?type=group&accountId=...
- Copy conversationContext and send channel=user_whatsapp_session.
cURL
curl --request POST 'https://raselsms.com/api/v2/messages/send' \ -H "X-API-Key: $RASEL_API_KEY" \ -H 'Content-Type: application/json' \ --data-binary @- <<'RASEL_JSON'{ "to": "120363012345678901@g.us", "channel": "user_whatsapp_session", "messageType": "free_text", "content": { "text": "Hello group" }, "conversationContext": { "moduleType": "whatsapp_web", "accountId": "session-user-whatsapp-1", "chatId": "120363012345678901@g.us" }}RASEL_JSONTest locally with a mock response first. Confirm the recipient and cost before sending a live request.