Skip to main content
POST
/
groupChat
/
sendGroupMessage
Send group message
curl --request POST \
  --url http://api.superwize.ai/api/groupChat/sendGroupMessage \
  --header 'Content-Type: application/json' \
  --data '
{
  "groupChatId": "grp_01JHKYX1B2CD123456789",
  "message": "What are the main causes of climate change?"
}
'
{
  "id": "obj_01JHKZ0PV2WX123456789",
  "type": "message",
  "role": "user",
  "content": "What are practical AI use-cases for students?",
  "parts": [
    {
      "type": "web_search_tool_call",
      "content": {
        "query": "latest AI tools for students in Pakistan",
        "num_results": 5,
        "country": "pk",
        "safe_search": true
      }
    }
  ],
  "sender": {
    "id": "obj_01JHKZ0PV2WX123456789",
    "name": "Primary Key",
    "image": "https://cdn.superwize.ai/assets/avatars/user-1.png"
  },
  "createdAt": "2026-01-01T00:00:00.000Z"
}

Body

application/json
groupChatId
string
required
message
string
required
Minimum string length: 1

Response

Message sent.

id
string
required
type
string
required
content
string
required
role
string
parts
object[]
sender
object
createdAt
string<date-time>