Get Groups
Get Groups
Get Groups
GET
https://api.wapim.io/api/v1/whatsapp/groups
Headers
Name
Type
Description
Token
String
YOUR_WAPIM_TOKEN
[
{
"GroupID": "******-1566835874",
"OwnerPhoneNumber": "****",
"Name": "Aesthetic QB's Doctors 💉",
"NameSetAt": "2019-08-26T16:11:14Z",
"NameSetBy": "",
"Topic": "",
"TopicID": "",
"TopicSetAt": "0001-01-01T00:00:00Z",
"TopicSetBy": "",
"IsLocked": false,
"IsAnnounce": false,
"GroupCreated": "2019-08-26T16:11:14Z",
"Participants": [
{
"PhoneNumber": "***",
"IsAdmin": true,
"IsSuperAdmin": true
},
{
"PhoneNumber": "***",
"IsAdmin": false,
"IsSuperAdmin": false
}
]
},
// ... Stripped
]
{
"status": false,
"code": 400,
"message": "Bad Request",
"error": "Bad GroupID!"
}
curl
-X GET https://api.wapim.io/api/v1/whatsapp/groups
-H 'Token: YOUR_WAPIM_TOKEN'
const axios = require('axios');
axios
.get(
'https://api.wapim.io/api/v1/whatsapp/groups',
{
headers: {
token: 'YOUR_WAPIM_TOKEN',
}
}
)
.then(response => console.log(response.data))
.catch(error => console.log(error.response.data))java
Last updated