Send Group Media
curl --request POST \
--url https://api.example.com/api/v1/groups/send/media \
--header 'Content-Type: application/json' \
--data '
{
"session_name": "<string>",
"group_jid": "<string>",
"media_type": "<string>"
}
'import requests
url = "https://api.example.com/api/v1/groups/send/media"
payload = {
"session_name": "<string>",
"group_jid": "<string>",
"media_type": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({session_name: '<string>', group_jid: '<string>', media_type: '<string>'})
};
fetch('https://api.example.com/api/v1/groups/send/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message_id": "<string>",
"status": "<string>",
"run_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}groups
Send Group Media
Send a media message (image, video, audio, document) to a WhatsApp group.
Creates a Message record, sets chat_type=“group”, and enqueues the message for async delivery via the RQ worker.
POST
/
api
/
v1
/
groups
/
send
/
media
Send Group Media
curl --request POST \
--url https://api.example.com/api/v1/groups/send/media \
--header 'Content-Type: application/json' \
--data '
{
"session_name": "<string>",
"group_jid": "<string>",
"media_type": "<string>"
}
'import requests
url = "https://api.example.com/api/v1/groups/send/media"
payload = {
"session_name": "<string>",
"group_jid": "<string>",
"media_type": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({session_name: '<string>', group_jid: '<string>', media_type: '<string>'})
};
fetch('https://api.example.com/api/v1/groups/send/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message_id": "<string>",
"status": "<string>",
"run_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Headers
Body
application/json
Request to send a media message to a group.
WhatsApp session name
Minimum string length:
1Group JID (e.g., [email protected])
Minimum string length:
1Media type
Pattern:
^(image|video|audio|document)$URL of the media file
Minimum string length:
1Base64-encoded media content or data URI. Takes precedence over media_url.
Optional caption
Optional filename override (for documents)
MIME type hint for inline media