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.
Mendapatkan informasi seluruh group beserta seluruh member
api_key
GET /api/getListGroup HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 20
"apiKey='api_key'"
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
}
]
}
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
api_key
nama_grup
phone
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'"
No content
Mendapatkan informasi group dan member secara spesifik
api_key
id_group
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'"
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
}
}
Mengganti nama grub whatsapp
api_key
id_group
nama_grup
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'"
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"
}
}
Mengganti deskripsi grup
api_key
deskripsi_grup
id_group
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'"
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"
}
}
Memasukkan atau menambahkan anggota
Contoh format json :
["62XXXXXXXXX","62XXXXXXXXX"]
api_key
id_group
list_phone
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'"
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"
}
}
Mengeluarkan atau kick anggota
Contoh format json :
["62XXXXXXXXX","62XXXXXXXXX"]
api_key
id_group
list_phone
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'"
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"
}
}
Menjadikan anggota menjadi admin
Contoh format json :
["62XXXXXXXXX","62XXXXXXXXX"]
api_key
id_group
list_phone
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'"
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"
}
}
Menghilangkan status admin pada anggota
Contoh format json :
["62XXXXXXXXX","62XXXXXXXXX"]
api_key
id_group
list_phone
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'"
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"
}
}
Mendapat informasi undangan grup, kode invite ada bisa dilihat di https://chat.whatsapp.com/[KODE_INVITE]
api_key
invite_kode
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'"
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
}
}
Menerima undangan grup, kode invite bisa dilihat di https://chat.whatsapp.com/[KODE_INVITE]
api_key
invite_kode
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'"
Response 200
{
"code": 200,
"query": {
"inviteCode": "XXXXX"
},
"results": {
"message": "Anda berhasil tergabung dalam grup."
}
}
Mengubah link invite grup
api_key
id_group
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'"
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"
}
}
Meninggalkan grup sesuai dengan kode invite
api_key
id_group
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'"
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"
}
}