WAPIM Cloud API Docs
  • Quick Start
  • Device
    • Get QR
    • Get Device Info
  • Events & Notifications
    • Websocket and Webhook
      • Websocket (Realtime)
      • Webhook
  • Messages
    • Send Messages
      • Text Message
      • Image Message
      • Video Message
      • Document Message
      • Location Message
      • Contact Message
    • Delete Message (Everyone)
    • Forward Message
  • Misc
    • Get WhatsApp Profile Names
    • Get Contacts
    • Get Stories
    • Get Profile Picture
    • Check WhatsApp Number
    • Get Blocked Numbers
    • Be Online
    • Be Offline
  • Chats
    • Get Chat List
    • Get Messages Of Chat
    • Archive Chat
    • Set Profile Name
    • Delete Chat
    • Pin Chat
    • Unpin Chat
    • Clear Chat
    • Mark As Read Chat
    • Mark As Unread Chat
    • Mute Chat
    • Unmute Chat
    • Unarchive Chat
  • Groups
    • Get Groups
    • Get Group
Powered by GitBook
On this page
  1. Groups

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
PreviousGroupsNextGet Group

Last updated 2 years ago