Cara Manajemen Pesan
API kami memungkinkan Anda mengelola semua chat WhatsApp dengan mudah. Anda bisa melihat status setiap chat, seperti jumlah pesan yang belum terbaca atau apakah chat tersebut non-aktif.
Selain itu, Anda juga bisa filter pesan berdasarkan jenisnya, seperti pesan pribadi atau grup, dan bahkan membisukan atau mengaktifkan kembali notifikasi nomor WhatsApp langsung dari sistem Anda.
Mendapatkan seluruh chat di whatsapp Anda.
api_key
GET /api/getChats HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 20
"apiKey='api_key'"
Response 200
{
"code": 200,
"results": [
{
"archived": false,
"contactPrimaryIdentityKey": {
"data": [
25,
192,
153,
24,
109,
55,
70,
126,
231,
72,
111,
212,
180,
194,
133,
192,
79,
166,
214,
218,
162,
154,
225,
115,
32,
16,
231,
43,
17,
15,
198,
42
],
"type": "Buffer"
},
"conversationTimestamp": {
"high": 0,
"low": 1667809254,
"unsigned": true
},
"disappearingMode": {
"initiator": "CHANGED_IN_CHAT"
},
"ephemeralExpiration": 0,
"id": "[email protected]",
"lastMessageRecvTimestamp": 1667809254,
"messages": [
{
"message": {
"ephemeralOutOfSync": false,
"key": {
"fromMe": false,
"id": "97857C48913C304E4CA0D330A39AE8EA",
"remoteJid": "[email protected]"
},
"message": {
"conversation": "Ini isi pesannya"
},
"messageTimestamp": "1667809254"
}
}
],
"notSpam": true,
"participant": [],
"pinned": 1615539349265000,
"readOnly": false,
"tcToken": {
"data": [
1,
1,
0,
172,
27,
105,
218,
154,
4,
163,
54,
86,
122,
23,
188,
133,
158,
38,
37,
134,
47,
109,
180,
225,
235,
191,
214,
104,
224,
10,
166,
155,
80,
11,
227
],
"type": "Buffer"
},
"tcTokenTimestamp": {
"high": 0,
"low": 1667802758,
"unsigned": true
},
"unreadCount": 0,
"unreadMentionCount": 0
}
]
}
Melihat detail informasi chat tertentu di whatsapp.
api_key
no_hp
POST /api/getChatById HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 36
"apiKey='api_key'&phone='no_hp'"
Response 200
{
"code": 200,
"query": {
"to": "xxxxxxx"
},
"results": {
"contactPrimaryIdentityKey": {
"data": [
160,
76,
182,
41,
191,
91,
83,
182,
71,
13,
232,
172,
200,
183,
23,
44,
201,
213,
206,
56,
190,
160,
145,
181,
66,
209,
192,
249,
100,
21,
78,
54
],
"type": "Buffer"
},
"conversationTimestamp": 1669271834,
"disappearingMode": {
"initiator": "CHANGED_IN_CHAT"
},
"ephemeralExpiration": 0,
"id": "[email protected]",
"lastMessageRecvTimestamp": 1669182133,
"messages": [
{
"message": {
"key": {
"fromMe": true,
"id": "WHPIxxxxxxx",
"remoteJid": "[email protected]"
},
"message": {
"conversation": "Coba"
},
"messageTimestamp": "1669182672",
"status": "DELIVERY_ACK",
"userReceipt": [
{
"playedTimestamp": "0",
"readTimestamp": "0",
"receiptTimestamp": "1669182677",
"userJid": "[email protected]"
}
]
}
}
],
"notSpam": true,
"participant": [],
"readOnly": false,
"tcToken": {
"data": [
1,
1,
0,
24,
215,
85,
34,
97,
223,
93,
249,
253,
124,
234,
231,
254,
160,
216,
17,
20,
54,
91,
123,
26,
247,
66,
44,
7,
54,
30,
28,
144,
158,
60,
244
],
"type": "Buffer"
},
"tcTokenTimestamp": {
"high": 0,
"low": 1667547673,
"unsigned": true
},
"unreadCount": 0,
"unreadMentionCount": 0
}
}
Mendapatkan seluruh percakapan/chat dari nomer tertentu.
api_key
100
no_hp
POST /api/fetchMessageById HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 50
"apiKey='api_key'&limit='100'&phone='no_hp'"
Response 200
{
"code": 200,
"query": {
"to": "xxxxxxx"
},
"results": [
{
"body": "Coba",
"chatId": "[email protected]",
"from": "[email protected]",
"fromMe": true,
"id": "WHPIxxxxxxx",
"isEphemeralMessage": false,
"isGroupMsg": false,
"isMedia": false,
"key": {
"fromMe": true,
"id": "WHPIxxxxxxx",
"remoteJid": "[email protected]"
},
"mentionedJidList": [],
"message": {
"extendedTextMessage": {
"text": "Coba"
}
},
"messageTimestamp": "1669278146",
"quotedMsg": false,
"sender": "[email protected]",
"status": "PENDING",
"t": "1669278146",
"timestamp": "1669278146",
"type": "extendedTextMessage"
}
]
}
Whapi bisa membersihkan chat dengan nomor tertentu dengan mudah!
api_key
no_hp
POST /api/clearMessageById HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 36
"apiKey='api_key'&phone='no_hp'"
Response 200
{
"code": 200,
"query": {
"to": "XXXXXX"
},
"results": true
}
Mute nomor whatsapp tertentu.
api_key
no_hp
second
POST /api/muteChat HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 54
"apiKey='api_key'&phone='no_hp'&second='second'"
Response 200
{
"code": 200,
"query": {
"seconds": "50",
"to": "XXXXX"
},
"results": {
"message": "Anda berhasil mute XXXXX"
}
}
Unute nomor whatsapp tertentu.
api_key
phone
POST /api/unmuteChat HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 36
"apiKey='api_key'&phone='phone'"
Response 200
{
"code": 200,
"query": {
"to": "XXXXX"
},
"results": {
"message": "Anda berhasil unmute XXXXX"
}
}
Menghapus log pesan API
all
api_key
POST /api/clearReportApi HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 32
"all='all'&apiKey='api_key'"
Response 200
{
"code": 200,
"message": "Success"
}