Cara Kelola Grup WhatsApp dengan Mudah

API kami memudahkan Anda untuk bergabung ke grup WhatsApp hanya dengan kode undangan. Anda juga bisa langsung memeriksa berbagai informasi penting grup, memastikan Anda selalu terhubung dan mendapatkan detail yang relevan.

getListGroup

get

Mendapatkan informasi seluruh group beserta seluruh member

Body
apiKeystringOptionalExample: api_key
Responses
200
Response 200
application/json
get
GET /api/getListGroup HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 20

"apiKey='api_key'"
200

Response 200

{
  "code": 200,
  "query": {},
  "results": [
    {
      "announce": false,
      "creation": 1664468314,
      "id": "[email protected]",
      "owner": "[email protected]",
      "participants": [
        {
          "admin": "superadmin",
          "id": "[email protected]"
        },
        {
          "admin": "admin",
          "id": "[email protected]"
        },
        {
          "admin": null,
          "id": "[email protected]"
        }
      ],
      "restrict": true,
      "size": null,
      "subject": "Nama Group",
      "subjectOwner": "[email protected]",
      "subjectTime": 1664468314
    }
  ]
}

createGroup

post

Dalam pembuatan grup WhatsApp, sangat penting untuk hanya menambahkan pengguna yang sudah terdaftar dalam daftar kontak.

Hindari menyertakan nomor yang tidak dikenal atau tidak terdaftar, karena tindakan tersebut dapat dianggap sebagai spam oleh WhatsApp dan berpotensi pemblokiran akun . Pastikan proses pembuatan grup mematuhi kebijakan platform

Body
apiKeystringOptionalExample: api_key
namestringOptionalExample: nama_grup
phonestringOptionalExample: phone
Responses
200Success
post
POST /api/createGroup HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 55

"apiKey='api_key'&name='nama_grup'&phone='phone'"
200Success

No content

getInfoGroup

post

Mendapatkan informasi group dan member secara spesifik

Body
apiKeystringOptionalExample: api_key
id_groupstringOptionalExample: id_group
Responses
200
Response 200
application/json
post
POST /api/getInfoGroup HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 42

"apiKey='api_key'&id_group='id_group'"
200

Response 200

{
  "code": 200,
  "query": {
    "to": "[email protected]"
  },
  "results": {
    "announce": false,
    "creation": 1703229022,
    "id": "[email protected]",
    "isCommunity": false,
    "isCommunityAnnounce": false,
    "joinApprovalMode": false,
    "memberAddMode": true,
    "owner": "[email protected]",
    "participants": [
      {
        "admin": "superadmin",
        "id": "[email protected]"
      },
      {
        "admin": null,
        "id": "[email protected]"
      },
      {
        "admin": "admin",
        "id": "[email protected]"
      }
    ],
    "restrict": false,
    "size": 13,
    "subject": "NAME GROUP",
    "subjectOwner": "[email protected]",
    "subjectTime": 1703229022
  }
}

changeNameGroup

post

Mengganti nama grub whatsapp

Body
apiKeystringOptionalExample: api_key
id_groupstringOptionalExample: id_group
namestringOptionalExample: nama_grup
Responses
200
Response 200
application/json
post
POST /api/changeNameGroup HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 61

"apiKey='api_key'&id_group='id_group'&name='nama_grup'"
200

Response 200

{
  "code": 200,
  "query": {
    "name": "-",
    "to": "[email protected]"
  },
  "results": {
    "message": "Group name success changed [email protected]",
    "serialized": "[email protected]",
    "status": 200,
    "type_chat": "group"
  }
}

changeDescriptionGroup

post

Mengganti deskripsi grup

Body
apiKeystringOptionalExample: api_key
descriptionstringOptionalExample: deskripsi_grup
id_groupstringOptionalExample: id_group
Responses
200
Response 200
application/json
post
POST /api/changeDescriptionGroup HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 73

"apiKey='api_key'&description='deskripsi_grup'&id_group='id_group'"
200

Response 200

{
  "code": 200,
  "query": {
    "description": "-",
    "to": "[email protected]"
  },
  "results": {
    "message": "Group description success changed [email protected]",
    "serialized": "[email protected]",
    "status": 200,
    "type_chat": "group"
  }
}

addParticipantGroup

post

Memasukkan atau menambahkan anggota

Contoh format json :

["62XXXXXXXXX","62XXXXXXXXX"]
Body
apiKeystringOptionalExample: api_key
id_groupstringOptionalExample: id_group
phonestringOptionalExample: list_phone
Responses
200
Response 200
application/json
post
POST /api/addParticipantGroup HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 63

"apiKey='api_key'&id_group='id_group'&phone='list_phone'"
200

Response 200

{
  "code": 200,
  "query": {
    "phone": "[\"XXXXX\"]",
    "to": "[email protected]"
  },
  "results": {
    "message": "Participant success added to group [email protected]",
    "serialized": [
      "[email protected]"
    ],
    "status": [
      {
        "jid": "[email protected]",
        "reason": "success add participant",
        "status": "200"
      }
    ],
    "type_chat": "group"
  }
}

removeParticipantGroup

post

Mengeluarkan atau kick anggota

Contoh format json :

["62XXXXXXXXX","62XXXXXXXXX"]
Body
apiKeystringOptionalExample: api_key
id_groupstringOptionalExample: id_group
phonestringOptionalExample: list_phone
Responses
200
Response 200
application/json
post
POST /api/removeParticipantGroup HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 63

"apiKey='api_key'&id_group='id_group'&phone='list_phone'"
200

Response 200

{
  "code": 200,
  "query": {
    "phone": "[\"XXXXX\"]",
    "to": "[email protected]"
  },
  "results": {
    "message": "Participant success removed from group [email protected]",
    "serialized": [
      "[email protected]"
    ],
    "status": [
      {
        "jid": "[email protected]",
        "reason": "success remove participant",
        "status": "200"
      }
    ],
    "type_chat": "group"
  }
}

promoteParticipantGroup

post

Menjadikan anggota menjadi admin

Contoh format json :

["62XXXXXXXXX","62XXXXXXXXX"]
Body
apiKeystringOptionalExample: api_key
id_groupstringOptionalExample: id_group
phonestringOptionalExample: list_phone
Responses
200
Response 200
application/json
post
POST /api/promoteParticipantGroup HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 63

"apiKey='api_key'&id_group='id_group'&phone='list_phone'"
200

Response 200

{
  "code": 200,
  "query": {
    "phone": "[\"XXXXX\"]",
    "to": "[email protected]"
  },
  "results": {
    "message": "Participant success promoted to admin [email protected]",
    "serialized": [
      "[email protected]"
    ],
    "status": [
      {
        "jid": "[email protected]",
        "reason": "success promote participant",
        "status": "200"
      }
    ],
    "type_chat": "group"
  }
}

demoteParticipantGroup

post

Menghilangkan status admin pada anggota

Contoh format json :

["62XXXXXXXXX","62XXXXXXXXX"]
Body
apiKeystringOptionalExample: api_key
id_groupstringOptionalExample: id_group
phonestringOptionalExample: list_phone
Responses
200
Response 200
application/json
post
POST /api/demoteParticipantGroup HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 63

"apiKey='api_key'&id_group='id_group'&phone='list_phone'"
200

Response 200

{
  "code": 200,
  "query": {
    "phone": "[\"XXXXX\"]",
    "to": "[email protected]"
  },
  "results": {
    "message": "Participant success demoted to member [email protected]",
    "serialized": [
      "[email protected]"
    ],
    "status": [
      {
        "jid": "[email protected]",
        "reason": "success demote participant",
        "status": "200"
      }
    ],
    "type_chat": "group"
  }
}

getInviteInfo

post

Mendapat informasi undangan grup, kode invite ada bisa dilihat di https://chat.whatsapp.com/[KODE_INVITE]

Body
apiKeystringOptionalExample: api_key
inviteCodestringOptionalExample: invite_kode
Responses
200
Response 200
application/json
post
POST /api/getInviteInfo HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 47

"apiKey='api_key'&inviteCode='invite_kode'"
200

Response 200

{
  "code": 200,
  "query": {
    "inviteCode": {}
  },
  "results": {
    "creation": 1603388915,
    "id": {
      "_serialized": "[email protected]",
      "server": "g.us",
      "user": "XXXXX-XXXXX"
    },
    "owner": {
      "_serialized": "[email protected]",
      "server": "c.us",
      "user": "XXXXX"
    },
    "participants": [
      {
        "id": {
          "_serialized": "[email protected]",
          "server": "c.us",
          "user": "XXXXX"
        },
        "isAdmin": false,
        "isSuperAdmin": false
      }
    ],
    "size": 2,
    "status": 200,
    "subject": "Judul Group",
    "subjectOwner": {
      "_serialized": "[email protected]",
      "server": "c.us",
      "user": "XXXXX"
    },
    "subjectTime": 1603820400
  }
}

acceptInvite

post

Menerima undangan grup, kode invite bisa dilihat di https://chat.whatsapp.com/[KODE_INVITE]

Body
apiKeystringOptionalExample: api_key
inviteCodestringOptionalExample: invite_kode
Responses
200
Response 200
application/json
post
POST /api/acceptInvite HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 47

"apiKey='api_key'&inviteCode='invite_kode'"
200

Response 200

{
  "code": 200,
  "query": {
    "inviteCode": "XXXXX"
  },
  "results": {
    "message": "Anda berhasil tergabung dalam grup."
  }
}

revokeInviteGroup

post

Mengubah link invite grup

Body
apiKeystringOptionalExample: api_key
id_groupstringOptionalExample: id_group
Responses
200
Response 200 Copy
application/json
post
POST /api/revokeInviteGroup HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 42

"apiKey='api_key'&id_group='id_group'"
200

Response 200 Copy

{
  "code": 200,
  "query": {
    "to": "[email protected]"
  },
  "results": {
    "message": "You have successfully left the group [email protected]",
    "serialized": "[email protected]",
    "status": 200,
    "type_chat": "group"
  }
}

leaveGroup

post

Meninggalkan grup sesuai dengan kode invite

Body
apiKeystringOptionalExample: api_key
id_groupstringOptionalExample: id_group
Responses
200
Response 200
application/json
post
POST /api/leaveGroup HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 42

"apiKey='api_key'&id_group='id_group'"
200

Response 200

{
  "code": 200,
  "query": {
    "to": "[email protected]"
  },
  "results": {
    "message": "You have successfully left the group [email protected]",
    "serialized": "[email protected]",
    "status": 200,
    "type_chat": "group"
  }
}