@wppconnect/server 2.8.6 → 2.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/Dockerfile +30 -15
- package/README.md +8 -8
- package/dist/config.js +8 -1
- package/dist/controller/contactController.js +40 -0
- package/dist/controller/deviceController.js +25 -11
- package/dist/controller/groupController.js +150 -2
- package/dist/controller/messageController.js +69 -2
- package/dist/controller/sessionController.js +61 -2
- package/dist/mapper/index.js +2 -2
- package/dist/routes/index.js +26 -2
- package/dist/swagger.json +1009 -188
- package/dist/types/ServerOptions.js +1 -1
- package/dist/util/createSessionUtil.js +12 -3
- package/dist/util/tokenStore/FileTokenStore/FileTokenStore.js +2 -2
- package/package.json +62 -52
package/dist/swagger.json
CHANGED
|
@@ -54,7 +54,9 @@
|
|
|
54
54
|
"paths": {
|
|
55
55
|
"/api/{session}/{secretkey}/generate-token": {
|
|
56
56
|
"post": {
|
|
57
|
-
"tags": [
|
|
57
|
+
"tags": [
|
|
58
|
+
"Auth"
|
|
59
|
+
],
|
|
58
60
|
"description": "",
|
|
59
61
|
"parameters": [
|
|
60
62
|
{
|
|
@@ -91,7 +93,9 @@
|
|
|
91
93
|
},
|
|
92
94
|
"/api/{secretkey}/show-all-sessions": {
|
|
93
95
|
"get": {
|
|
94
|
-
"tags": [
|
|
96
|
+
"tags": [
|
|
97
|
+
"Auth"
|
|
98
|
+
],
|
|
95
99
|
"description": "",
|
|
96
100
|
"operationId": "showAllSessions",
|
|
97
101
|
"parameters": [
|
|
@@ -122,7 +126,9 @@
|
|
|
122
126
|
},
|
|
123
127
|
"/api/{secretkey}/start-all": {
|
|
124
128
|
"post": {
|
|
125
|
-
"tags": [
|
|
129
|
+
"tags": [
|
|
130
|
+
"Auth"
|
|
131
|
+
],
|
|
126
132
|
"description": "",
|
|
127
133
|
"operationId": "startAllSessions",
|
|
128
134
|
"parameters": [
|
|
@@ -168,7 +174,9 @@
|
|
|
168
174
|
},
|
|
169
175
|
"/api/{session}/check-connection-session": {
|
|
170
176
|
"get": {
|
|
171
|
-
"tags": [
|
|
177
|
+
"tags": [
|
|
178
|
+
"Auth"
|
|
179
|
+
],
|
|
172
180
|
"description": "",
|
|
173
181
|
"operationId": "CheckConnectionState",
|
|
174
182
|
"parameters": [
|
|
@@ -196,7 +204,9 @@
|
|
|
196
204
|
},
|
|
197
205
|
"/api/{session}/get-media-by-message/{messageId}": {
|
|
198
206
|
"get": {
|
|
199
|
-
"tags": [
|
|
207
|
+
"tags": [
|
|
208
|
+
"Messages"
|
|
209
|
+
],
|
|
200
210
|
"description": "",
|
|
201
211
|
"operationId": "getMediaByMessage",
|
|
202
212
|
"parameters": [
|
|
@@ -238,7 +248,9 @@
|
|
|
238
248
|
},
|
|
239
249
|
"/api/{session}/get-platform-from-message/{messageId}": {
|
|
240
250
|
"get": {
|
|
241
|
-
"tags": [
|
|
251
|
+
"tags": [
|
|
252
|
+
"Misc"
|
|
253
|
+
],
|
|
242
254
|
"description": "",
|
|
243
255
|
"parameters": [
|
|
244
256
|
{
|
|
@@ -277,7 +289,9 @@
|
|
|
277
289
|
},
|
|
278
290
|
"/api/{session}/qrcode-session": {
|
|
279
291
|
"get": {
|
|
280
|
-
"tags": [
|
|
292
|
+
"tags": [
|
|
293
|
+
"Auth"
|
|
294
|
+
],
|
|
281
295
|
"description": "",
|
|
282
296
|
"operationId": "getQrCode",
|
|
283
297
|
"parameters": [
|
|
@@ -308,7 +322,9 @@
|
|
|
308
322
|
},
|
|
309
323
|
"/api/{session}/start-session": {
|
|
310
324
|
"post": {
|
|
311
|
-
"tags": [
|
|
325
|
+
"tags": [
|
|
326
|
+
"Auth"
|
|
327
|
+
],
|
|
312
328
|
"description": "",
|
|
313
329
|
"operationId": "startSession",
|
|
314
330
|
"parameters": [
|
|
@@ -344,12 +360,31 @@
|
|
|
344
360
|
},
|
|
345
361
|
"waitQrCode": {
|
|
346
362
|
"type": "boolean"
|
|
363
|
+
},
|
|
364
|
+
"proxy": {
|
|
365
|
+
"type": "object",
|
|
366
|
+
"properties": {
|
|
367
|
+
"url": {
|
|
368
|
+
"type": "string"
|
|
369
|
+
},
|
|
370
|
+
"username": {
|
|
371
|
+
"type": "string"
|
|
372
|
+
},
|
|
373
|
+
"password": {
|
|
374
|
+
"type": "string"
|
|
375
|
+
}
|
|
376
|
+
}
|
|
347
377
|
}
|
|
348
378
|
}
|
|
349
379
|
},
|
|
350
380
|
"example": {
|
|
351
381
|
"webhook": "",
|
|
352
|
-
"waitQrCode": false
|
|
382
|
+
"waitQrCode": false,
|
|
383
|
+
"proxy": {
|
|
384
|
+
"url": "http://myproxy.com:8080",
|
|
385
|
+
"username": "myuser",
|
|
386
|
+
"password": "mypassword"
|
|
387
|
+
}
|
|
353
388
|
}
|
|
354
389
|
}
|
|
355
390
|
}
|
|
@@ -358,7 +393,9 @@
|
|
|
358
393
|
},
|
|
359
394
|
"/api/{session}/logout-session": {
|
|
360
395
|
"post": {
|
|
361
|
-
"tags": [
|
|
396
|
+
"tags": [
|
|
397
|
+
"Auth"
|
|
398
|
+
],
|
|
362
399
|
"description": "This route logout and delete session data",
|
|
363
400
|
"operationId": "logoutSession",
|
|
364
401
|
"parameters": [
|
|
@@ -389,7 +426,9 @@
|
|
|
389
426
|
},
|
|
390
427
|
"/api/{session}/{secretkey}/clear-session-data": {
|
|
391
428
|
"post": {
|
|
392
|
-
"tags": [
|
|
429
|
+
"tags": [
|
|
430
|
+
"Misc"
|
|
431
|
+
],
|
|
393
432
|
"description": "",
|
|
394
433
|
"parameters": [
|
|
395
434
|
{
|
|
@@ -426,7 +465,9 @@
|
|
|
426
465
|
},
|
|
427
466
|
"/api/{session}/close-session": {
|
|
428
467
|
"post": {
|
|
429
|
-
"tags": [
|
|
468
|
+
"tags": [
|
|
469
|
+
"Auth"
|
|
470
|
+
],
|
|
430
471
|
"description": "",
|
|
431
472
|
"operationId": "closeSession",
|
|
432
473
|
"parameters": [
|
|
@@ -457,7 +498,9 @@
|
|
|
457
498
|
},
|
|
458
499
|
"/api/{session}/subscribe-presence": {
|
|
459
500
|
"post": {
|
|
460
|
-
"tags": [
|
|
501
|
+
"tags": [
|
|
502
|
+
"Misc"
|
|
503
|
+
],
|
|
461
504
|
"description": "",
|
|
462
505
|
"operationId": "subscribePresence",
|
|
463
506
|
"parameters": [
|
|
@@ -512,9 +555,62 @@
|
|
|
512
555
|
}
|
|
513
556
|
}
|
|
514
557
|
},
|
|
558
|
+
"/api/{session}/set-online-presence": {
|
|
559
|
+
"post": {
|
|
560
|
+
"tags": [
|
|
561
|
+
"Misc"
|
|
562
|
+
],
|
|
563
|
+
"description": "",
|
|
564
|
+
"operationId": "setOnlinePresence",
|
|
565
|
+
"parameters": [
|
|
566
|
+
{
|
|
567
|
+
"name": "session",
|
|
568
|
+
"in": "path",
|
|
569
|
+
"required": true,
|
|
570
|
+
"schema": {
|
|
571
|
+
"type": "string",
|
|
572
|
+
"example": "NERDWHATS_AMERICA"
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
],
|
|
576
|
+
"responses": {
|
|
577
|
+
"200": {
|
|
578
|
+
"description": "OK"
|
|
579
|
+
},
|
|
580
|
+
"500": {
|
|
581
|
+
"description": "Internal Server Error"
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
"security": [
|
|
585
|
+
{
|
|
586
|
+
"bearerAuth": []
|
|
587
|
+
}
|
|
588
|
+
],
|
|
589
|
+
"requestBody": {
|
|
590
|
+
"required": true,
|
|
591
|
+
"content": {
|
|
592
|
+
"application/json": {
|
|
593
|
+
"schema": {
|
|
594
|
+
"type": "object",
|
|
595
|
+
"properties": {
|
|
596
|
+
"isOnline": {
|
|
597
|
+
"type": "boolean"
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
"example": {
|
|
602
|
+
"isOnline": false
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
},
|
|
515
609
|
"/api/{session}/download-media": {
|
|
516
610
|
"post": {
|
|
517
|
-
"tags": [
|
|
611
|
+
"tags": [
|
|
612
|
+
"Messages"
|
|
613
|
+
],
|
|
518
614
|
"description": "",
|
|
519
615
|
"operationId": "downloadMediabyMessage",
|
|
520
616
|
"parameters": [
|
|
@@ -563,7 +659,9 @@
|
|
|
563
659
|
},
|
|
564
660
|
"/api/{session}/send-message": {
|
|
565
661
|
"post": {
|
|
566
|
-
"tags": [
|
|
662
|
+
"tags": [
|
|
663
|
+
"Messages"
|
|
664
|
+
],
|
|
567
665
|
"description": "",
|
|
568
666
|
"parameters": [
|
|
569
667
|
{
|
|
@@ -650,7 +748,9 @@
|
|
|
650
748
|
},
|
|
651
749
|
"/api/{session}/edit-message": {
|
|
652
750
|
"post": {
|
|
653
|
-
"tags": [
|
|
751
|
+
"tags": [
|
|
752
|
+
"Messages"
|
|
753
|
+
],
|
|
654
754
|
"description": "",
|
|
655
755
|
"parameters": [
|
|
656
756
|
{
|
|
@@ -706,7 +806,9 @@
|
|
|
706
806
|
},
|
|
707
807
|
"/api/{session}/send-image": {
|
|
708
808
|
"post": {
|
|
709
|
-
"tags": [
|
|
809
|
+
"tags": [
|
|
810
|
+
"Messages"
|
|
811
|
+
],
|
|
710
812
|
"description": "",
|
|
711
813
|
"parameters": [
|
|
712
814
|
{
|
|
@@ -782,7 +884,9 @@
|
|
|
782
884
|
},
|
|
783
885
|
"/api/{session}/send-sticker": {
|
|
784
886
|
"post": {
|
|
785
|
-
"tags": [
|
|
887
|
+
"tags": [
|
|
888
|
+
"Messages"
|
|
889
|
+
],
|
|
786
890
|
"description": "",
|
|
787
891
|
"parameters": [
|
|
788
892
|
{
|
|
@@ -825,7 +929,10 @@
|
|
|
825
929
|
"type": "string"
|
|
826
930
|
}
|
|
827
931
|
},
|
|
828
|
-
"required": [
|
|
932
|
+
"required": [
|
|
933
|
+
"phone",
|
|
934
|
+
"path"
|
|
935
|
+
]
|
|
829
936
|
},
|
|
830
937
|
"examples": {
|
|
831
938
|
"Default": {
|
|
@@ -843,7 +950,9 @@
|
|
|
843
950
|
},
|
|
844
951
|
"/api/{session}/send-sticker-gif": {
|
|
845
952
|
"post": {
|
|
846
|
-
"tags": [
|
|
953
|
+
"tags": [
|
|
954
|
+
"Messages"
|
|
955
|
+
],
|
|
847
956
|
"description": "",
|
|
848
957
|
"parameters": [
|
|
849
958
|
{
|
|
@@ -886,7 +995,10 @@
|
|
|
886
995
|
"type": "string"
|
|
887
996
|
}
|
|
888
997
|
},
|
|
889
|
-
"required": [
|
|
998
|
+
"required": [
|
|
999
|
+
"phone",
|
|
1000
|
+
"path"
|
|
1001
|
+
]
|
|
890
1002
|
},
|
|
891
1003
|
"examples": {
|
|
892
1004
|
"Default": {
|
|
@@ -904,7 +1016,9 @@
|
|
|
904
1016
|
},
|
|
905
1017
|
"/api/{session}/send-reply": {
|
|
906
1018
|
"post": {
|
|
907
|
-
"tags": [
|
|
1019
|
+
"tags": [
|
|
1020
|
+
"Messages"
|
|
1021
|
+
],
|
|
908
1022
|
"description": "",
|
|
909
1023
|
"parameters": [
|
|
910
1024
|
{
|
|
@@ -965,7 +1079,9 @@
|
|
|
965
1079
|
},
|
|
966
1080
|
"/api/{session}/send-file": {
|
|
967
1081
|
"post": {
|
|
968
|
-
"tags": [
|
|
1082
|
+
"tags": [
|
|
1083
|
+
"Messages"
|
|
1084
|
+
],
|
|
969
1085
|
"description": "",
|
|
970
1086
|
"parameters": [
|
|
971
1087
|
{
|
|
@@ -1041,7 +1157,9 @@
|
|
|
1041
1157
|
},
|
|
1042
1158
|
"/api/{session}/send-file-base64": {
|
|
1043
1159
|
"post": {
|
|
1044
|
-
"tags": [
|
|
1160
|
+
"tags": [
|
|
1161
|
+
"Messages"
|
|
1162
|
+
],
|
|
1045
1163
|
"description": "",
|
|
1046
1164
|
"parameters": [
|
|
1047
1165
|
{
|
|
@@ -1117,7 +1235,9 @@
|
|
|
1117
1235
|
},
|
|
1118
1236
|
"/api/{session}/send-voice": {
|
|
1119
1237
|
"post": {
|
|
1120
|
-
"tags": [
|
|
1238
|
+
"tags": [
|
|
1239
|
+
"Messages"
|
|
1240
|
+
],
|
|
1121
1241
|
"description": "",
|
|
1122
1242
|
"parameters": [
|
|
1123
1243
|
{
|
|
@@ -1178,7 +1298,9 @@
|
|
|
1178
1298
|
},
|
|
1179
1299
|
"/api/{session}/send-voice-base64": {
|
|
1180
1300
|
"post": {
|
|
1181
|
-
"tags": [
|
|
1301
|
+
"tags": [
|
|
1302
|
+
"Messages"
|
|
1303
|
+
],
|
|
1182
1304
|
"description": "",
|
|
1183
1305
|
"parameters": [
|
|
1184
1306
|
{
|
|
@@ -1235,7 +1357,9 @@
|
|
|
1235
1357
|
},
|
|
1236
1358
|
"/api/{session}/status-session": {
|
|
1237
1359
|
"get": {
|
|
1238
|
-
"tags": [
|
|
1360
|
+
"tags": [
|
|
1361
|
+
"Auth"
|
|
1362
|
+
],
|
|
1239
1363
|
"description": "",
|
|
1240
1364
|
"operationId": "closeSession",
|
|
1241
1365
|
"parameters": [
|
|
@@ -1266,7 +1390,9 @@
|
|
|
1266
1390
|
},
|
|
1267
1391
|
"/api/{session}/send-status": {
|
|
1268
1392
|
"post": {
|
|
1269
|
-
"tags": [
|
|
1393
|
+
"tags": [
|
|
1394
|
+
"Messages"
|
|
1395
|
+
],
|
|
1270
1396
|
"description": "",
|
|
1271
1397
|
"parameters": [
|
|
1272
1398
|
{
|
|
@@ -1309,7 +1435,11 @@
|
|
|
1309
1435
|
"type": "string"
|
|
1310
1436
|
}
|
|
1311
1437
|
},
|
|
1312
|
-
"required": [
|
|
1438
|
+
"required": [
|
|
1439
|
+
"phone",
|
|
1440
|
+
"isGroup",
|
|
1441
|
+
"message"
|
|
1442
|
+
]
|
|
1313
1443
|
},
|
|
1314
1444
|
"examples": {
|
|
1315
1445
|
"Default": {
|
|
@@ -1328,7 +1458,9 @@
|
|
|
1328
1458
|
},
|
|
1329
1459
|
"/api/{session}/send-link-preview": {
|
|
1330
1460
|
"post": {
|
|
1331
|
-
"tags": [
|
|
1461
|
+
"tags": [
|
|
1462
|
+
"Messages"
|
|
1463
|
+
],
|
|
1332
1464
|
"description": "",
|
|
1333
1465
|
"parameters": [
|
|
1334
1466
|
{
|
|
@@ -1389,7 +1521,9 @@
|
|
|
1389
1521
|
},
|
|
1390
1522
|
"/api/{session}/send-location": {
|
|
1391
1523
|
"post": {
|
|
1392
|
-
"tags": [
|
|
1524
|
+
"tags": [
|
|
1525
|
+
"Messages"
|
|
1526
|
+
],
|
|
1393
1527
|
"description": "",
|
|
1394
1528
|
"parameters": [
|
|
1395
1529
|
{
|
|
@@ -1458,7 +1592,9 @@
|
|
|
1458
1592
|
},
|
|
1459
1593
|
"/api/{session}/send-mentioned": {
|
|
1460
1594
|
"post": {
|
|
1461
|
-
"tags": [
|
|
1595
|
+
"tags": [
|
|
1596
|
+
"Messages"
|
|
1597
|
+
],
|
|
1462
1598
|
"description": "",
|
|
1463
1599
|
"parameters": [
|
|
1464
1600
|
{
|
|
@@ -1507,7 +1643,11 @@
|
|
|
1507
1643
|
}
|
|
1508
1644
|
}
|
|
1509
1645
|
},
|
|
1510
|
-
"required": [
|
|
1646
|
+
"required": [
|
|
1647
|
+
"phone",
|
|
1648
|
+
"message",
|
|
1649
|
+
"mentioned"
|
|
1650
|
+
]
|
|
1511
1651
|
},
|
|
1512
1652
|
"examples": {
|
|
1513
1653
|
"Default": {
|
|
@@ -1515,7 +1655,9 @@
|
|
|
1515
1655
|
"phone": "groupId@g.us",
|
|
1516
1656
|
"isGroup": true,
|
|
1517
1657
|
"message": "Your text message",
|
|
1518
|
-
"mentioned": [
|
|
1658
|
+
"mentioned": [
|
|
1659
|
+
"556593077171@c.us"
|
|
1660
|
+
]
|
|
1519
1661
|
}
|
|
1520
1662
|
}
|
|
1521
1663
|
}
|
|
@@ -1526,7 +1668,9 @@
|
|
|
1526
1668
|
},
|
|
1527
1669
|
"/api/{session}/send-buttons": {
|
|
1528
1670
|
"post": {
|
|
1529
|
-
"tags": [
|
|
1671
|
+
"tags": [
|
|
1672
|
+
"Messages"
|
|
1673
|
+
],
|
|
1530
1674
|
"description": "",
|
|
1531
1675
|
"parameters": [
|
|
1532
1676
|
{
|
|
@@ -1554,7 +1698,9 @@
|
|
|
1554
1698
|
},
|
|
1555
1699
|
"/api/{session}/send-list-message": {
|
|
1556
1700
|
"post": {
|
|
1557
|
-
"tags": [
|
|
1701
|
+
"tags": [
|
|
1702
|
+
"Messages"
|
|
1703
|
+
],
|
|
1558
1704
|
"description": "",
|
|
1559
1705
|
"parameters": [
|
|
1560
1706
|
{
|
|
@@ -1635,7 +1781,9 @@
|
|
|
1635
1781
|
},
|
|
1636
1782
|
"/api/{session}/send-order-message": {
|
|
1637
1783
|
"post": {
|
|
1638
|
-
"tags": [
|
|
1784
|
+
"tags": [
|
|
1785
|
+
"Messages"
|
|
1786
|
+
],
|
|
1639
1787
|
"description": "",
|
|
1640
1788
|
"parameters": [
|
|
1641
1789
|
{
|
|
@@ -1741,7 +1889,9 @@
|
|
|
1741
1889
|
},
|
|
1742
1890
|
"/api/{session}/send-poll-message": {
|
|
1743
1891
|
"post": {
|
|
1744
|
-
"tags": [
|
|
1892
|
+
"tags": [
|
|
1893
|
+
"Messages"
|
|
1894
|
+
],
|
|
1745
1895
|
"description": "",
|
|
1746
1896
|
"parameters": [
|
|
1747
1897
|
{
|
|
@@ -1794,7 +1944,11 @@
|
|
|
1794
1944
|
"phone": "5521999999999",
|
|
1795
1945
|
"isGroup": false,
|
|
1796
1946
|
"name": "Poll name",
|
|
1797
|
-
"choices": [
|
|
1947
|
+
"choices": [
|
|
1948
|
+
"Option 1",
|
|
1949
|
+
"Option 2",
|
|
1950
|
+
"Option 3"
|
|
1951
|
+
],
|
|
1798
1952
|
"options": {
|
|
1799
1953
|
"selectableCount": 1
|
|
1800
1954
|
}
|
|
@@ -1806,9 +1960,88 @@
|
|
|
1806
1960
|
}
|
|
1807
1961
|
}
|
|
1808
1962
|
},
|
|
1963
|
+
"/api/{session}/send-pix-key": {
|
|
1964
|
+
"post": {
|
|
1965
|
+
"tags": [
|
|
1966
|
+
"Messages"
|
|
1967
|
+
],
|
|
1968
|
+
"description": "",
|
|
1969
|
+
"parameters": [
|
|
1970
|
+
{
|
|
1971
|
+
"name": "session",
|
|
1972
|
+
"in": "path",
|
|
1973
|
+
"required": true,
|
|
1974
|
+
"schema": {
|
|
1975
|
+
"type": "string",
|
|
1976
|
+
"example": "NERDWHATS_AMERICA"
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
],
|
|
1980
|
+
"responses": {
|
|
1981
|
+
"400": {
|
|
1982
|
+
"description": "Bad Request"
|
|
1983
|
+
}
|
|
1984
|
+
},
|
|
1985
|
+
"security": [
|
|
1986
|
+
{
|
|
1987
|
+
"bearerAuth": []
|
|
1988
|
+
}
|
|
1989
|
+
],
|
|
1990
|
+
"requestBody": {
|
|
1991
|
+
"required": true,
|
|
1992
|
+
"content": {
|
|
1993
|
+
"application/json": {
|
|
1994
|
+
"schema": {
|
|
1995
|
+
"type": "object",
|
|
1996
|
+
"required": [
|
|
1997
|
+
"phone",
|
|
1998
|
+
"keyType",
|
|
1999
|
+
"name",
|
|
2000
|
+
"key"
|
|
2001
|
+
],
|
|
2002
|
+
"properties": {
|
|
2003
|
+
"phone": {
|
|
2004
|
+
"type": "string"
|
|
2005
|
+
},
|
|
2006
|
+
"keyType": {
|
|
2007
|
+
"type": "string"
|
|
2008
|
+
},
|
|
2009
|
+
"name": {
|
|
2010
|
+
"type": "string"
|
|
2011
|
+
},
|
|
2012
|
+
"key": {
|
|
2013
|
+
"type": "string"
|
|
2014
|
+
},
|
|
2015
|
+
"instructions": {
|
|
2016
|
+
"type": "string"
|
|
2017
|
+
},
|
|
2018
|
+
"options": {
|
|
2019
|
+
"type": "object"
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
},
|
|
2023
|
+
"examples": {
|
|
2024
|
+
"Send PIX key to contact": {
|
|
2025
|
+
"value": {
|
|
2026
|
+
"phone": "5521999999999",
|
|
2027
|
+
"keyType": "PHONE",
|
|
2028
|
+
"name": "WPPCONNECT-TEAM",
|
|
2029
|
+
"key": "+5567123456789",
|
|
2030
|
+
"instructions": "some instructions about the pix",
|
|
2031
|
+
"options": {}
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
},
|
|
1809
2040
|
"/api/{session}/all-broadcast-list": {
|
|
1810
2041
|
"get": {
|
|
1811
|
-
"tags": [
|
|
2042
|
+
"tags": [
|
|
2043
|
+
"Misc"
|
|
2044
|
+
],
|
|
1812
2045
|
"description": "",
|
|
1813
2046
|
"parameters": [
|
|
1814
2047
|
{
|
|
@@ -1838,7 +2071,9 @@
|
|
|
1838
2071
|
},
|
|
1839
2072
|
"/api/{session}/all-groups": {
|
|
1840
2073
|
"get": {
|
|
1841
|
-
"tags": [
|
|
2074
|
+
"tags": [
|
|
2075
|
+
"Group"
|
|
2076
|
+
],
|
|
1842
2077
|
"summary": "Deprecated in favor of ",
|
|
1843
2078
|
"description": "",
|
|
1844
2079
|
"parameters": [
|
|
@@ -1870,13 +2105,111 @@
|
|
|
1870
2105
|
],
|
|
1871
2106
|
"responses": {
|
|
1872
2107
|
"200": {
|
|
1873
|
-
"description": "
|
|
2108
|
+
"description": "Group information retrieved successfully",
|
|
2109
|
+
"content": {
|
|
2110
|
+
"application/json": {
|
|
2111
|
+
"schema": {
|
|
2112
|
+
"type": "object",
|
|
2113
|
+
"properties": {
|
|
2114
|
+
"status": {
|
|
2115
|
+
"type": "string",
|
|
2116
|
+
"example": "success"
|
|
2117
|
+
},
|
|
2118
|
+
"response": {
|
|
2119
|
+
"type": "object",
|
|
2120
|
+
"properties": {
|
|
2121
|
+
"id": {
|
|
2122
|
+
"type": "string",
|
|
2123
|
+
"example": "1234567890@g.us"
|
|
2124
|
+
},
|
|
2125
|
+
"name": {
|
|
2126
|
+
"type": "string",
|
|
2127
|
+
"example": "Group name"
|
|
2128
|
+
},
|
|
2129
|
+
"description": {
|
|
2130
|
+
"type": "string",
|
|
2131
|
+
"nullable": true,
|
|
2132
|
+
"example": "Group description"
|
|
2133
|
+
},
|
|
2134
|
+
"subject": {
|
|
2135
|
+
"type": "string",
|
|
2136
|
+
"example": "Group subject"
|
|
2137
|
+
},
|
|
2138
|
+
"subjectUpdatedAt": {
|
|
2139
|
+
"type": "string",
|
|
2140
|
+
"nullable": true,
|
|
2141
|
+
"example": "2024-11-12T08:00:00.000Z"
|
|
2142
|
+
},
|
|
2143
|
+
"subjectUpdatedBy": {
|
|
2144
|
+
"type": "string",
|
|
2145
|
+
"nullable": true,
|
|
2146
|
+
"example": "1111111111111@c.us"
|
|
2147
|
+
},
|
|
2148
|
+
"descriptionUpdatedAt": {
|
|
2149
|
+
"type": "string",
|
|
2150
|
+
"nullable": true,
|
|
2151
|
+
"example": "2024-11-13T09:00:00.000Z"
|
|
2152
|
+
},
|
|
2153
|
+
"descriptionUpdatedBy": {
|
|
2154
|
+
"type": "string",
|
|
2155
|
+
"nullable": true,
|
|
2156
|
+
"example": "2222222222222@c.us"
|
|
2157
|
+
},
|
|
2158
|
+
"createdAt": {
|
|
2159
|
+
"type": "string",
|
|
2160
|
+
"nullable": true,
|
|
2161
|
+
"example": "2024-11-10T12:34:56.000Z"
|
|
2162
|
+
},
|
|
2163
|
+
"lastActivityAt": {
|
|
2164
|
+
"type": "string",
|
|
2165
|
+
"nullable": true,
|
|
2166
|
+
"example": "2024-11-15T10:00:00.000Z"
|
|
2167
|
+
},
|
|
2168
|
+
"participants": {
|
|
2169
|
+
"type": "array",
|
|
2170
|
+
"items": {
|
|
2171
|
+
"type": "object",
|
|
2172
|
+
"properties": {
|
|
2173
|
+
"id": {
|
|
2174
|
+
"type": "string",
|
|
2175
|
+
"example": "1111111111111@c.us"
|
|
2176
|
+
},
|
|
2177
|
+
"isAdmin": {
|
|
2178
|
+
"type": "boolean",
|
|
2179
|
+
"example": true
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
1874
2190
|
},
|
|
1875
2191
|
"400": {
|
|
1876
2192
|
"description": "Bad Request"
|
|
1877
2193
|
},
|
|
1878
2194
|
"500": {
|
|
1879
|
-
"description": "Internal
|
|
2195
|
+
"description": "Internal error retrieving group info",
|
|
2196
|
+
"content": {
|
|
2197
|
+
"application/json": {
|
|
2198
|
+
"schema": {
|
|
2199
|
+
"type": "object",
|
|
2200
|
+
"properties": {
|
|
2201
|
+
"status": {
|
|
2202
|
+
"type": "string",
|
|
2203
|
+
"example": "error"
|
|
2204
|
+
},
|
|
2205
|
+
"message": {
|
|
2206
|
+
"type": "string",
|
|
2207
|
+
"example": "Error getting group info"
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
1880
2213
|
}
|
|
1881
2214
|
},
|
|
1882
2215
|
"security": [
|
|
@@ -1907,7 +2240,9 @@
|
|
|
1907
2240
|
},
|
|
1908
2241
|
"/api/{session}/group-members/{groupId}": {
|
|
1909
2242
|
"get": {
|
|
1910
|
-
"tags": [
|
|
2243
|
+
"tags": [
|
|
2244
|
+
"Group"
|
|
2245
|
+
],
|
|
1911
2246
|
"description": "",
|
|
1912
2247
|
"parameters": [
|
|
1913
2248
|
{
|
|
@@ -1945,7 +2280,9 @@
|
|
|
1945
2280
|
},
|
|
1946
2281
|
"/api/{session}/common-groups/{wid}": {
|
|
1947
2282
|
"get": {
|
|
1948
|
-
"tags": [
|
|
2283
|
+
"tags": [
|
|
2284
|
+
"Group"
|
|
2285
|
+
],
|
|
1949
2286
|
"description": "",
|
|
1950
2287
|
"parameters": [
|
|
1951
2288
|
{
|
|
@@ -1984,7 +2321,9 @@
|
|
|
1984
2321
|
},
|
|
1985
2322
|
"/api/{session}/group-admins/{groupId}": {
|
|
1986
2323
|
"get": {
|
|
1987
|
-
"tags": [
|
|
2324
|
+
"tags": [
|
|
2325
|
+
"Group"
|
|
2326
|
+
],
|
|
1988
2327
|
"description": "",
|
|
1989
2328
|
"parameters": [
|
|
1990
2329
|
{
|
|
@@ -2029,7 +2368,9 @@
|
|
|
2029
2368
|
"type": "string"
|
|
2030
2369
|
}
|
|
2031
2370
|
},
|
|
2032
|
-
"required": [
|
|
2371
|
+
"required": [
|
|
2372
|
+
"groupId"
|
|
2373
|
+
]
|
|
2033
2374
|
},
|
|
2034
2375
|
"examples": {
|
|
2035
2376
|
"Default": {
|
|
@@ -2043,9 +2384,151 @@
|
|
|
2043
2384
|
}
|
|
2044
2385
|
}
|
|
2045
2386
|
},
|
|
2387
|
+
"/api/{session}/group-info/{groupId}": {
|
|
2388
|
+
"get": {
|
|
2389
|
+
"tags": [
|
|
2390
|
+
"Group"
|
|
2391
|
+
],
|
|
2392
|
+
"summary": "Get detailed information about a group",
|
|
2393
|
+
"description": "",
|
|
2394
|
+
"parameters": [
|
|
2395
|
+
{
|
|
2396
|
+
"name": "session",
|
|
2397
|
+
"in": "path",
|
|
2398
|
+
"required": true,
|
|
2399
|
+
"schema": {
|
|
2400
|
+
"type": "string",
|
|
2401
|
+
"example": "NERDWHATS_AMERICA"
|
|
2402
|
+
}
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
"name": "groupId",
|
|
2406
|
+
"in": "path",
|
|
2407
|
+
"required": true,
|
|
2408
|
+
"schema": {
|
|
2409
|
+
"type": "string",
|
|
2410
|
+
"example": "<groupId>"
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
],
|
|
2414
|
+
"responses": {
|
|
2415
|
+
"200": {
|
|
2416
|
+
"description": "Group information retrieved successfully",
|
|
2417
|
+
"content": {
|
|
2418
|
+
"application/json": {
|
|
2419
|
+
"schema": {
|
|
2420
|
+
"type": "object",
|
|
2421
|
+
"properties": {
|
|
2422
|
+
"status": {
|
|
2423
|
+
"type": "string",
|
|
2424
|
+
"example": "success"
|
|
2425
|
+
},
|
|
2426
|
+
"response": {
|
|
2427
|
+
"type": "object",
|
|
2428
|
+
"properties": {
|
|
2429
|
+
"id": {
|
|
2430
|
+
"type": "string",
|
|
2431
|
+
"example": "1234567890@g.us"
|
|
2432
|
+
},
|
|
2433
|
+
"name": {
|
|
2434
|
+
"type": "string",
|
|
2435
|
+
"example": "Group name"
|
|
2436
|
+
},
|
|
2437
|
+
"description": {
|
|
2438
|
+
"type": "string",
|
|
2439
|
+
"nullable": true,
|
|
2440
|
+
"example": "Group description"
|
|
2441
|
+
},
|
|
2442
|
+
"subject": {
|
|
2443
|
+
"type": "string",
|
|
2444
|
+
"example": "Group subject"
|
|
2445
|
+
},
|
|
2446
|
+
"subjectUpdatedAt": {
|
|
2447
|
+
"type": "string",
|
|
2448
|
+
"nullable": true,
|
|
2449
|
+
"example": "2024-11-12T08:00:00.000Z"
|
|
2450
|
+
},
|
|
2451
|
+
"subjectUpdatedBy": {
|
|
2452
|
+
"type": "string",
|
|
2453
|
+
"nullable": true,
|
|
2454
|
+
"example": "1111111111111@c.us"
|
|
2455
|
+
},
|
|
2456
|
+
"descriptionUpdatedAt": {
|
|
2457
|
+
"type": "string",
|
|
2458
|
+
"nullable": true,
|
|
2459
|
+
"example": "2024-11-13T09:00:00.000Z"
|
|
2460
|
+
},
|
|
2461
|
+
"descriptionUpdatedBy": {
|
|
2462
|
+
"type": "string",
|
|
2463
|
+
"nullable": true,
|
|
2464
|
+
"example": "2222222222222@c.us"
|
|
2465
|
+
},
|
|
2466
|
+
"createdAt": {
|
|
2467
|
+
"type": "string",
|
|
2468
|
+
"nullable": true,
|
|
2469
|
+
"example": "2024-11-10T12:34:56.000Z"
|
|
2470
|
+
},
|
|
2471
|
+
"lastActivityAt": {
|
|
2472
|
+
"type": "string",
|
|
2473
|
+
"nullable": true,
|
|
2474
|
+
"example": "2024-11-15T10:00:00.000Z"
|
|
2475
|
+
},
|
|
2476
|
+
"participants": {
|
|
2477
|
+
"type": "array",
|
|
2478
|
+
"items": {
|
|
2479
|
+
"type": "object",
|
|
2480
|
+
"properties": {
|
|
2481
|
+
"id": {
|
|
2482
|
+
"type": "string",
|
|
2483
|
+
"example": "1111111111111@c.us"
|
|
2484
|
+
},
|
|
2485
|
+
"isAdmin": {
|
|
2486
|
+
"type": "boolean",
|
|
2487
|
+
"example": true
|
|
2488
|
+
}
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
},
|
|
2499
|
+
"500": {
|
|
2500
|
+
"description": "Internal error retrieving group info",
|
|
2501
|
+
"content": {
|
|
2502
|
+
"application/json": {
|
|
2503
|
+
"schema": {
|
|
2504
|
+
"type": "object",
|
|
2505
|
+
"properties": {
|
|
2506
|
+
"status": {
|
|
2507
|
+
"type": "string",
|
|
2508
|
+
"example": "error"
|
|
2509
|
+
},
|
|
2510
|
+
"message": {
|
|
2511
|
+
"type": "string",
|
|
2512
|
+
"example": "Error getting group info"
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
},
|
|
2520
|
+
"security": [
|
|
2521
|
+
{
|
|
2522
|
+
"bearerAuth": []
|
|
2523
|
+
}
|
|
2524
|
+
]
|
|
2525
|
+
}
|
|
2526
|
+
},
|
|
2046
2527
|
"/api/{session}/group-invite-link/{groupId}": {
|
|
2047
2528
|
"get": {
|
|
2048
|
-
"tags": [
|
|
2529
|
+
"tags": [
|
|
2530
|
+
"Group"
|
|
2531
|
+
],
|
|
2049
2532
|
"description": "",
|
|
2050
2533
|
"parameters": [
|
|
2051
2534
|
{
|
|
@@ -2098,7 +2581,9 @@
|
|
|
2098
2581
|
},
|
|
2099
2582
|
"/api/{session}/group-revoke-link/{groupId}": {
|
|
2100
2583
|
"get": {
|
|
2101
|
-
"tags": [
|
|
2584
|
+
"tags": [
|
|
2585
|
+
"Group"
|
|
2586
|
+
],
|
|
2102
2587
|
"description": "",
|
|
2103
2588
|
"parameters": [
|
|
2104
2589
|
{
|
|
@@ -2151,7 +2636,9 @@
|
|
|
2151
2636
|
},
|
|
2152
2637
|
"/api/{session}/group-members-ids/{groupId}": {
|
|
2153
2638
|
"get": {
|
|
2154
|
-
"tags": [
|
|
2639
|
+
"tags": [
|
|
2640
|
+
"Group"
|
|
2641
|
+
],
|
|
2155
2642
|
"description": "",
|
|
2156
2643
|
"parameters": [
|
|
2157
2644
|
{
|
|
@@ -2190,7 +2677,9 @@
|
|
|
2190
2677
|
},
|
|
2191
2678
|
"/api/{session}/create-group": {
|
|
2192
2679
|
"post": {
|
|
2193
|
-
"tags": [
|
|
2680
|
+
"tags": [
|
|
2681
|
+
"Group"
|
|
2682
|
+
],
|
|
2194
2683
|
"description": "",
|
|
2195
2684
|
"parameters": [
|
|
2196
2685
|
{
|
|
@@ -2233,12 +2722,17 @@
|
|
|
2233
2722
|
"type": "string"
|
|
2234
2723
|
}
|
|
2235
2724
|
},
|
|
2236
|
-
"required": [
|
|
2725
|
+
"required": [
|
|
2726
|
+
"participants",
|
|
2727
|
+
"name"
|
|
2728
|
+
]
|
|
2237
2729
|
},
|
|
2238
2730
|
"examples": {
|
|
2239
2731
|
"Default": {
|
|
2240
2732
|
"value": {
|
|
2241
|
-
"participants": [
|
|
2733
|
+
"participants": [
|
|
2734
|
+
"5521999999999"
|
|
2735
|
+
],
|
|
2242
2736
|
"name": "Group name"
|
|
2243
2737
|
}
|
|
2244
2738
|
}
|
|
@@ -2250,7 +2744,9 @@
|
|
|
2250
2744
|
},
|
|
2251
2745
|
"/api/{session}/leave-group": {
|
|
2252
2746
|
"post": {
|
|
2253
|
-
"tags": [
|
|
2747
|
+
"tags": [
|
|
2748
|
+
"Group"
|
|
2749
|
+
],
|
|
2254
2750
|
"description": "",
|
|
2255
2751
|
"parameters": [
|
|
2256
2752
|
{
|
|
@@ -2287,7 +2783,9 @@
|
|
|
2287
2783
|
"type": "string"
|
|
2288
2784
|
}
|
|
2289
2785
|
},
|
|
2290
|
-
"required": [
|
|
2786
|
+
"required": [
|
|
2787
|
+
"groupId"
|
|
2788
|
+
]
|
|
2291
2789
|
}
|
|
2292
2790
|
}
|
|
2293
2791
|
}
|
|
@@ -2296,7 +2794,9 @@
|
|
|
2296
2794
|
},
|
|
2297
2795
|
"/api/{session}/join-code": {
|
|
2298
2796
|
"post": {
|
|
2299
|
-
"tags": [
|
|
2797
|
+
"tags": [
|
|
2798
|
+
"Group"
|
|
2799
|
+
],
|
|
2300
2800
|
"description": "",
|
|
2301
2801
|
"parameters": [
|
|
2302
2802
|
{
|
|
@@ -2336,7 +2836,9 @@
|
|
|
2336
2836
|
"type": "string"
|
|
2337
2837
|
}
|
|
2338
2838
|
},
|
|
2339
|
-
"required": [
|
|
2839
|
+
"required": [
|
|
2840
|
+
"inviteCode"
|
|
2841
|
+
]
|
|
2340
2842
|
},
|
|
2341
2843
|
"examples": {
|
|
2342
2844
|
"Default": {
|
|
@@ -2352,7 +2854,9 @@
|
|
|
2352
2854
|
},
|
|
2353
2855
|
"/api/{session}/add-participant-group": {
|
|
2354
2856
|
"post": {
|
|
2355
|
-
"tags": [
|
|
2857
|
+
"tags": [
|
|
2858
|
+
"Group"
|
|
2859
|
+
],
|
|
2356
2860
|
"description": "",
|
|
2357
2861
|
"parameters": [
|
|
2358
2862
|
{
|
|
@@ -2392,7 +2896,10 @@
|
|
|
2392
2896
|
"type": "string"
|
|
2393
2897
|
}
|
|
2394
2898
|
},
|
|
2395
|
-
"required": [
|
|
2899
|
+
"required": [
|
|
2900
|
+
"groupId",
|
|
2901
|
+
"phone"
|
|
2902
|
+
]
|
|
2396
2903
|
},
|
|
2397
2904
|
"examples": {
|
|
2398
2905
|
"Default": {
|
|
@@ -2409,7 +2916,9 @@
|
|
|
2409
2916
|
},
|
|
2410
2917
|
"/api/{session}/remove-participant-group": {
|
|
2411
2918
|
"post": {
|
|
2412
|
-
"tags": [
|
|
2919
|
+
"tags": [
|
|
2920
|
+
"Group"
|
|
2921
|
+
],
|
|
2413
2922
|
"description": "",
|
|
2414
2923
|
"parameters": [
|
|
2415
2924
|
{
|
|
@@ -2449,7 +2958,10 @@
|
|
|
2449
2958
|
"type": "string"
|
|
2450
2959
|
}
|
|
2451
2960
|
},
|
|
2452
|
-
"required": [
|
|
2961
|
+
"required": [
|
|
2962
|
+
"groupId",
|
|
2963
|
+
"phone"
|
|
2964
|
+
]
|
|
2453
2965
|
},
|
|
2454
2966
|
"examples": {
|
|
2455
2967
|
"Default": {
|
|
@@ -2466,7 +2978,9 @@
|
|
|
2466
2978
|
},
|
|
2467
2979
|
"/api/{session}/promote-participant-group": {
|
|
2468
2980
|
"post": {
|
|
2469
|
-
"tags": [
|
|
2981
|
+
"tags": [
|
|
2982
|
+
"Group"
|
|
2983
|
+
],
|
|
2470
2984
|
"description": "",
|
|
2471
2985
|
"parameters": [
|
|
2472
2986
|
{
|
|
@@ -2506,7 +3020,10 @@
|
|
|
2506
3020
|
"type": "string"
|
|
2507
3021
|
}
|
|
2508
3022
|
},
|
|
2509
|
-
"required": [
|
|
3023
|
+
"required": [
|
|
3024
|
+
"groupId",
|
|
3025
|
+
"phone"
|
|
3026
|
+
]
|
|
2510
3027
|
},
|
|
2511
3028
|
"examples": {
|
|
2512
3029
|
"Default": {
|
|
@@ -2523,7 +3040,9 @@
|
|
|
2523
3040
|
},
|
|
2524
3041
|
"/api/{session}/demote-participant-group": {
|
|
2525
3042
|
"post": {
|
|
2526
|
-
"tags": [
|
|
3043
|
+
"tags": [
|
|
3044
|
+
"Group"
|
|
3045
|
+
],
|
|
2527
3046
|
"description": "",
|
|
2528
3047
|
"parameters": [
|
|
2529
3048
|
{
|
|
@@ -2563,7 +3082,10 @@
|
|
|
2563
3082
|
"type": "string"
|
|
2564
3083
|
}
|
|
2565
3084
|
},
|
|
2566
|
-
"required": [
|
|
3085
|
+
"required": [
|
|
3086
|
+
"groupId",
|
|
3087
|
+
"phone"
|
|
3088
|
+
]
|
|
2567
3089
|
},
|
|
2568
3090
|
"examples": {
|
|
2569
3091
|
"Default": {
|
|
@@ -2580,7 +3102,9 @@
|
|
|
2580
3102
|
},
|
|
2581
3103
|
"/api/{session}/group-info-from-invite-link": {
|
|
2582
3104
|
"post": {
|
|
2583
|
-
"tags": [
|
|
3105
|
+
"tags": [
|
|
3106
|
+
"Group"
|
|
3107
|
+
],
|
|
2584
3108
|
"description": "",
|
|
2585
3109
|
"parameters": [
|
|
2586
3110
|
{
|
|
@@ -2625,7 +3149,9 @@
|
|
|
2625
3149
|
},
|
|
2626
3150
|
"/api/{session}/group-description": {
|
|
2627
3151
|
"post": {
|
|
2628
|
-
"tags": [
|
|
3152
|
+
"tags": [
|
|
3153
|
+
"Group"
|
|
3154
|
+
],
|
|
2629
3155
|
"description": "",
|
|
2630
3156
|
"parameters": [
|
|
2631
3157
|
{
|
|
@@ -2673,7 +3199,9 @@
|
|
|
2673
3199
|
},
|
|
2674
3200
|
"/api/{session}/group-property": {
|
|
2675
3201
|
"post": {
|
|
2676
|
-
"tags": [
|
|
3202
|
+
"tags": [
|
|
3203
|
+
"Group"
|
|
3204
|
+
],
|
|
2677
3205
|
"description": "",
|
|
2678
3206
|
"parameters": [
|
|
2679
3207
|
{
|
|
@@ -2724,7 +3252,9 @@
|
|
|
2724
3252
|
},
|
|
2725
3253
|
"/api/{session}/group-subject": {
|
|
2726
3254
|
"post": {
|
|
2727
|
-
"tags": [
|
|
3255
|
+
"tags": [
|
|
3256
|
+
"Group"
|
|
3257
|
+
],
|
|
2728
3258
|
"description": "",
|
|
2729
3259
|
"parameters": [
|
|
2730
3260
|
{
|
|
@@ -2772,7 +3302,9 @@
|
|
|
2772
3302
|
},
|
|
2773
3303
|
"/api/{session}/messages-admins-only": {
|
|
2774
3304
|
"post": {
|
|
2775
|
-
"tags": [
|
|
3305
|
+
"tags": [
|
|
3306
|
+
"Group"
|
|
3307
|
+
],
|
|
2776
3308
|
"description": "",
|
|
2777
3309
|
"parameters": [
|
|
2778
3310
|
{
|
|
@@ -2820,7 +3352,9 @@
|
|
|
2820
3352
|
},
|
|
2821
3353
|
"/api/{session}/group-pic": {
|
|
2822
3354
|
"post": {
|
|
2823
|
-
"tags": [
|
|
3355
|
+
"tags": [
|
|
3356
|
+
"Group"
|
|
3357
|
+
],
|
|
2824
3358
|
"description": "",
|
|
2825
3359
|
"parameters": [
|
|
2826
3360
|
{
|
|
@@ -2871,7 +3405,9 @@
|
|
|
2871
3405
|
},
|
|
2872
3406
|
"/api/{session}/change-privacy-group": {
|
|
2873
3407
|
"post": {
|
|
2874
|
-
"tags": [
|
|
3408
|
+
"tags": [
|
|
3409
|
+
"Group"
|
|
3410
|
+
],
|
|
2875
3411
|
"description": "",
|
|
2876
3412
|
"parameters": [
|
|
2877
3413
|
{
|
|
@@ -2919,7 +3455,9 @@
|
|
|
2919
3455
|
},
|
|
2920
3456
|
"/api/{session}/all-chats": {
|
|
2921
3457
|
"get": {
|
|
2922
|
-
"tags": [
|
|
3458
|
+
"tags": [
|
|
3459
|
+
"Chat"
|
|
3460
|
+
],
|
|
2923
3461
|
"summary": "Deprecated in favor of ",
|
|
2924
3462
|
"description": "This body is not required. Not sent body to get all chats or filter.",
|
|
2925
3463
|
"parameters": [
|
|
@@ -2984,7 +3522,9 @@
|
|
|
2984
3522
|
"example": "My new status"
|
|
2985
3523
|
}
|
|
2986
3524
|
},
|
|
2987
|
-
"required": [
|
|
3525
|
+
"required": [
|
|
3526
|
+
"status"
|
|
3527
|
+
]
|
|
2988
3528
|
}
|
|
2989
3529
|
},
|
|
2990
3530
|
{
|
|
@@ -3092,7 +3632,9 @@
|
|
|
3092
3632
|
},
|
|
3093
3633
|
"/api/{session}/list-chats": {
|
|
3094
3634
|
"post": {
|
|
3095
|
-
"tags": [
|
|
3635
|
+
"tags": [
|
|
3636
|
+
"Chat"
|
|
3637
|
+
],
|
|
3096
3638
|
"summary": "Retrieve a list of chats",
|
|
3097
3639
|
"description": "This body is not required. Not sent body to get all chats or filter.",
|
|
3098
3640
|
"parameters": [
|
|
@@ -3189,7 +3731,9 @@
|
|
|
3189
3731
|
},
|
|
3190
3732
|
"/api/{session}/all-chats-archived": {
|
|
3191
3733
|
"get": {
|
|
3192
|
-
"tags": [
|
|
3734
|
+
"tags": [
|
|
3735
|
+
"Chat"
|
|
3736
|
+
],
|
|
3193
3737
|
"description": "Retrieves all archived chats.",
|
|
3194
3738
|
"parameters": [
|
|
3195
3739
|
{
|
|
@@ -3219,7 +3763,9 @@
|
|
|
3219
3763
|
},
|
|
3220
3764
|
"/api/{session}/all-chats-with-messages": {
|
|
3221
3765
|
"get": {
|
|
3222
|
-
"tags": [
|
|
3766
|
+
"tags": [
|
|
3767
|
+
"Chat"
|
|
3768
|
+
],
|
|
3223
3769
|
"summary": "Deprecated in favor of list-chats",
|
|
3224
3770
|
"description": "",
|
|
3225
3771
|
"parameters": [
|
|
@@ -3251,7 +3797,9 @@
|
|
|
3251
3797
|
},
|
|
3252
3798
|
"/api/{session}/all-messages-in-chat/{phone}": {
|
|
3253
3799
|
"get": {
|
|
3254
|
-
"tags": [
|
|
3800
|
+
"tags": [
|
|
3801
|
+
"Chat"
|
|
3802
|
+
],
|
|
3255
3803
|
"description": "",
|
|
3256
3804
|
"parameters": [
|
|
3257
3805
|
{
|
|
@@ -3314,7 +3862,9 @@
|
|
|
3314
3862
|
},
|
|
3315
3863
|
"/api/{session}/all-new-messages": {
|
|
3316
3864
|
"get": {
|
|
3317
|
-
"tags": [
|
|
3865
|
+
"tags": [
|
|
3866
|
+
"Chat"
|
|
3867
|
+
],
|
|
3318
3868
|
"description": "",
|
|
3319
3869
|
"parameters": [
|
|
3320
3870
|
{
|
|
@@ -3344,7 +3894,9 @@
|
|
|
3344
3894
|
},
|
|
3345
3895
|
"/api/{session}/unread-messages": {
|
|
3346
3896
|
"get": {
|
|
3347
|
-
"tags": [
|
|
3897
|
+
"tags": [
|
|
3898
|
+
"Messages"
|
|
3899
|
+
],
|
|
3348
3900
|
"description": "",
|
|
3349
3901
|
"parameters": [
|
|
3350
3902
|
{
|
|
@@ -3375,7 +3927,9 @@
|
|
|
3375
3927
|
},
|
|
3376
3928
|
"/api/{session}/all-unread-messages": {
|
|
3377
3929
|
"get": {
|
|
3378
|
-
"tags": [
|
|
3930
|
+
"tags": [
|
|
3931
|
+
"Chat"
|
|
3932
|
+
],
|
|
3379
3933
|
"description": "",
|
|
3380
3934
|
"parameters": [
|
|
3381
3935
|
{
|
|
@@ -3405,7 +3959,9 @@
|
|
|
3405
3959
|
},
|
|
3406
3960
|
"/api/{session}/chat-by-id/{phone}": {
|
|
3407
3961
|
"get": {
|
|
3408
|
-
"tags": [
|
|
3962
|
+
"tags": [
|
|
3963
|
+
"Chat"
|
|
3964
|
+
],
|
|
3409
3965
|
"description": "",
|
|
3410
3966
|
"parameters": [
|
|
3411
3967
|
{
|
|
@@ -3452,7 +4008,9 @@
|
|
|
3452
4008
|
},
|
|
3453
4009
|
"/api/{session}/message-by-id/{messageId}": {
|
|
3454
4010
|
"get": {
|
|
3455
|
-
"tags": [
|
|
4011
|
+
"tags": [
|
|
4012
|
+
"Chat"
|
|
4013
|
+
],
|
|
3456
4014
|
"description": "",
|
|
3457
4015
|
"parameters": [
|
|
3458
4016
|
{
|
|
@@ -3488,7 +4046,9 @@
|
|
|
3488
4046
|
},
|
|
3489
4047
|
"/api/{session}/chat-is-online/{phone}": {
|
|
3490
4048
|
"get": {
|
|
3491
|
-
"tags": [
|
|
4049
|
+
"tags": [
|
|
4050
|
+
"Chat"
|
|
4051
|
+
],
|
|
3492
4052
|
"description": "",
|
|
3493
4053
|
"parameters": [
|
|
3494
4054
|
{
|
|
@@ -3527,7 +4087,9 @@
|
|
|
3527
4087
|
},
|
|
3528
4088
|
"/api/{session}/last-seen/{phone}": {
|
|
3529
4089
|
"get": {
|
|
3530
|
-
"tags": [
|
|
4090
|
+
"tags": [
|
|
4091
|
+
"Chat"
|
|
4092
|
+
],
|
|
3531
4093
|
"description": "",
|
|
3532
4094
|
"parameters": [
|
|
3533
4095
|
{
|
|
@@ -3566,7 +4128,9 @@
|
|
|
3566
4128
|
},
|
|
3567
4129
|
"/api/{session}/list-mutes/{type}": {
|
|
3568
4130
|
"get": {
|
|
3569
|
-
"tags": [
|
|
4131
|
+
"tags": [
|
|
4132
|
+
"Chat"
|
|
4133
|
+
],
|
|
3570
4134
|
"description": "",
|
|
3571
4135
|
"parameters": [
|
|
3572
4136
|
{
|
|
@@ -3605,7 +4169,9 @@
|
|
|
3605
4169
|
},
|
|
3606
4170
|
"/api/{session}/load-messages-in-chat/{phone}": {
|
|
3607
4171
|
"get": {
|
|
3608
|
-
"tags": [
|
|
4172
|
+
"tags": [
|
|
4173
|
+
"Chat"
|
|
4174
|
+
],
|
|
3609
4175
|
"description": "",
|
|
3610
4176
|
"parameters": [
|
|
3611
4177
|
{
|
|
@@ -3661,7 +4227,9 @@
|
|
|
3661
4227
|
},
|
|
3662
4228
|
"/api/{session}/get-messages/{phone}": {
|
|
3663
4229
|
"get": {
|
|
3664
|
-
"tags": [
|
|
4230
|
+
"tags": [
|
|
4231
|
+
"Messages"
|
|
4232
|
+
],
|
|
3665
4233
|
"description": "",
|
|
3666
4234
|
"parameters": [
|
|
3667
4235
|
{
|
|
@@ -3724,7 +4292,9 @@
|
|
|
3724
4292
|
},
|
|
3725
4293
|
"/api/{session}/archive-chat": {
|
|
3726
4294
|
"post": {
|
|
3727
|
-
"tags": [
|
|
4295
|
+
"tags": [
|
|
4296
|
+
"Chat"
|
|
4297
|
+
],
|
|
3728
4298
|
"description": "",
|
|
3729
4299
|
"parameters": [
|
|
3730
4300
|
{
|
|
@@ -3784,7 +4354,9 @@
|
|
|
3784
4354
|
},
|
|
3785
4355
|
"/api/{session}/archive-all-chats": {
|
|
3786
4356
|
"post": {
|
|
3787
|
-
"tags": [
|
|
4357
|
+
"tags": [
|
|
4358
|
+
"Chat"
|
|
4359
|
+
],
|
|
3788
4360
|
"description": "",
|
|
3789
4361
|
"parameters": [
|
|
3790
4362
|
{
|
|
@@ -3814,7 +4386,9 @@
|
|
|
3814
4386
|
},
|
|
3815
4387
|
"/api/{session}/clear-chat": {
|
|
3816
4388
|
"post": {
|
|
3817
|
-
"tags": [
|
|
4389
|
+
"tags": [
|
|
4390
|
+
"Chat"
|
|
4391
|
+
],
|
|
3818
4392
|
"description": "",
|
|
3819
4393
|
"parameters": [
|
|
3820
4394
|
{
|
|
@@ -3867,7 +4441,9 @@
|
|
|
3867
4441
|
},
|
|
3868
4442
|
"/api/{session}/clear-all-chats": {
|
|
3869
4443
|
"post": {
|
|
3870
|
-
"tags": [
|
|
4444
|
+
"tags": [
|
|
4445
|
+
"Chat"
|
|
4446
|
+
],
|
|
3871
4447
|
"description": "",
|
|
3872
4448
|
"parameters": [
|
|
3873
4449
|
{
|
|
@@ -3897,7 +4473,9 @@
|
|
|
3897
4473
|
},
|
|
3898
4474
|
"/api/{session}/delete-chat": {
|
|
3899
4475
|
"post": {
|
|
3900
|
-
"tags": [
|
|
4476
|
+
"tags": [
|
|
4477
|
+
"Chat"
|
|
4478
|
+
],
|
|
3901
4479
|
"description": "",
|
|
3902
4480
|
"parameters": [
|
|
3903
4481
|
{
|
|
@@ -3950,7 +4528,9 @@
|
|
|
3950
4528
|
},
|
|
3951
4529
|
"/api/{session}/delete-all-chats": {
|
|
3952
4530
|
"post": {
|
|
3953
|
-
"tags": [
|
|
4531
|
+
"tags": [
|
|
4532
|
+
"Chat"
|
|
4533
|
+
],
|
|
3954
4534
|
"description": "",
|
|
3955
4535
|
"parameters": [
|
|
3956
4536
|
{
|
|
@@ -3980,7 +4560,9 @@
|
|
|
3980
4560
|
},
|
|
3981
4561
|
"/api/{session}/delete-message": {
|
|
3982
4562
|
"post": {
|
|
3983
|
-
"tags": [
|
|
4563
|
+
"tags": [
|
|
4564
|
+
"Messages"
|
|
4565
|
+
],
|
|
3984
4566
|
"description": "",
|
|
3985
4567
|
"parameters": [
|
|
3986
4568
|
{
|
|
@@ -4057,7 +4639,9 @@
|
|
|
4057
4639
|
},
|
|
4058
4640
|
"/api/{session}/react-message": {
|
|
4059
4641
|
"post": {
|
|
4060
|
-
"tags": [
|
|
4642
|
+
"tags": [
|
|
4643
|
+
"Messages"
|
|
4644
|
+
],
|
|
4061
4645
|
"description": "",
|
|
4062
4646
|
"parameters": [
|
|
4063
4647
|
{
|
|
@@ -4113,7 +4697,9 @@
|
|
|
4113
4697
|
},
|
|
4114
4698
|
"/api/{session}/forward-messages": {
|
|
4115
4699
|
"post": {
|
|
4116
|
-
"tags": [
|
|
4700
|
+
"tags": [
|
|
4701
|
+
"Messages"
|
|
4702
|
+
],
|
|
4117
4703
|
"description": "",
|
|
4118
4704
|
"parameters": [
|
|
4119
4705
|
{
|
|
@@ -4173,7 +4759,9 @@
|
|
|
4173
4759
|
},
|
|
4174
4760
|
"/api/{session}/mark-unseen": {
|
|
4175
4761
|
"post": {
|
|
4176
|
-
"tags": [
|
|
4762
|
+
"tags": [
|
|
4763
|
+
"Messages"
|
|
4764
|
+
],
|
|
4177
4765
|
"description": "",
|
|
4178
4766
|
"parameters": [
|
|
4179
4767
|
{
|
|
@@ -4229,7 +4817,9 @@
|
|
|
4229
4817
|
},
|
|
4230
4818
|
"/api/{session}/pin-chat": {
|
|
4231
4819
|
"post": {
|
|
4232
|
-
"tags": [
|
|
4820
|
+
"tags": [
|
|
4821
|
+
"Chat"
|
|
4822
|
+
],
|
|
4233
4823
|
"description": "",
|
|
4234
4824
|
"parameters": [
|
|
4235
4825
|
{
|
|
@@ -4260,7 +4850,11 @@
|
|
|
4260
4850
|
"example": true
|
|
4261
4851
|
}
|
|
4262
4852
|
},
|
|
4263
|
-
"required": [
|
|
4853
|
+
"required": [
|
|
4854
|
+
"phone",
|
|
4855
|
+
"isGroup",
|
|
4856
|
+
"state"
|
|
4857
|
+
]
|
|
4264
4858
|
}
|
|
4265
4859
|
}
|
|
4266
4860
|
],
|
|
@@ -4310,7 +4904,9 @@
|
|
|
4310
4904
|
},
|
|
4311
4905
|
"/api/{session}/contact-vcard": {
|
|
4312
4906
|
"post": {
|
|
4313
|
-
"tags": [
|
|
4907
|
+
"tags": [
|
|
4908
|
+
"Messages"
|
|
4909
|
+
],
|
|
4314
4910
|
"description": "",
|
|
4315
4911
|
"parameters": [
|
|
4316
4912
|
{
|
|
@@ -4363,7 +4959,9 @@
|
|
|
4363
4959
|
"phone": "5521999999999",
|
|
4364
4960
|
"isGroup": false,
|
|
4365
4961
|
"name": "Name of contact",
|
|
4366
|
-
"contactsId": [
|
|
4962
|
+
"contactsId": [
|
|
4963
|
+
"5521999999999"
|
|
4964
|
+
]
|
|
4367
4965
|
}
|
|
4368
4966
|
}
|
|
4369
4967
|
}
|
|
@@ -4374,7 +4972,9 @@
|
|
|
4374
4972
|
},
|
|
4375
4973
|
"/api/{session}/send-mute": {
|
|
4376
4974
|
"post": {
|
|
4377
|
-
"tags": [
|
|
4975
|
+
"tags": [
|
|
4976
|
+
"Chat"
|
|
4977
|
+
],
|
|
4378
4978
|
"description": "",
|
|
4379
4979
|
"parameters": [
|
|
4380
4980
|
{
|
|
@@ -4438,7 +5038,9 @@
|
|
|
4438
5038
|
},
|
|
4439
5039
|
"/api/{session}/send-seen": {
|
|
4440
5040
|
"post": {
|
|
4441
|
-
"tags": [
|
|
5041
|
+
"tags": [
|
|
5042
|
+
"Chat"
|
|
5043
|
+
],
|
|
4442
5044
|
"description": "",
|
|
4443
5045
|
"parameters": [
|
|
4444
5046
|
{
|
|
@@ -4491,7 +5093,9 @@
|
|
|
4491
5093
|
},
|
|
4492
5094
|
"/api/{session}/chat-state": {
|
|
4493
5095
|
"post": {
|
|
4494
|
-
"tags": [
|
|
5096
|
+
"tags": [
|
|
5097
|
+
"Chat"
|
|
5098
|
+
],
|
|
4495
5099
|
"description": "",
|
|
4496
5100
|
"parameters": [
|
|
4497
5101
|
{
|
|
@@ -4552,7 +5156,9 @@
|
|
|
4552
5156
|
},
|
|
4553
5157
|
"/api/{session}/temporary-messages": {
|
|
4554
5158
|
"post": {
|
|
4555
|
-
"tags": [
|
|
5159
|
+
"tags": [
|
|
5160
|
+
"Messages"
|
|
5161
|
+
],
|
|
4556
5162
|
"description": "",
|
|
4557
5163
|
"parameters": [
|
|
4558
5164
|
{
|
|
@@ -4612,7 +5218,9 @@
|
|
|
4612
5218
|
},
|
|
4613
5219
|
"/api/{session}/typing": {
|
|
4614
5220
|
"post": {
|
|
4615
|
-
"tags": [
|
|
5221
|
+
"tags": [
|
|
5222
|
+
"Chat"
|
|
5223
|
+
],
|
|
4616
5224
|
"description": "",
|
|
4617
5225
|
"parameters": [
|
|
4618
5226
|
{
|
|
@@ -4672,7 +5280,9 @@
|
|
|
4672
5280
|
},
|
|
4673
5281
|
"/api/{session}/recording": {
|
|
4674
5282
|
"post": {
|
|
4675
|
-
"tags": [
|
|
5283
|
+
"tags": [
|
|
5284
|
+
"Chat"
|
|
5285
|
+
],
|
|
4676
5286
|
"description": "",
|
|
4677
5287
|
"parameters": [
|
|
4678
5288
|
{
|
|
@@ -4736,7 +5346,9 @@
|
|
|
4736
5346
|
},
|
|
4737
5347
|
"/api/{session}/star-message": {
|
|
4738
5348
|
"post": {
|
|
4739
|
-
"tags": [
|
|
5349
|
+
"tags": [
|
|
5350
|
+
"Messages"
|
|
5351
|
+
],
|
|
4740
5352
|
"description": "",
|
|
4741
5353
|
"parameters": [
|
|
4742
5354
|
{
|
|
@@ -4792,7 +5404,9 @@
|
|
|
4792
5404
|
},
|
|
4793
5405
|
"/api/{session}/reactions/{id}": {
|
|
4794
5406
|
"get": {
|
|
4795
|
-
"tags": [
|
|
5407
|
+
"tags": [
|
|
5408
|
+
"Messages"
|
|
5409
|
+
],
|
|
4796
5410
|
"description": "",
|
|
4797
5411
|
"parameters": [
|
|
4798
5412
|
{
|
|
@@ -4838,7 +5452,9 @@
|
|
|
4838
5452
|
},
|
|
4839
5453
|
"/api/{session}/votes/{id}": {
|
|
4840
5454
|
"get": {
|
|
4841
|
-
"tags": [
|
|
5455
|
+
"tags": [
|
|
5456
|
+
"Messages"
|
|
5457
|
+
],
|
|
4842
5458
|
"description": "",
|
|
4843
5459
|
"parameters": [
|
|
4844
5460
|
{
|
|
@@ -4884,7 +5500,9 @@
|
|
|
4884
5500
|
},
|
|
4885
5501
|
"/api/{session}/reject-call": {
|
|
4886
5502
|
"post": {
|
|
4887
|
-
"tags": [
|
|
5503
|
+
"tags": [
|
|
5504
|
+
"Misc"
|
|
5505
|
+
],
|
|
4888
5506
|
"description": "",
|
|
4889
5507
|
"parameters": [
|
|
4890
5508
|
{
|
|
@@ -4936,7 +5554,9 @@
|
|
|
4936
5554
|
},
|
|
4937
5555
|
"/api/{session}/get-products": {
|
|
4938
5556
|
"get": {
|
|
4939
|
-
"tags": [
|
|
5557
|
+
"tags": [
|
|
5558
|
+
"Catalog & Bussiness"
|
|
5559
|
+
],
|
|
4940
5560
|
"description": "",
|
|
4941
5561
|
"parameters": [
|
|
4942
5562
|
{
|
|
@@ -4985,7 +5605,9 @@
|
|
|
4985
5605
|
},
|
|
4986
5606
|
"/api/{session}/get-product-by-id": {
|
|
4987
5607
|
"get": {
|
|
4988
|
-
"tags": [
|
|
5608
|
+
"tags": [
|
|
5609
|
+
"Catalog & Bussiness"
|
|
5610
|
+
],
|
|
4989
5611
|
"description": "",
|
|
4990
5612
|
"parameters": [
|
|
4991
5613
|
{
|
|
@@ -5034,7 +5656,9 @@
|
|
|
5034
5656
|
},
|
|
5035
5657
|
"/api/{session}/add-product": {
|
|
5036
5658
|
"post": {
|
|
5037
|
-
"tags": [
|
|
5659
|
+
"tags": [
|
|
5660
|
+
"Catalog & Bussiness"
|
|
5661
|
+
],
|
|
5038
5662
|
"description": "",
|
|
5039
5663
|
"parameters": [
|
|
5040
5664
|
{
|
|
@@ -5113,7 +5737,9 @@
|
|
|
5113
5737
|
},
|
|
5114
5738
|
"/api/{session}/edit-product": {
|
|
5115
5739
|
"post": {
|
|
5116
|
-
"tags": [
|
|
5740
|
+
"tags": [
|
|
5741
|
+
"Catalog & Bussiness"
|
|
5742
|
+
],
|
|
5117
5743
|
"description": "",
|
|
5118
5744
|
"parameters": [
|
|
5119
5745
|
{
|
|
@@ -5174,7 +5800,9 @@
|
|
|
5174
5800
|
},
|
|
5175
5801
|
"/api/{session}/del-products": {
|
|
5176
5802
|
"post": {
|
|
5177
|
-
"tags": [
|
|
5803
|
+
"tags": [
|
|
5804
|
+
"Catalog & Bussiness"
|
|
5805
|
+
],
|
|
5178
5806
|
"description": "",
|
|
5179
5807
|
"parameters": [
|
|
5180
5808
|
{
|
|
@@ -5229,7 +5857,9 @@
|
|
|
5229
5857
|
},
|
|
5230
5858
|
"/api/{session}/change-product-image": {
|
|
5231
5859
|
"post": {
|
|
5232
|
-
"tags": [
|
|
5860
|
+
"tags": [
|
|
5861
|
+
"Catalog & Bussiness"
|
|
5862
|
+
],
|
|
5233
5863
|
"description": "",
|
|
5234
5864
|
"parameters": [
|
|
5235
5865
|
{
|
|
@@ -5288,7 +5918,9 @@
|
|
|
5288
5918
|
},
|
|
5289
5919
|
"/api/{session}/add-product-image": {
|
|
5290
5920
|
"post": {
|
|
5291
|
-
"tags": [
|
|
5921
|
+
"tags": [
|
|
5922
|
+
"Catalog & Bussiness"
|
|
5923
|
+
],
|
|
5292
5924
|
"description": "",
|
|
5293
5925
|
"parameters": [
|
|
5294
5926
|
{
|
|
@@ -5347,7 +5979,9 @@
|
|
|
5347
5979
|
},
|
|
5348
5980
|
"/api/{session}/remove-product-image": {
|
|
5349
5981
|
"post": {
|
|
5350
|
-
"tags": [
|
|
5982
|
+
"tags": [
|
|
5983
|
+
"Catalog & Bussiness"
|
|
5984
|
+
],
|
|
5351
5985
|
"description": "",
|
|
5352
5986
|
"parameters": [
|
|
5353
5987
|
{
|
|
@@ -5406,7 +6040,9 @@
|
|
|
5406
6040
|
},
|
|
5407
6041
|
"/api/{session}/get-collections": {
|
|
5408
6042
|
"get": {
|
|
5409
|
-
"tags": [
|
|
6043
|
+
"tags": [
|
|
6044
|
+
"Catalog & Bussiness"
|
|
6045
|
+
],
|
|
5410
6046
|
"description": "",
|
|
5411
6047
|
"parameters": [
|
|
5412
6048
|
{
|
|
@@ -5463,7 +6099,9 @@
|
|
|
5463
6099
|
},
|
|
5464
6100
|
"/api/{session}/create-collection": {
|
|
5465
6101
|
"post": {
|
|
5466
|
-
"tags": [
|
|
6102
|
+
"tags": [
|
|
6103
|
+
"Catalog & Bussiness"
|
|
6104
|
+
],
|
|
5467
6105
|
"description": "",
|
|
5468
6106
|
"parameters": [
|
|
5469
6107
|
{
|
|
@@ -5511,7 +6149,10 @@
|
|
|
5511
6149
|
"Default": {
|
|
5512
6150
|
"value": {
|
|
5513
6151
|
"name": "Collection name",
|
|
5514
|
-
"products": [
|
|
6152
|
+
"products": [
|
|
6153
|
+
"<id_product1>",
|
|
6154
|
+
"<id_product2>"
|
|
6155
|
+
]
|
|
5515
6156
|
}
|
|
5516
6157
|
}
|
|
5517
6158
|
}
|
|
@@ -5522,7 +6163,9 @@
|
|
|
5522
6163
|
},
|
|
5523
6164
|
"/api/{session}/edit-collection": {
|
|
5524
6165
|
"post": {
|
|
5525
|
-
"tags": [
|
|
6166
|
+
"tags": [
|
|
6167
|
+
"Catalog & Bussiness"
|
|
6168
|
+
],
|
|
5526
6169
|
"description": "",
|
|
5527
6170
|
"parameters": [
|
|
5528
6171
|
{
|
|
@@ -5583,7 +6226,9 @@
|
|
|
5583
6226
|
},
|
|
5584
6227
|
"/api/{session}/del-collection": {
|
|
5585
6228
|
"post": {
|
|
5586
|
-
"tags": [
|
|
6229
|
+
"tags": [
|
|
6230
|
+
"Catalog & Bussiness"
|
|
6231
|
+
],
|
|
5587
6232
|
"description": "",
|
|
5588
6233
|
"parameters": [
|
|
5589
6234
|
{
|
|
@@ -5638,7 +6283,9 @@
|
|
|
5638
6283
|
},
|
|
5639
6284
|
"/api/{session}/send-link-catalog": {
|
|
5640
6285
|
"post": {
|
|
5641
|
-
"tags": [
|
|
6286
|
+
"tags": [
|
|
6287
|
+
"Messages"
|
|
6288
|
+
],
|
|
5642
6289
|
"description": "",
|
|
5643
6290
|
"parameters": [
|
|
5644
6291
|
{
|
|
@@ -5685,7 +6332,9 @@
|
|
|
5685
6332
|
"examples": {
|
|
5686
6333
|
"Default": {
|
|
5687
6334
|
"value": {
|
|
5688
|
-
"phones": [
|
|
6335
|
+
"phones": [
|
|
6336
|
+
"<array_phone_id"
|
|
6337
|
+
],
|
|
5689
6338
|
"message": "Message"
|
|
5690
6339
|
}
|
|
5691
6340
|
}
|
|
@@ -5697,7 +6346,9 @@
|
|
|
5697
6346
|
},
|
|
5698
6347
|
"/api/{session}/set-product-visibility": {
|
|
5699
6348
|
"post": {
|
|
5700
|
-
"tags": [
|
|
6349
|
+
"tags": [
|
|
6350
|
+
"Catalog & Bussiness"
|
|
6351
|
+
],
|
|
5701
6352
|
"description": "",
|
|
5702
6353
|
"parameters": [
|
|
5703
6354
|
{
|
|
@@ -5724,7 +6375,10 @@
|
|
|
5724
6375
|
"example": false
|
|
5725
6376
|
}
|
|
5726
6377
|
},
|
|
5727
|
-
"required": [
|
|
6378
|
+
"required": [
|
|
6379
|
+
"id",
|
|
6380
|
+
"value"
|
|
6381
|
+
]
|
|
5728
6382
|
}
|
|
5729
6383
|
}
|
|
5730
6384
|
],
|
|
@@ -5774,7 +6428,9 @@
|
|
|
5774
6428
|
},
|
|
5775
6429
|
"/api/{session}/set-cart-enabled": {
|
|
5776
6430
|
"post": {
|
|
5777
|
-
"tags": [
|
|
6431
|
+
"tags": [
|
|
6432
|
+
"Catalog & Bussiness"
|
|
6433
|
+
],
|
|
5778
6434
|
"description": "",
|
|
5779
6435
|
"parameters": [
|
|
5780
6436
|
{
|
|
@@ -5829,7 +6485,9 @@
|
|
|
5829
6485
|
},
|
|
5830
6486
|
"/api/{session}/send-text-storie": {
|
|
5831
6487
|
"post": {
|
|
5832
|
-
"tags": [
|
|
6488
|
+
"tags": [
|
|
6489
|
+
"Status Stories"
|
|
6490
|
+
],
|
|
5833
6491
|
"description": "",
|
|
5834
6492
|
"parameters": [
|
|
5835
6493
|
{
|
|
@@ -5895,7 +6553,9 @@
|
|
|
5895
6553
|
"type": "object"
|
|
5896
6554
|
}
|
|
5897
6555
|
},
|
|
5898
|
-
"required": [
|
|
6556
|
+
"required": [
|
|
6557
|
+
"text"
|
|
6558
|
+
]
|
|
5899
6559
|
},
|
|
5900
6560
|
"examples": {
|
|
5901
6561
|
"Default": {
|
|
@@ -5915,7 +6575,9 @@
|
|
|
5915
6575
|
},
|
|
5916
6576
|
"/api/{session}/send-image-storie": {
|
|
5917
6577
|
"post": {
|
|
5918
|
-
"tags": [
|
|
6578
|
+
"tags": [
|
|
6579
|
+
"Status Stories"
|
|
6580
|
+
],
|
|
5919
6581
|
"description": "",
|
|
5920
6582
|
"parameters": [
|
|
5921
6583
|
{
|
|
@@ -5952,7 +6614,9 @@
|
|
|
5952
6614
|
"type": "string"
|
|
5953
6615
|
}
|
|
5954
6616
|
},
|
|
5955
|
-
"required": [
|
|
6617
|
+
"required": [
|
|
6618
|
+
"path"
|
|
6619
|
+
]
|
|
5956
6620
|
},
|
|
5957
6621
|
"examples": {
|
|
5958
6622
|
"Default": {
|
|
@@ -5968,7 +6632,9 @@
|
|
|
5968
6632
|
},
|
|
5969
6633
|
"/api/{session}/send-video-storie": {
|
|
5970
6634
|
"post": {
|
|
5971
|
-
"tags": [
|
|
6635
|
+
"tags": [
|
|
6636
|
+
"Status Stories"
|
|
6637
|
+
],
|
|
5972
6638
|
"description": "",
|
|
5973
6639
|
"parameters": [
|
|
5974
6640
|
{
|
|
@@ -6005,7 +6671,9 @@
|
|
|
6005
6671
|
"type": "string"
|
|
6006
6672
|
}
|
|
6007
6673
|
},
|
|
6008
|
-
"required": [
|
|
6674
|
+
"required": [
|
|
6675
|
+
"path"
|
|
6676
|
+
]
|
|
6009
6677
|
},
|
|
6010
6678
|
"examples": {
|
|
6011
6679
|
"Default": {
|
|
@@ -6021,7 +6689,9 @@
|
|
|
6021
6689
|
},
|
|
6022
6690
|
"/api/{session}/add-new-label": {
|
|
6023
6691
|
"post": {
|
|
6024
|
-
"tags": [
|
|
6692
|
+
"tags": [
|
|
6693
|
+
"Labels"
|
|
6694
|
+
],
|
|
6025
6695
|
"description": "",
|
|
6026
6696
|
"parameters": [
|
|
6027
6697
|
{
|
|
@@ -6069,7 +6739,10 @@
|
|
|
6069
6739
|
}
|
|
6070
6740
|
}
|
|
6071
6741
|
},
|
|
6072
|
-
"required": [
|
|
6742
|
+
"required": [
|
|
6743
|
+
"name",
|
|
6744
|
+
"options"
|
|
6745
|
+
]
|
|
6073
6746
|
},
|
|
6074
6747
|
"examples": {
|
|
6075
6748
|
"Default": {
|
|
@@ -6088,7 +6761,9 @@
|
|
|
6088
6761
|
},
|
|
6089
6762
|
"/api/{session}/add-or-remove-label": {
|
|
6090
6763
|
"post": {
|
|
6091
|
-
"tags": [
|
|
6764
|
+
"tags": [
|
|
6765
|
+
"Labels"
|
|
6766
|
+
],
|
|
6092
6767
|
"description": "",
|
|
6093
6768
|
"parameters": [
|
|
6094
6769
|
{
|
|
@@ -6145,12 +6820,16 @@
|
|
|
6145
6820
|
}
|
|
6146
6821
|
}
|
|
6147
6822
|
},
|
|
6148
|
-
"required": [
|
|
6823
|
+
"required": [
|
|
6824
|
+
"chatIds"
|
|
6825
|
+
]
|
|
6149
6826
|
},
|
|
6150
6827
|
"examples": {
|
|
6151
6828
|
"Default": {
|
|
6152
6829
|
"value": {
|
|
6153
|
-
"chatIds": [
|
|
6830
|
+
"chatIds": [
|
|
6831
|
+
"5521999999999"
|
|
6832
|
+
],
|
|
6154
6833
|
"options": [
|
|
6155
6834
|
{
|
|
6156
6835
|
"labelId": "76",
|
|
@@ -6171,7 +6850,9 @@
|
|
|
6171
6850
|
},
|
|
6172
6851
|
"/api/{session}/get-all-labels": {
|
|
6173
6852
|
"get": {
|
|
6174
|
-
"tags": [
|
|
6853
|
+
"tags": [
|
|
6854
|
+
"Labels"
|
|
6855
|
+
],
|
|
6175
6856
|
"description": "",
|
|
6176
6857
|
"parameters": [
|
|
6177
6858
|
{
|
|
@@ -6201,7 +6882,9 @@
|
|
|
6201
6882
|
},
|
|
6202
6883
|
"/api/{session}/delete-all-labels": {
|
|
6203
6884
|
"put": {
|
|
6204
|
-
"tags": [
|
|
6885
|
+
"tags": [
|
|
6886
|
+
"Labels"
|
|
6887
|
+
],
|
|
6205
6888
|
"description": "",
|
|
6206
6889
|
"parameters": [
|
|
6207
6890
|
{
|
|
@@ -6231,7 +6914,9 @@
|
|
|
6231
6914
|
},
|
|
6232
6915
|
"/api/{session}/delete-label/{id}": {
|
|
6233
6916
|
"put": {
|
|
6234
|
-
"tags": [
|
|
6917
|
+
"tags": [
|
|
6918
|
+
"Labels"
|
|
6919
|
+
],
|
|
6235
6920
|
"description": "",
|
|
6236
6921
|
"parameters": [
|
|
6237
6922
|
{
|
|
@@ -6270,7 +6955,9 @@
|
|
|
6270
6955
|
},
|
|
6271
6956
|
"/api/{session}/check-number-status/{phone}": {
|
|
6272
6957
|
"get": {
|
|
6273
|
-
"tags": [
|
|
6958
|
+
"tags": [
|
|
6959
|
+
"Misc"
|
|
6960
|
+
],
|
|
6274
6961
|
"description": "",
|
|
6275
6962
|
"parameters": [
|
|
6276
6963
|
{
|
|
@@ -6329,7 +7016,9 @@
|
|
|
6329
7016
|
},
|
|
6330
7017
|
"/api/{session}/contact/{phone}": {
|
|
6331
7018
|
"get": {
|
|
6332
|
-
"tags": [
|
|
7019
|
+
"tags": [
|
|
7020
|
+
"Chat"
|
|
7021
|
+
],
|
|
6333
7022
|
"description": "",
|
|
6334
7023
|
"parameters": [
|
|
6335
7024
|
{
|
|
@@ -6366,9 +7055,54 @@
|
|
|
6366
7055
|
]
|
|
6367
7056
|
}
|
|
6368
7057
|
},
|
|
7058
|
+
"/api/{session}/contact/pn-lid/{pnLid}": {
|
|
7059
|
+
"get": {
|
|
7060
|
+
"tags": [
|
|
7061
|
+
"Contact"
|
|
7062
|
+
],
|
|
7063
|
+
"description": "",
|
|
7064
|
+
"parameters": [
|
|
7065
|
+
{
|
|
7066
|
+
"name": "session",
|
|
7067
|
+
"in": "path",
|
|
7068
|
+
"required": true,
|
|
7069
|
+
"schema": {
|
|
7070
|
+
"type": "string",
|
|
7071
|
+
"example": "NERDWHATS_AMERICA"
|
|
7072
|
+
}
|
|
7073
|
+
},
|
|
7074
|
+
{
|
|
7075
|
+
"name": "pnLid",
|
|
7076
|
+
"in": "path",
|
|
7077
|
+
"required": true,
|
|
7078
|
+
"schema": {
|
|
7079
|
+
"type": "string"
|
|
7080
|
+
}
|
|
7081
|
+
}
|
|
7082
|
+
],
|
|
7083
|
+
"responses": {
|
|
7084
|
+
"200": {
|
|
7085
|
+
"description": "OK"
|
|
7086
|
+
},
|
|
7087
|
+
"400": {
|
|
7088
|
+
"description": "Bad Request"
|
|
7089
|
+
},
|
|
7090
|
+
"500": {
|
|
7091
|
+
"description": "Internal Server Error"
|
|
7092
|
+
}
|
|
7093
|
+
},
|
|
7094
|
+
"security": [
|
|
7095
|
+
{
|
|
7096
|
+
"bearerAuth": []
|
|
7097
|
+
}
|
|
7098
|
+
]
|
|
7099
|
+
}
|
|
7100
|
+
},
|
|
6369
7101
|
"/api/{session}/profile/{phone}": {
|
|
6370
7102
|
"get": {
|
|
6371
|
-
"tags": [
|
|
7103
|
+
"tags": [
|
|
7104
|
+
"Chat"
|
|
7105
|
+
],
|
|
6372
7106
|
"description": "",
|
|
6373
7107
|
"parameters": [
|
|
6374
7108
|
{
|
|
@@ -6408,7 +7142,9 @@
|
|
|
6408
7142
|
},
|
|
6409
7143
|
"/api/{session}/profile-pic/{phone}": {
|
|
6410
7144
|
"get": {
|
|
6411
|
-
"tags": [
|
|
7145
|
+
"tags": [
|
|
7146
|
+
"Contact"
|
|
7147
|
+
],
|
|
6412
7148
|
"description": "",
|
|
6413
7149
|
"parameters": [
|
|
6414
7150
|
{
|
|
@@ -6454,7 +7190,9 @@
|
|
|
6454
7190
|
},
|
|
6455
7191
|
"/api/{session}/profile-status/{phone}": {
|
|
6456
7192
|
"get": {
|
|
6457
|
-
"tags": [
|
|
7193
|
+
"tags": [
|
|
7194
|
+
"Contact"
|
|
7195
|
+
],
|
|
6458
7196
|
"description": "",
|
|
6459
7197
|
"parameters": [
|
|
6460
7198
|
{
|
|
@@ -6493,7 +7231,9 @@
|
|
|
6493
7231
|
},
|
|
6494
7232
|
"/api/{session}/blocklist": {
|
|
6495
7233
|
"get": {
|
|
6496
|
-
"tags": [
|
|
7234
|
+
"tags": [
|
|
7235
|
+
"Misc"
|
|
7236
|
+
],
|
|
6497
7237
|
"description": "",
|
|
6498
7238
|
"parameters": [
|
|
6499
7239
|
{
|
|
@@ -6523,7 +7263,9 @@
|
|
|
6523
7263
|
},
|
|
6524
7264
|
"/api/{session}/block-contact": {
|
|
6525
7265
|
"post": {
|
|
6526
|
-
"tags": [
|
|
7266
|
+
"tags": [
|
|
7267
|
+
"Misc"
|
|
7268
|
+
],
|
|
6527
7269
|
"description": "",
|
|
6528
7270
|
"parameters": [
|
|
6529
7271
|
{
|
|
@@ -6579,7 +7321,9 @@
|
|
|
6579
7321
|
},
|
|
6580
7322
|
"/api/{session}/unblock-contact": {
|
|
6581
7323
|
"post": {
|
|
6582
|
-
"tags": [
|
|
7324
|
+
"tags": [
|
|
7325
|
+
"Misc"
|
|
7326
|
+
],
|
|
6583
7327
|
"description": "",
|
|
6584
7328
|
"parameters": [
|
|
6585
7329
|
{
|
|
@@ -6635,7 +7379,9 @@
|
|
|
6635
7379
|
},
|
|
6636
7380
|
"/api/{session}/get-battery-level": {
|
|
6637
7381
|
"get": {
|
|
6638
|
-
"tags": [
|
|
7382
|
+
"tags": [
|
|
7383
|
+
"Misc"
|
|
7384
|
+
],
|
|
6639
7385
|
"description": "",
|
|
6640
7386
|
"parameters": [
|
|
6641
7387
|
{
|
|
@@ -6665,7 +7411,9 @@
|
|
|
6665
7411
|
},
|
|
6666
7412
|
"/api/{session}/host-device": {
|
|
6667
7413
|
"get": {
|
|
6668
|
-
"tags": [
|
|
7414
|
+
"tags": [
|
|
7415
|
+
"Misc"
|
|
7416
|
+
],
|
|
6669
7417
|
"description": "",
|
|
6670
7418
|
"parameters": [
|
|
6671
7419
|
{
|
|
@@ -6695,7 +7443,9 @@
|
|
|
6695
7443
|
},
|
|
6696
7444
|
"/api/{session}/get-phone-number": {
|
|
6697
7445
|
"get": {
|
|
6698
|
-
"tags": [
|
|
7446
|
+
"tags": [
|
|
7447
|
+
"Misc"
|
|
7448
|
+
],
|
|
6699
7449
|
"description": "",
|
|
6700
7450
|
"parameters": [
|
|
6701
7451
|
{
|
|
@@ -6725,7 +7475,9 @@
|
|
|
6725
7475
|
},
|
|
6726
7476
|
"/api/{session}/set-profile-pic": {
|
|
6727
7477
|
"post": {
|
|
6728
|
-
"tags": [
|
|
7478
|
+
"tags": [
|
|
7479
|
+
"Profile"
|
|
7480
|
+
],
|
|
6729
7481
|
"description": "",
|
|
6730
7482
|
"parameters": [
|
|
6731
7483
|
{
|
|
@@ -6766,7 +7518,9 @@
|
|
|
6766
7518
|
},
|
|
6767
7519
|
"/api/{session}/profile-status": {
|
|
6768
7520
|
"post": {
|
|
6769
|
-
"tags": [
|
|
7521
|
+
"tags": [
|
|
7522
|
+
"Profile"
|
|
7523
|
+
],
|
|
6770
7524
|
"description": "",
|
|
6771
7525
|
"parameters": [
|
|
6772
7526
|
{
|
|
@@ -6789,7 +7543,9 @@
|
|
|
6789
7543
|
"example": "My new status"
|
|
6790
7544
|
}
|
|
6791
7545
|
},
|
|
6792
|
-
"required": [
|
|
7546
|
+
"required": [
|
|
7547
|
+
"status"
|
|
7548
|
+
]
|
|
6793
7549
|
}
|
|
6794
7550
|
}
|
|
6795
7551
|
],
|
|
@@ -6832,7 +7588,9 @@
|
|
|
6832
7588
|
},
|
|
6833
7589
|
"/api/{session}/change-username": {
|
|
6834
7590
|
"post": {
|
|
6835
|
-
"tags": [
|
|
7591
|
+
"tags": [
|
|
7592
|
+
"Profile"
|
|
7593
|
+
],
|
|
6836
7594
|
"description": "",
|
|
6837
7595
|
"parameters": [
|
|
6838
7596
|
{
|
|
@@ -6887,7 +7645,9 @@
|
|
|
6887
7645
|
},
|
|
6888
7646
|
"/api/{session}/edit-business-profile": {
|
|
6889
7647
|
"post": {
|
|
6890
|
-
"tags": [
|
|
7648
|
+
"tags": [
|
|
7649
|
+
"Profile"
|
|
7650
|
+
],
|
|
6891
7651
|
"description": "Edit your bussiness profile",
|
|
6892
7652
|
"operationId": "editBusinessProfile",
|
|
6893
7653
|
"parameters": [
|
|
@@ -6930,7 +7690,11 @@
|
|
|
6930
7690
|
"example": false
|
|
6931
7691
|
}
|
|
6932
7692
|
},
|
|
6933
|
-
"required": [
|
|
7693
|
+
"required": [
|
|
7694
|
+
"id",
|
|
7695
|
+
"localized_display_name",
|
|
7696
|
+
"not_a_biz"
|
|
7697
|
+
]
|
|
6934
7698
|
},
|
|
6935
7699
|
"website": {
|
|
6936
7700
|
"type": "array",
|
|
@@ -6943,7 +7707,12 @@
|
|
|
6943
7707
|
}
|
|
6944
7708
|
}
|
|
6945
7709
|
},
|
|
6946
|
-
"required": [
|
|
7710
|
+
"required": [
|
|
7711
|
+
"adress",
|
|
7712
|
+
"email",
|
|
7713
|
+
"categories",
|
|
7714
|
+
"website"
|
|
7715
|
+
]
|
|
6947
7716
|
}
|
|
6948
7717
|
}
|
|
6949
7718
|
],
|
|
@@ -7001,7 +7770,9 @@
|
|
|
7001
7770
|
},
|
|
7002
7771
|
"/api/{session}/get-business-profiles-products": {
|
|
7003
7772
|
"get": {
|
|
7004
|
-
"tags": [
|
|
7773
|
+
"tags": [
|
|
7774
|
+
"Catalog & Bussiness"
|
|
7775
|
+
],
|
|
7005
7776
|
"description": "",
|
|
7006
7777
|
"parameters": [
|
|
7007
7778
|
{
|
|
@@ -7036,7 +7807,9 @@
|
|
|
7036
7807
|
},
|
|
7037
7808
|
"/api/{session}/get-order-by-messageId/{messageId}": {
|
|
7038
7809
|
"get": {
|
|
7039
|
-
"tags": [
|
|
7810
|
+
"tags": [
|
|
7811
|
+
"Catalog & Bussiness"
|
|
7812
|
+
],
|
|
7040
7813
|
"description": "",
|
|
7041
7814
|
"parameters": [
|
|
7042
7815
|
{
|
|
@@ -7072,9 +7845,13 @@
|
|
|
7072
7845
|
},
|
|
7073
7846
|
"/api/{secretkey}/backup-sessions": {
|
|
7074
7847
|
"get": {
|
|
7075
|
-
"tags": [
|
|
7848
|
+
"tags": [
|
|
7849
|
+
"Misc"
|
|
7850
|
+
],
|
|
7076
7851
|
"description": "Please, open the router in your browser, in swagger this not run",
|
|
7077
|
-
"produces": [
|
|
7852
|
+
"produces": [
|
|
7853
|
+
"application/zip"
|
|
7854
|
+
],
|
|
7078
7855
|
"parameters": [
|
|
7079
7856
|
{
|
|
7080
7857
|
"name": "secretkey",
|
|
@@ -7106,7 +7883,9 @@
|
|
|
7106
7883
|
},
|
|
7107
7884
|
"/api/{secretkey}/restore-sessions": {
|
|
7108
7885
|
"post": {
|
|
7109
|
-
"tags": [
|
|
7886
|
+
"tags": [
|
|
7887
|
+
"Misc"
|
|
7888
|
+
],
|
|
7110
7889
|
"description": "",
|
|
7111
7890
|
"parameters": [
|
|
7112
7891
|
{
|
|
@@ -7142,7 +7921,9 @@
|
|
|
7142
7921
|
"format": "binary"
|
|
7143
7922
|
}
|
|
7144
7923
|
},
|
|
7145
|
-
"required": [
|
|
7924
|
+
"required": [
|
|
7925
|
+
"file"
|
|
7926
|
+
]
|
|
7146
7927
|
}
|
|
7147
7928
|
}
|
|
7148
7929
|
}
|
|
@@ -7151,7 +7932,9 @@
|
|
|
7151
7932
|
},
|
|
7152
7933
|
"/api/{session}/take-screenshot": {
|
|
7153
7934
|
"get": {
|
|
7154
|
-
"tags": [
|
|
7935
|
+
"tags": [
|
|
7936
|
+
"Misc"
|
|
7937
|
+
],
|
|
7155
7938
|
"description": "",
|
|
7156
7939
|
"parameters": [
|
|
7157
7940
|
{
|
|
@@ -7181,7 +7964,9 @@
|
|
|
7181
7964
|
},
|
|
7182
7965
|
"/api/{session}/set-limit": {
|
|
7183
7966
|
"post": {
|
|
7184
|
-
"tags": [
|
|
7967
|
+
"tags": [
|
|
7968
|
+
"Misc"
|
|
7969
|
+
],
|
|
7185
7970
|
"description": "Change limits of whatsapp web. Types value: maxMediaSize, maxFileSize, maxShare, statusVideoMaxDuration, unlimitedPin;",
|
|
7186
7971
|
"parameters": [
|
|
7187
7972
|
{
|
|
@@ -7221,7 +8006,10 @@
|
|
|
7221
8006
|
"type": "any"
|
|
7222
8007
|
}
|
|
7223
8008
|
},
|
|
7224
|
-
"required": [
|
|
8009
|
+
"required": [
|
|
8010
|
+
"type",
|
|
8011
|
+
"value"
|
|
8012
|
+
]
|
|
7225
8013
|
},
|
|
7226
8014
|
"examples": {
|
|
7227
8015
|
"Default": {
|
|
@@ -7238,7 +8026,9 @@
|
|
|
7238
8026
|
},
|
|
7239
8027
|
"/api/{session}/create-community": {
|
|
7240
8028
|
"post": {
|
|
7241
|
-
"tags": [
|
|
8029
|
+
"tags": [
|
|
8030
|
+
"Community"
|
|
8031
|
+
],
|
|
7242
8032
|
"description": "",
|
|
7243
8033
|
"parameters": [
|
|
7244
8034
|
{
|
|
@@ -7287,7 +8077,10 @@
|
|
|
7287
8077
|
"value": {
|
|
7288
8078
|
"name": "My community name",
|
|
7289
8079
|
"description": "Description for your community",
|
|
7290
|
-
"groupIds": [
|
|
8080
|
+
"groupIds": [
|
|
8081
|
+
"groupId1",
|
|
8082
|
+
"groupId2"
|
|
8083
|
+
]
|
|
7291
8084
|
}
|
|
7292
8085
|
}
|
|
7293
8086
|
}
|
|
@@ -7298,7 +8091,9 @@
|
|
|
7298
8091
|
},
|
|
7299
8092
|
"/api/{session}/deactivate-community": {
|
|
7300
8093
|
"post": {
|
|
7301
|
-
"tags": [
|
|
8094
|
+
"tags": [
|
|
8095
|
+
"Community"
|
|
8096
|
+
],
|
|
7302
8097
|
"description": "",
|
|
7303
8098
|
"parameters": [
|
|
7304
8099
|
{
|
|
@@ -7350,7 +8145,9 @@
|
|
|
7350
8145
|
},
|
|
7351
8146
|
"/api/{session}/add-community-subgroup": {
|
|
7352
8147
|
"post": {
|
|
7353
|
-
"tags": [
|
|
8148
|
+
"tags": [
|
|
8149
|
+
"Community"
|
|
8150
|
+
],
|
|
7354
8151
|
"description": "",
|
|
7355
8152
|
"parameters": [
|
|
7356
8153
|
{
|
|
@@ -7395,7 +8192,9 @@
|
|
|
7395
8192
|
"Default": {
|
|
7396
8193
|
"value": {
|
|
7397
8194
|
"id": "<you_community_id@g.us>",
|
|
7398
|
-
"groupsIds": [
|
|
8195
|
+
"groupsIds": [
|
|
8196
|
+
"group1Id@g.us"
|
|
8197
|
+
]
|
|
7399
8198
|
}
|
|
7400
8199
|
}
|
|
7401
8200
|
}
|
|
@@ -7406,7 +8205,9 @@
|
|
|
7406
8205
|
},
|
|
7407
8206
|
"/api/{session}/remove-community-subgroup": {
|
|
7408
8207
|
"post": {
|
|
7409
|
-
"tags": [
|
|
8208
|
+
"tags": [
|
|
8209
|
+
"Community"
|
|
8210
|
+
],
|
|
7410
8211
|
"description": "",
|
|
7411
8212
|
"parameters": [
|
|
7412
8213
|
{
|
|
@@ -7451,7 +8252,9 @@
|
|
|
7451
8252
|
"Default": {
|
|
7452
8253
|
"value": {
|
|
7453
8254
|
"id": "<you_community_id@g.us>",
|
|
7454
|
-
"groupsIds": [
|
|
8255
|
+
"groupsIds": [
|
|
8256
|
+
"group1Id@g.us"
|
|
8257
|
+
]
|
|
7455
8258
|
}
|
|
7456
8259
|
}
|
|
7457
8260
|
}
|
|
@@ -7462,7 +8265,9 @@
|
|
|
7462
8265
|
},
|
|
7463
8266
|
"/api/{session}/promote-community-participant": {
|
|
7464
8267
|
"post": {
|
|
7465
|
-
"tags": [
|
|
8268
|
+
"tags": [
|
|
8269
|
+
"Community"
|
|
8270
|
+
],
|
|
7466
8271
|
"description": "",
|
|
7467
8272
|
"parameters": [
|
|
7468
8273
|
{
|
|
@@ -7507,7 +8312,9 @@
|
|
|
7507
8312
|
"Default": {
|
|
7508
8313
|
"value": {
|
|
7509
8314
|
"id": "<you_community_id@g.us>",
|
|
7510
|
-
"participantsId": [
|
|
8315
|
+
"participantsId": [
|
|
8316
|
+
"group1Id@g.us"
|
|
8317
|
+
]
|
|
7511
8318
|
}
|
|
7512
8319
|
}
|
|
7513
8320
|
}
|
|
@@ -7518,7 +8325,9 @@
|
|
|
7518
8325
|
},
|
|
7519
8326
|
"/api/{session}/demote-community-participant": {
|
|
7520
8327
|
"post": {
|
|
7521
|
-
"tags": [
|
|
8328
|
+
"tags": [
|
|
8329
|
+
"Community"
|
|
8330
|
+
],
|
|
7522
8331
|
"description": "",
|
|
7523
8332
|
"parameters": [
|
|
7524
8333
|
{
|
|
@@ -7563,7 +8372,9 @@
|
|
|
7563
8372
|
"Default": {
|
|
7564
8373
|
"value": {
|
|
7565
8374
|
"id": "<you_community_id@g.us>",
|
|
7566
|
-
"participantsId": [
|
|
8375
|
+
"participantsId": [
|
|
8376
|
+
"group1Id@g.us"
|
|
8377
|
+
]
|
|
7567
8378
|
}
|
|
7568
8379
|
}
|
|
7569
8380
|
}
|
|
@@ -7574,7 +8385,9 @@
|
|
|
7574
8385
|
},
|
|
7575
8386
|
"/api/{session}/community-participants/{id}": {
|
|
7576
8387
|
"get": {
|
|
7577
|
-
"tags": [
|
|
8388
|
+
"tags": [
|
|
8389
|
+
"Community"
|
|
8390
|
+
],
|
|
7578
8391
|
"description": "",
|
|
7579
8392
|
"parameters": [
|
|
7580
8393
|
{
|
|
@@ -7836,7 +8649,9 @@
|
|
|
7836
8649
|
},
|
|
7837
8650
|
"/api/{session}/chatwoot": {
|
|
7838
8651
|
"post": {
|
|
7839
|
-
"tags": [
|
|
8652
|
+
"tags": [
|
|
8653
|
+
"Misc"
|
|
8654
|
+
],
|
|
7840
8655
|
"description": "You can point your Chatwoot to this route so that it can perform functions.",
|
|
7841
8656
|
"parameters": [
|
|
7842
8657
|
{
|
|
@@ -7902,7 +8717,9 @@
|
|
|
7902
8717
|
},
|
|
7903
8718
|
"/healthz": {
|
|
7904
8719
|
"get": {
|
|
7905
|
-
"tags": [
|
|
8720
|
+
"tags": [
|
|
8721
|
+
"Misc"
|
|
8722
|
+
],
|
|
7906
8723
|
"description": "This endpoint can be used to check the health status of the API. It returns a response with a status code indicating the API",
|
|
7907
8724
|
"responses": {
|
|
7908
8725
|
"default": {
|
|
@@ -7913,7 +8730,9 @@
|
|
|
7913
8730
|
},
|
|
7914
8731
|
"/unhealthy": {
|
|
7915
8732
|
"get": {
|
|
7916
|
-
"tags": [
|
|
8733
|
+
"tags": [
|
|
8734
|
+
"Misc"
|
|
8735
|
+
],
|
|
7917
8736
|
"description": "This endpoint is used to force the API into an unhealthy state. It can be useful for testing error handling or simulating service disruptions.",
|
|
7918
8737
|
"responses": {
|
|
7919
8738
|
"default": {
|
|
@@ -7924,7 +8743,9 @@
|
|
|
7924
8743
|
},
|
|
7925
8744
|
"/metrics": {
|
|
7926
8745
|
"get": {
|
|
7927
|
-
"tags": [
|
|
8746
|
+
"tags": [
|
|
8747
|
+
"Misc"
|
|
8748
|
+
],
|
|
7928
8749
|
"description": "This endpoint can be used to check the status of API metrics. It returns a response with the collected metrics.",
|
|
7929
8750
|
"responses": {
|
|
7930
8751
|
"default": {
|
|
@@ -7949,4 +8770,4 @@
|
|
|
7949
8770
|
}
|
|
7950
8771
|
}
|
|
7951
8772
|
}
|
|
7952
|
-
}
|
|
8773
|
+
}
|