Create Group
curl --request POST \
--url https://api.example.com/api/v1/groups/create \
--header 'Content-Type: application/json' \
--data '
{
"session_name": "<string>",
"name": "<string>",
"participants": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/v1/groups/create"
payload = {
"session_name": "<string>",
"name": "<string>",
"participants": ["<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>', name: '<string>', participants: ['<string>']})
};
fetch('https://api.example.com/api/v1/groups/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"jid": "<string>",
"name": "<string>",
"owner_jid": "<string>",
"group_created": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}groups
Create Group
Create a new WhatsApp group.
POST
/
api
/
v1
/
groups
/
create
Create Group
curl --request POST \
--url https://api.example.com/api/v1/groups/create \
--header 'Content-Type: application/json' \
--data '
{
"session_name": "<string>",
"name": "<string>",
"participants": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/v1/groups/create"
payload = {
"session_name": "<string>",
"name": "<string>",
"participants": ["<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>', name: '<string>', participants: ['<string>']})
};
fetch('https://api.example.com/api/v1/groups/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"jid": "<string>",
"name": "<string>",
"owner_jid": "<string>",
"group_created": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Headers
Body
application/json