@wppconnect/server 2.8.7 → 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 +25 -0
- package/Dockerfile +29 -14
- package/dist/config.js +6 -1
- package/dist/controller/contactController.js +40 -0
- package/dist/routes/index.js +8 -1
- package/dist/swagger.json +636 -189
- package/dist/types/ServerOptions.js +1 -1
- package/package.json +28 -23
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": [
|
|
@@ -377,7 +393,9 @@
|
|
|
377
393
|
},
|
|
378
394
|
"/api/{session}/logout-session": {
|
|
379
395
|
"post": {
|
|
380
|
-
"tags": [
|
|
396
|
+
"tags": [
|
|
397
|
+
"Auth"
|
|
398
|
+
],
|
|
381
399
|
"description": "This route logout and delete session data",
|
|
382
400
|
"operationId": "logoutSession",
|
|
383
401
|
"parameters": [
|
|
@@ -408,7 +426,9 @@
|
|
|
408
426
|
},
|
|
409
427
|
"/api/{session}/{secretkey}/clear-session-data": {
|
|
410
428
|
"post": {
|
|
411
|
-
"tags": [
|
|
429
|
+
"tags": [
|
|
430
|
+
"Misc"
|
|
431
|
+
],
|
|
412
432
|
"description": "",
|
|
413
433
|
"parameters": [
|
|
414
434
|
{
|
|
@@ -445,7 +465,9 @@
|
|
|
445
465
|
},
|
|
446
466
|
"/api/{session}/close-session": {
|
|
447
467
|
"post": {
|
|
448
|
-
"tags": [
|
|
468
|
+
"tags": [
|
|
469
|
+
"Auth"
|
|
470
|
+
],
|
|
449
471
|
"description": "",
|
|
450
472
|
"operationId": "closeSession",
|
|
451
473
|
"parameters": [
|
|
@@ -476,7 +498,9 @@
|
|
|
476
498
|
},
|
|
477
499
|
"/api/{session}/subscribe-presence": {
|
|
478
500
|
"post": {
|
|
479
|
-
"tags": [
|
|
501
|
+
"tags": [
|
|
502
|
+
"Misc"
|
|
503
|
+
],
|
|
480
504
|
"description": "",
|
|
481
505
|
"operationId": "subscribePresence",
|
|
482
506
|
"parameters": [
|
|
@@ -533,7 +557,9 @@
|
|
|
533
557
|
},
|
|
534
558
|
"/api/{session}/set-online-presence": {
|
|
535
559
|
"post": {
|
|
536
|
-
"tags": [
|
|
560
|
+
"tags": [
|
|
561
|
+
"Misc"
|
|
562
|
+
],
|
|
537
563
|
"description": "",
|
|
538
564
|
"operationId": "setOnlinePresence",
|
|
539
565
|
"parameters": [
|
|
@@ -582,7 +608,9 @@
|
|
|
582
608
|
},
|
|
583
609
|
"/api/{session}/download-media": {
|
|
584
610
|
"post": {
|
|
585
|
-
"tags": [
|
|
611
|
+
"tags": [
|
|
612
|
+
"Messages"
|
|
613
|
+
],
|
|
586
614
|
"description": "",
|
|
587
615
|
"operationId": "downloadMediabyMessage",
|
|
588
616
|
"parameters": [
|
|
@@ -631,7 +659,9 @@
|
|
|
631
659
|
},
|
|
632
660
|
"/api/{session}/send-message": {
|
|
633
661
|
"post": {
|
|
634
|
-
"tags": [
|
|
662
|
+
"tags": [
|
|
663
|
+
"Messages"
|
|
664
|
+
],
|
|
635
665
|
"description": "",
|
|
636
666
|
"parameters": [
|
|
637
667
|
{
|
|
@@ -718,7 +748,9 @@
|
|
|
718
748
|
},
|
|
719
749
|
"/api/{session}/edit-message": {
|
|
720
750
|
"post": {
|
|
721
|
-
"tags": [
|
|
751
|
+
"tags": [
|
|
752
|
+
"Messages"
|
|
753
|
+
],
|
|
722
754
|
"description": "",
|
|
723
755
|
"parameters": [
|
|
724
756
|
{
|
|
@@ -774,7 +806,9 @@
|
|
|
774
806
|
},
|
|
775
807
|
"/api/{session}/send-image": {
|
|
776
808
|
"post": {
|
|
777
|
-
"tags": [
|
|
809
|
+
"tags": [
|
|
810
|
+
"Messages"
|
|
811
|
+
],
|
|
778
812
|
"description": "",
|
|
779
813
|
"parameters": [
|
|
780
814
|
{
|
|
@@ -850,7 +884,9 @@
|
|
|
850
884
|
},
|
|
851
885
|
"/api/{session}/send-sticker": {
|
|
852
886
|
"post": {
|
|
853
|
-
"tags": [
|
|
887
|
+
"tags": [
|
|
888
|
+
"Messages"
|
|
889
|
+
],
|
|
854
890
|
"description": "",
|
|
855
891
|
"parameters": [
|
|
856
892
|
{
|
|
@@ -893,7 +929,10 @@
|
|
|
893
929
|
"type": "string"
|
|
894
930
|
}
|
|
895
931
|
},
|
|
896
|
-
"required": [
|
|
932
|
+
"required": [
|
|
933
|
+
"phone",
|
|
934
|
+
"path"
|
|
935
|
+
]
|
|
897
936
|
},
|
|
898
937
|
"examples": {
|
|
899
938
|
"Default": {
|
|
@@ -911,7 +950,9 @@
|
|
|
911
950
|
},
|
|
912
951
|
"/api/{session}/send-sticker-gif": {
|
|
913
952
|
"post": {
|
|
914
|
-
"tags": [
|
|
953
|
+
"tags": [
|
|
954
|
+
"Messages"
|
|
955
|
+
],
|
|
915
956
|
"description": "",
|
|
916
957
|
"parameters": [
|
|
917
958
|
{
|
|
@@ -954,7 +995,10 @@
|
|
|
954
995
|
"type": "string"
|
|
955
996
|
}
|
|
956
997
|
},
|
|
957
|
-
"required": [
|
|
998
|
+
"required": [
|
|
999
|
+
"phone",
|
|
1000
|
+
"path"
|
|
1001
|
+
]
|
|
958
1002
|
},
|
|
959
1003
|
"examples": {
|
|
960
1004
|
"Default": {
|
|
@@ -972,7 +1016,9 @@
|
|
|
972
1016
|
},
|
|
973
1017
|
"/api/{session}/send-reply": {
|
|
974
1018
|
"post": {
|
|
975
|
-
"tags": [
|
|
1019
|
+
"tags": [
|
|
1020
|
+
"Messages"
|
|
1021
|
+
],
|
|
976
1022
|
"description": "",
|
|
977
1023
|
"parameters": [
|
|
978
1024
|
{
|
|
@@ -1033,7 +1079,9 @@
|
|
|
1033
1079
|
},
|
|
1034
1080
|
"/api/{session}/send-file": {
|
|
1035
1081
|
"post": {
|
|
1036
|
-
"tags": [
|
|
1082
|
+
"tags": [
|
|
1083
|
+
"Messages"
|
|
1084
|
+
],
|
|
1037
1085
|
"description": "",
|
|
1038
1086
|
"parameters": [
|
|
1039
1087
|
{
|
|
@@ -1109,7 +1157,9 @@
|
|
|
1109
1157
|
},
|
|
1110
1158
|
"/api/{session}/send-file-base64": {
|
|
1111
1159
|
"post": {
|
|
1112
|
-
"tags": [
|
|
1160
|
+
"tags": [
|
|
1161
|
+
"Messages"
|
|
1162
|
+
],
|
|
1113
1163
|
"description": "",
|
|
1114
1164
|
"parameters": [
|
|
1115
1165
|
{
|
|
@@ -1185,7 +1235,9 @@
|
|
|
1185
1235
|
},
|
|
1186
1236
|
"/api/{session}/send-voice": {
|
|
1187
1237
|
"post": {
|
|
1188
|
-
"tags": [
|
|
1238
|
+
"tags": [
|
|
1239
|
+
"Messages"
|
|
1240
|
+
],
|
|
1189
1241
|
"description": "",
|
|
1190
1242
|
"parameters": [
|
|
1191
1243
|
{
|
|
@@ -1246,7 +1298,9 @@
|
|
|
1246
1298
|
},
|
|
1247
1299
|
"/api/{session}/send-voice-base64": {
|
|
1248
1300
|
"post": {
|
|
1249
|
-
"tags": [
|
|
1301
|
+
"tags": [
|
|
1302
|
+
"Messages"
|
|
1303
|
+
],
|
|
1250
1304
|
"description": "",
|
|
1251
1305
|
"parameters": [
|
|
1252
1306
|
{
|
|
@@ -1303,7 +1357,9 @@
|
|
|
1303
1357
|
},
|
|
1304
1358
|
"/api/{session}/status-session": {
|
|
1305
1359
|
"get": {
|
|
1306
|
-
"tags": [
|
|
1360
|
+
"tags": [
|
|
1361
|
+
"Auth"
|
|
1362
|
+
],
|
|
1307
1363
|
"description": "",
|
|
1308
1364
|
"operationId": "closeSession",
|
|
1309
1365
|
"parameters": [
|
|
@@ -1334,7 +1390,9 @@
|
|
|
1334
1390
|
},
|
|
1335
1391
|
"/api/{session}/send-status": {
|
|
1336
1392
|
"post": {
|
|
1337
|
-
"tags": [
|
|
1393
|
+
"tags": [
|
|
1394
|
+
"Messages"
|
|
1395
|
+
],
|
|
1338
1396
|
"description": "",
|
|
1339
1397
|
"parameters": [
|
|
1340
1398
|
{
|
|
@@ -1377,7 +1435,11 @@
|
|
|
1377
1435
|
"type": "string"
|
|
1378
1436
|
}
|
|
1379
1437
|
},
|
|
1380
|
-
"required": [
|
|
1438
|
+
"required": [
|
|
1439
|
+
"phone",
|
|
1440
|
+
"isGroup",
|
|
1441
|
+
"message"
|
|
1442
|
+
]
|
|
1381
1443
|
},
|
|
1382
1444
|
"examples": {
|
|
1383
1445
|
"Default": {
|
|
@@ -1396,7 +1458,9 @@
|
|
|
1396
1458
|
},
|
|
1397
1459
|
"/api/{session}/send-link-preview": {
|
|
1398
1460
|
"post": {
|
|
1399
|
-
"tags": [
|
|
1461
|
+
"tags": [
|
|
1462
|
+
"Messages"
|
|
1463
|
+
],
|
|
1400
1464
|
"description": "",
|
|
1401
1465
|
"parameters": [
|
|
1402
1466
|
{
|
|
@@ -1457,7 +1521,9 @@
|
|
|
1457
1521
|
},
|
|
1458
1522
|
"/api/{session}/send-location": {
|
|
1459
1523
|
"post": {
|
|
1460
|
-
"tags": [
|
|
1524
|
+
"tags": [
|
|
1525
|
+
"Messages"
|
|
1526
|
+
],
|
|
1461
1527
|
"description": "",
|
|
1462
1528
|
"parameters": [
|
|
1463
1529
|
{
|
|
@@ -1526,7 +1592,9 @@
|
|
|
1526
1592
|
},
|
|
1527
1593
|
"/api/{session}/send-mentioned": {
|
|
1528
1594
|
"post": {
|
|
1529
|
-
"tags": [
|
|
1595
|
+
"tags": [
|
|
1596
|
+
"Messages"
|
|
1597
|
+
],
|
|
1530
1598
|
"description": "",
|
|
1531
1599
|
"parameters": [
|
|
1532
1600
|
{
|
|
@@ -1575,7 +1643,11 @@
|
|
|
1575
1643
|
}
|
|
1576
1644
|
}
|
|
1577
1645
|
},
|
|
1578
|
-
"required": [
|
|
1646
|
+
"required": [
|
|
1647
|
+
"phone",
|
|
1648
|
+
"message",
|
|
1649
|
+
"mentioned"
|
|
1650
|
+
]
|
|
1579
1651
|
},
|
|
1580
1652
|
"examples": {
|
|
1581
1653
|
"Default": {
|
|
@@ -1583,7 +1655,9 @@
|
|
|
1583
1655
|
"phone": "groupId@g.us",
|
|
1584
1656
|
"isGroup": true,
|
|
1585
1657
|
"message": "Your text message",
|
|
1586
|
-
"mentioned": [
|
|
1658
|
+
"mentioned": [
|
|
1659
|
+
"556593077171@c.us"
|
|
1660
|
+
]
|
|
1587
1661
|
}
|
|
1588
1662
|
}
|
|
1589
1663
|
}
|
|
@@ -1594,7 +1668,9 @@
|
|
|
1594
1668
|
},
|
|
1595
1669
|
"/api/{session}/send-buttons": {
|
|
1596
1670
|
"post": {
|
|
1597
|
-
"tags": [
|
|
1671
|
+
"tags": [
|
|
1672
|
+
"Messages"
|
|
1673
|
+
],
|
|
1598
1674
|
"description": "",
|
|
1599
1675
|
"parameters": [
|
|
1600
1676
|
{
|
|
@@ -1622,7 +1698,9 @@
|
|
|
1622
1698
|
},
|
|
1623
1699
|
"/api/{session}/send-list-message": {
|
|
1624
1700
|
"post": {
|
|
1625
|
-
"tags": [
|
|
1701
|
+
"tags": [
|
|
1702
|
+
"Messages"
|
|
1703
|
+
],
|
|
1626
1704
|
"description": "",
|
|
1627
1705
|
"parameters": [
|
|
1628
1706
|
{
|
|
@@ -1703,7 +1781,9 @@
|
|
|
1703
1781
|
},
|
|
1704
1782
|
"/api/{session}/send-order-message": {
|
|
1705
1783
|
"post": {
|
|
1706
|
-
"tags": [
|
|
1784
|
+
"tags": [
|
|
1785
|
+
"Messages"
|
|
1786
|
+
],
|
|
1707
1787
|
"description": "",
|
|
1708
1788
|
"parameters": [
|
|
1709
1789
|
{
|
|
@@ -1809,7 +1889,9 @@
|
|
|
1809
1889
|
},
|
|
1810
1890
|
"/api/{session}/send-poll-message": {
|
|
1811
1891
|
"post": {
|
|
1812
|
-
"tags": [
|
|
1892
|
+
"tags": [
|
|
1893
|
+
"Messages"
|
|
1894
|
+
],
|
|
1813
1895
|
"description": "",
|
|
1814
1896
|
"parameters": [
|
|
1815
1897
|
{
|
|
@@ -1862,7 +1944,11 @@
|
|
|
1862
1944
|
"phone": "5521999999999",
|
|
1863
1945
|
"isGroup": false,
|
|
1864
1946
|
"name": "Poll name",
|
|
1865
|
-
"choices": [
|
|
1947
|
+
"choices": [
|
|
1948
|
+
"Option 1",
|
|
1949
|
+
"Option 2",
|
|
1950
|
+
"Option 3"
|
|
1951
|
+
],
|
|
1866
1952
|
"options": {
|
|
1867
1953
|
"selectableCount": 1
|
|
1868
1954
|
}
|
|
@@ -1876,7 +1962,9 @@
|
|
|
1876
1962
|
},
|
|
1877
1963
|
"/api/{session}/send-pix-key": {
|
|
1878
1964
|
"post": {
|
|
1879
|
-
"tags": [
|
|
1965
|
+
"tags": [
|
|
1966
|
+
"Messages"
|
|
1967
|
+
],
|
|
1880
1968
|
"description": "",
|
|
1881
1969
|
"parameters": [
|
|
1882
1970
|
{
|
|
@@ -1905,7 +1993,12 @@
|
|
|
1905
1993
|
"application/json": {
|
|
1906
1994
|
"schema": {
|
|
1907
1995
|
"type": "object",
|
|
1908
|
-
"required": [
|
|
1996
|
+
"required": [
|
|
1997
|
+
"phone",
|
|
1998
|
+
"keyType",
|
|
1999
|
+
"name",
|
|
2000
|
+
"key"
|
|
2001
|
+
],
|
|
1909
2002
|
"properties": {
|
|
1910
2003
|
"phone": {
|
|
1911
2004
|
"type": "string"
|
|
@@ -1946,7 +2039,9 @@
|
|
|
1946
2039
|
},
|
|
1947
2040
|
"/api/{session}/all-broadcast-list": {
|
|
1948
2041
|
"get": {
|
|
1949
|
-
"tags": [
|
|
2042
|
+
"tags": [
|
|
2043
|
+
"Misc"
|
|
2044
|
+
],
|
|
1950
2045
|
"description": "",
|
|
1951
2046
|
"parameters": [
|
|
1952
2047
|
{
|
|
@@ -1976,7 +2071,9 @@
|
|
|
1976
2071
|
},
|
|
1977
2072
|
"/api/{session}/all-groups": {
|
|
1978
2073
|
"get": {
|
|
1979
|
-
"tags": [
|
|
2074
|
+
"tags": [
|
|
2075
|
+
"Group"
|
|
2076
|
+
],
|
|
1980
2077
|
"summary": "Deprecated in favor of ",
|
|
1981
2078
|
"description": "",
|
|
1982
2079
|
"parameters": [
|
|
@@ -2143,7 +2240,9 @@
|
|
|
2143
2240
|
},
|
|
2144
2241
|
"/api/{session}/group-members/{groupId}": {
|
|
2145
2242
|
"get": {
|
|
2146
|
-
"tags": [
|
|
2243
|
+
"tags": [
|
|
2244
|
+
"Group"
|
|
2245
|
+
],
|
|
2147
2246
|
"description": "",
|
|
2148
2247
|
"parameters": [
|
|
2149
2248
|
{
|
|
@@ -2181,7 +2280,9 @@
|
|
|
2181
2280
|
},
|
|
2182
2281
|
"/api/{session}/common-groups/{wid}": {
|
|
2183
2282
|
"get": {
|
|
2184
|
-
"tags": [
|
|
2283
|
+
"tags": [
|
|
2284
|
+
"Group"
|
|
2285
|
+
],
|
|
2185
2286
|
"description": "",
|
|
2186
2287
|
"parameters": [
|
|
2187
2288
|
{
|
|
@@ -2220,7 +2321,9 @@
|
|
|
2220
2321
|
},
|
|
2221
2322
|
"/api/{session}/group-admins/{groupId}": {
|
|
2222
2323
|
"get": {
|
|
2223
|
-
"tags": [
|
|
2324
|
+
"tags": [
|
|
2325
|
+
"Group"
|
|
2326
|
+
],
|
|
2224
2327
|
"description": "",
|
|
2225
2328
|
"parameters": [
|
|
2226
2329
|
{
|
|
@@ -2265,7 +2368,9 @@
|
|
|
2265
2368
|
"type": "string"
|
|
2266
2369
|
}
|
|
2267
2370
|
},
|
|
2268
|
-
"required": [
|
|
2371
|
+
"required": [
|
|
2372
|
+
"groupId"
|
|
2373
|
+
]
|
|
2269
2374
|
},
|
|
2270
2375
|
"examples": {
|
|
2271
2376
|
"Default": {
|
|
@@ -2281,7 +2386,9 @@
|
|
|
2281
2386
|
},
|
|
2282
2387
|
"/api/{session}/group-info/{groupId}": {
|
|
2283
2388
|
"get": {
|
|
2284
|
-
"tags": [
|
|
2389
|
+
"tags": [
|
|
2390
|
+
"Group"
|
|
2391
|
+
],
|
|
2285
2392
|
"summary": "Get detailed information about a group",
|
|
2286
2393
|
"description": "",
|
|
2287
2394
|
"parameters": [
|
|
@@ -2419,7 +2526,9 @@
|
|
|
2419
2526
|
},
|
|
2420
2527
|
"/api/{session}/group-invite-link/{groupId}": {
|
|
2421
2528
|
"get": {
|
|
2422
|
-
"tags": [
|
|
2529
|
+
"tags": [
|
|
2530
|
+
"Group"
|
|
2531
|
+
],
|
|
2423
2532
|
"description": "",
|
|
2424
2533
|
"parameters": [
|
|
2425
2534
|
{
|
|
@@ -2472,7 +2581,9 @@
|
|
|
2472
2581
|
},
|
|
2473
2582
|
"/api/{session}/group-revoke-link/{groupId}": {
|
|
2474
2583
|
"get": {
|
|
2475
|
-
"tags": [
|
|
2584
|
+
"tags": [
|
|
2585
|
+
"Group"
|
|
2586
|
+
],
|
|
2476
2587
|
"description": "",
|
|
2477
2588
|
"parameters": [
|
|
2478
2589
|
{
|
|
@@ -2525,7 +2636,9 @@
|
|
|
2525
2636
|
},
|
|
2526
2637
|
"/api/{session}/group-members-ids/{groupId}": {
|
|
2527
2638
|
"get": {
|
|
2528
|
-
"tags": [
|
|
2639
|
+
"tags": [
|
|
2640
|
+
"Group"
|
|
2641
|
+
],
|
|
2529
2642
|
"description": "",
|
|
2530
2643
|
"parameters": [
|
|
2531
2644
|
{
|
|
@@ -2564,7 +2677,9 @@
|
|
|
2564
2677
|
},
|
|
2565
2678
|
"/api/{session}/create-group": {
|
|
2566
2679
|
"post": {
|
|
2567
|
-
"tags": [
|
|
2680
|
+
"tags": [
|
|
2681
|
+
"Group"
|
|
2682
|
+
],
|
|
2568
2683
|
"description": "",
|
|
2569
2684
|
"parameters": [
|
|
2570
2685
|
{
|
|
@@ -2607,12 +2722,17 @@
|
|
|
2607
2722
|
"type": "string"
|
|
2608
2723
|
}
|
|
2609
2724
|
},
|
|
2610
|
-
"required": [
|
|
2725
|
+
"required": [
|
|
2726
|
+
"participants",
|
|
2727
|
+
"name"
|
|
2728
|
+
]
|
|
2611
2729
|
},
|
|
2612
2730
|
"examples": {
|
|
2613
2731
|
"Default": {
|
|
2614
2732
|
"value": {
|
|
2615
|
-
"participants": [
|
|
2733
|
+
"participants": [
|
|
2734
|
+
"5521999999999"
|
|
2735
|
+
],
|
|
2616
2736
|
"name": "Group name"
|
|
2617
2737
|
}
|
|
2618
2738
|
}
|
|
@@ -2624,7 +2744,9 @@
|
|
|
2624
2744
|
},
|
|
2625
2745
|
"/api/{session}/leave-group": {
|
|
2626
2746
|
"post": {
|
|
2627
|
-
"tags": [
|
|
2747
|
+
"tags": [
|
|
2748
|
+
"Group"
|
|
2749
|
+
],
|
|
2628
2750
|
"description": "",
|
|
2629
2751
|
"parameters": [
|
|
2630
2752
|
{
|
|
@@ -2661,7 +2783,9 @@
|
|
|
2661
2783
|
"type": "string"
|
|
2662
2784
|
}
|
|
2663
2785
|
},
|
|
2664
|
-
"required": [
|
|
2786
|
+
"required": [
|
|
2787
|
+
"groupId"
|
|
2788
|
+
]
|
|
2665
2789
|
}
|
|
2666
2790
|
}
|
|
2667
2791
|
}
|
|
@@ -2670,7 +2794,9 @@
|
|
|
2670
2794
|
},
|
|
2671
2795
|
"/api/{session}/join-code": {
|
|
2672
2796
|
"post": {
|
|
2673
|
-
"tags": [
|
|
2797
|
+
"tags": [
|
|
2798
|
+
"Group"
|
|
2799
|
+
],
|
|
2674
2800
|
"description": "",
|
|
2675
2801
|
"parameters": [
|
|
2676
2802
|
{
|
|
@@ -2710,7 +2836,9 @@
|
|
|
2710
2836
|
"type": "string"
|
|
2711
2837
|
}
|
|
2712
2838
|
},
|
|
2713
|
-
"required": [
|
|
2839
|
+
"required": [
|
|
2840
|
+
"inviteCode"
|
|
2841
|
+
]
|
|
2714
2842
|
},
|
|
2715
2843
|
"examples": {
|
|
2716
2844
|
"Default": {
|
|
@@ -2726,7 +2854,9 @@
|
|
|
2726
2854
|
},
|
|
2727
2855
|
"/api/{session}/add-participant-group": {
|
|
2728
2856
|
"post": {
|
|
2729
|
-
"tags": [
|
|
2857
|
+
"tags": [
|
|
2858
|
+
"Group"
|
|
2859
|
+
],
|
|
2730
2860
|
"description": "",
|
|
2731
2861
|
"parameters": [
|
|
2732
2862
|
{
|
|
@@ -2766,7 +2896,10 @@
|
|
|
2766
2896
|
"type": "string"
|
|
2767
2897
|
}
|
|
2768
2898
|
},
|
|
2769
|
-
"required": [
|
|
2899
|
+
"required": [
|
|
2900
|
+
"groupId",
|
|
2901
|
+
"phone"
|
|
2902
|
+
]
|
|
2770
2903
|
},
|
|
2771
2904
|
"examples": {
|
|
2772
2905
|
"Default": {
|
|
@@ -2783,7 +2916,9 @@
|
|
|
2783
2916
|
},
|
|
2784
2917
|
"/api/{session}/remove-participant-group": {
|
|
2785
2918
|
"post": {
|
|
2786
|
-
"tags": [
|
|
2919
|
+
"tags": [
|
|
2920
|
+
"Group"
|
|
2921
|
+
],
|
|
2787
2922
|
"description": "",
|
|
2788
2923
|
"parameters": [
|
|
2789
2924
|
{
|
|
@@ -2823,7 +2958,10 @@
|
|
|
2823
2958
|
"type": "string"
|
|
2824
2959
|
}
|
|
2825
2960
|
},
|
|
2826
|
-
"required": [
|
|
2961
|
+
"required": [
|
|
2962
|
+
"groupId",
|
|
2963
|
+
"phone"
|
|
2964
|
+
]
|
|
2827
2965
|
},
|
|
2828
2966
|
"examples": {
|
|
2829
2967
|
"Default": {
|
|
@@ -2840,7 +2978,9 @@
|
|
|
2840
2978
|
},
|
|
2841
2979
|
"/api/{session}/promote-participant-group": {
|
|
2842
2980
|
"post": {
|
|
2843
|
-
"tags": [
|
|
2981
|
+
"tags": [
|
|
2982
|
+
"Group"
|
|
2983
|
+
],
|
|
2844
2984
|
"description": "",
|
|
2845
2985
|
"parameters": [
|
|
2846
2986
|
{
|
|
@@ -2880,7 +3020,10 @@
|
|
|
2880
3020
|
"type": "string"
|
|
2881
3021
|
}
|
|
2882
3022
|
},
|
|
2883
|
-
"required": [
|
|
3023
|
+
"required": [
|
|
3024
|
+
"groupId",
|
|
3025
|
+
"phone"
|
|
3026
|
+
]
|
|
2884
3027
|
},
|
|
2885
3028
|
"examples": {
|
|
2886
3029
|
"Default": {
|
|
@@ -2897,7 +3040,9 @@
|
|
|
2897
3040
|
},
|
|
2898
3041
|
"/api/{session}/demote-participant-group": {
|
|
2899
3042
|
"post": {
|
|
2900
|
-
"tags": [
|
|
3043
|
+
"tags": [
|
|
3044
|
+
"Group"
|
|
3045
|
+
],
|
|
2901
3046
|
"description": "",
|
|
2902
3047
|
"parameters": [
|
|
2903
3048
|
{
|
|
@@ -2937,7 +3082,10 @@
|
|
|
2937
3082
|
"type": "string"
|
|
2938
3083
|
}
|
|
2939
3084
|
},
|
|
2940
|
-
"required": [
|
|
3085
|
+
"required": [
|
|
3086
|
+
"groupId",
|
|
3087
|
+
"phone"
|
|
3088
|
+
]
|
|
2941
3089
|
},
|
|
2942
3090
|
"examples": {
|
|
2943
3091
|
"Default": {
|
|
@@ -2954,7 +3102,9 @@
|
|
|
2954
3102
|
},
|
|
2955
3103
|
"/api/{session}/group-info-from-invite-link": {
|
|
2956
3104
|
"post": {
|
|
2957
|
-
"tags": [
|
|
3105
|
+
"tags": [
|
|
3106
|
+
"Group"
|
|
3107
|
+
],
|
|
2958
3108
|
"description": "",
|
|
2959
3109
|
"parameters": [
|
|
2960
3110
|
{
|
|
@@ -2999,7 +3149,9 @@
|
|
|
2999
3149
|
},
|
|
3000
3150
|
"/api/{session}/group-description": {
|
|
3001
3151
|
"post": {
|
|
3002
|
-
"tags": [
|
|
3152
|
+
"tags": [
|
|
3153
|
+
"Group"
|
|
3154
|
+
],
|
|
3003
3155
|
"description": "",
|
|
3004
3156
|
"parameters": [
|
|
3005
3157
|
{
|
|
@@ -3047,7 +3199,9 @@
|
|
|
3047
3199
|
},
|
|
3048
3200
|
"/api/{session}/group-property": {
|
|
3049
3201
|
"post": {
|
|
3050
|
-
"tags": [
|
|
3202
|
+
"tags": [
|
|
3203
|
+
"Group"
|
|
3204
|
+
],
|
|
3051
3205
|
"description": "",
|
|
3052
3206
|
"parameters": [
|
|
3053
3207
|
{
|
|
@@ -3098,7 +3252,9 @@
|
|
|
3098
3252
|
},
|
|
3099
3253
|
"/api/{session}/group-subject": {
|
|
3100
3254
|
"post": {
|
|
3101
|
-
"tags": [
|
|
3255
|
+
"tags": [
|
|
3256
|
+
"Group"
|
|
3257
|
+
],
|
|
3102
3258
|
"description": "",
|
|
3103
3259
|
"parameters": [
|
|
3104
3260
|
{
|
|
@@ -3146,7 +3302,9 @@
|
|
|
3146
3302
|
},
|
|
3147
3303
|
"/api/{session}/messages-admins-only": {
|
|
3148
3304
|
"post": {
|
|
3149
|
-
"tags": [
|
|
3305
|
+
"tags": [
|
|
3306
|
+
"Group"
|
|
3307
|
+
],
|
|
3150
3308
|
"description": "",
|
|
3151
3309
|
"parameters": [
|
|
3152
3310
|
{
|
|
@@ -3194,7 +3352,9 @@
|
|
|
3194
3352
|
},
|
|
3195
3353
|
"/api/{session}/group-pic": {
|
|
3196
3354
|
"post": {
|
|
3197
|
-
"tags": [
|
|
3355
|
+
"tags": [
|
|
3356
|
+
"Group"
|
|
3357
|
+
],
|
|
3198
3358
|
"description": "",
|
|
3199
3359
|
"parameters": [
|
|
3200
3360
|
{
|
|
@@ -3245,7 +3405,9 @@
|
|
|
3245
3405
|
},
|
|
3246
3406
|
"/api/{session}/change-privacy-group": {
|
|
3247
3407
|
"post": {
|
|
3248
|
-
"tags": [
|
|
3408
|
+
"tags": [
|
|
3409
|
+
"Group"
|
|
3410
|
+
],
|
|
3249
3411
|
"description": "",
|
|
3250
3412
|
"parameters": [
|
|
3251
3413
|
{
|
|
@@ -3293,7 +3455,9 @@
|
|
|
3293
3455
|
},
|
|
3294
3456
|
"/api/{session}/all-chats": {
|
|
3295
3457
|
"get": {
|
|
3296
|
-
"tags": [
|
|
3458
|
+
"tags": [
|
|
3459
|
+
"Chat"
|
|
3460
|
+
],
|
|
3297
3461
|
"summary": "Deprecated in favor of ",
|
|
3298
3462
|
"description": "This body is not required. Not sent body to get all chats or filter.",
|
|
3299
3463
|
"parameters": [
|
|
@@ -3358,7 +3522,9 @@
|
|
|
3358
3522
|
"example": "My new status"
|
|
3359
3523
|
}
|
|
3360
3524
|
},
|
|
3361
|
-
"required": [
|
|
3525
|
+
"required": [
|
|
3526
|
+
"status"
|
|
3527
|
+
]
|
|
3362
3528
|
}
|
|
3363
3529
|
},
|
|
3364
3530
|
{
|
|
@@ -3466,7 +3632,9 @@
|
|
|
3466
3632
|
},
|
|
3467
3633
|
"/api/{session}/list-chats": {
|
|
3468
3634
|
"post": {
|
|
3469
|
-
"tags": [
|
|
3635
|
+
"tags": [
|
|
3636
|
+
"Chat"
|
|
3637
|
+
],
|
|
3470
3638
|
"summary": "Retrieve a list of chats",
|
|
3471
3639
|
"description": "This body is not required. Not sent body to get all chats or filter.",
|
|
3472
3640
|
"parameters": [
|
|
@@ -3563,7 +3731,9 @@
|
|
|
3563
3731
|
},
|
|
3564
3732
|
"/api/{session}/all-chats-archived": {
|
|
3565
3733
|
"get": {
|
|
3566
|
-
"tags": [
|
|
3734
|
+
"tags": [
|
|
3735
|
+
"Chat"
|
|
3736
|
+
],
|
|
3567
3737
|
"description": "Retrieves all archived chats.",
|
|
3568
3738
|
"parameters": [
|
|
3569
3739
|
{
|
|
@@ -3593,7 +3763,9 @@
|
|
|
3593
3763
|
},
|
|
3594
3764
|
"/api/{session}/all-chats-with-messages": {
|
|
3595
3765
|
"get": {
|
|
3596
|
-
"tags": [
|
|
3766
|
+
"tags": [
|
|
3767
|
+
"Chat"
|
|
3768
|
+
],
|
|
3597
3769
|
"summary": "Deprecated in favor of list-chats",
|
|
3598
3770
|
"description": "",
|
|
3599
3771
|
"parameters": [
|
|
@@ -3625,7 +3797,9 @@
|
|
|
3625
3797
|
},
|
|
3626
3798
|
"/api/{session}/all-messages-in-chat/{phone}": {
|
|
3627
3799
|
"get": {
|
|
3628
|
-
"tags": [
|
|
3800
|
+
"tags": [
|
|
3801
|
+
"Chat"
|
|
3802
|
+
],
|
|
3629
3803
|
"description": "",
|
|
3630
3804
|
"parameters": [
|
|
3631
3805
|
{
|
|
@@ -3688,7 +3862,9 @@
|
|
|
3688
3862
|
},
|
|
3689
3863
|
"/api/{session}/all-new-messages": {
|
|
3690
3864
|
"get": {
|
|
3691
|
-
"tags": [
|
|
3865
|
+
"tags": [
|
|
3866
|
+
"Chat"
|
|
3867
|
+
],
|
|
3692
3868
|
"description": "",
|
|
3693
3869
|
"parameters": [
|
|
3694
3870
|
{
|
|
@@ -3718,7 +3894,9 @@
|
|
|
3718
3894
|
},
|
|
3719
3895
|
"/api/{session}/unread-messages": {
|
|
3720
3896
|
"get": {
|
|
3721
|
-
"tags": [
|
|
3897
|
+
"tags": [
|
|
3898
|
+
"Messages"
|
|
3899
|
+
],
|
|
3722
3900
|
"description": "",
|
|
3723
3901
|
"parameters": [
|
|
3724
3902
|
{
|
|
@@ -3749,7 +3927,9 @@
|
|
|
3749
3927
|
},
|
|
3750
3928
|
"/api/{session}/all-unread-messages": {
|
|
3751
3929
|
"get": {
|
|
3752
|
-
"tags": [
|
|
3930
|
+
"tags": [
|
|
3931
|
+
"Chat"
|
|
3932
|
+
],
|
|
3753
3933
|
"description": "",
|
|
3754
3934
|
"parameters": [
|
|
3755
3935
|
{
|
|
@@ -3779,7 +3959,9 @@
|
|
|
3779
3959
|
},
|
|
3780
3960
|
"/api/{session}/chat-by-id/{phone}": {
|
|
3781
3961
|
"get": {
|
|
3782
|
-
"tags": [
|
|
3962
|
+
"tags": [
|
|
3963
|
+
"Chat"
|
|
3964
|
+
],
|
|
3783
3965
|
"description": "",
|
|
3784
3966
|
"parameters": [
|
|
3785
3967
|
{
|
|
@@ -3826,7 +4008,9 @@
|
|
|
3826
4008
|
},
|
|
3827
4009
|
"/api/{session}/message-by-id/{messageId}": {
|
|
3828
4010
|
"get": {
|
|
3829
|
-
"tags": [
|
|
4011
|
+
"tags": [
|
|
4012
|
+
"Chat"
|
|
4013
|
+
],
|
|
3830
4014
|
"description": "",
|
|
3831
4015
|
"parameters": [
|
|
3832
4016
|
{
|
|
@@ -3862,7 +4046,9 @@
|
|
|
3862
4046
|
},
|
|
3863
4047
|
"/api/{session}/chat-is-online/{phone}": {
|
|
3864
4048
|
"get": {
|
|
3865
|
-
"tags": [
|
|
4049
|
+
"tags": [
|
|
4050
|
+
"Chat"
|
|
4051
|
+
],
|
|
3866
4052
|
"description": "",
|
|
3867
4053
|
"parameters": [
|
|
3868
4054
|
{
|
|
@@ -3901,7 +4087,9 @@
|
|
|
3901
4087
|
},
|
|
3902
4088
|
"/api/{session}/last-seen/{phone}": {
|
|
3903
4089
|
"get": {
|
|
3904
|
-
"tags": [
|
|
4090
|
+
"tags": [
|
|
4091
|
+
"Chat"
|
|
4092
|
+
],
|
|
3905
4093
|
"description": "",
|
|
3906
4094
|
"parameters": [
|
|
3907
4095
|
{
|
|
@@ -3940,7 +4128,9 @@
|
|
|
3940
4128
|
},
|
|
3941
4129
|
"/api/{session}/list-mutes/{type}": {
|
|
3942
4130
|
"get": {
|
|
3943
|
-
"tags": [
|
|
4131
|
+
"tags": [
|
|
4132
|
+
"Chat"
|
|
4133
|
+
],
|
|
3944
4134
|
"description": "",
|
|
3945
4135
|
"parameters": [
|
|
3946
4136
|
{
|
|
@@ -3979,7 +4169,9 @@
|
|
|
3979
4169
|
},
|
|
3980
4170
|
"/api/{session}/load-messages-in-chat/{phone}": {
|
|
3981
4171
|
"get": {
|
|
3982
|
-
"tags": [
|
|
4172
|
+
"tags": [
|
|
4173
|
+
"Chat"
|
|
4174
|
+
],
|
|
3983
4175
|
"description": "",
|
|
3984
4176
|
"parameters": [
|
|
3985
4177
|
{
|
|
@@ -4035,7 +4227,9 @@
|
|
|
4035
4227
|
},
|
|
4036
4228
|
"/api/{session}/get-messages/{phone}": {
|
|
4037
4229
|
"get": {
|
|
4038
|
-
"tags": [
|
|
4230
|
+
"tags": [
|
|
4231
|
+
"Messages"
|
|
4232
|
+
],
|
|
4039
4233
|
"description": "",
|
|
4040
4234
|
"parameters": [
|
|
4041
4235
|
{
|
|
@@ -4098,7 +4292,9 @@
|
|
|
4098
4292
|
},
|
|
4099
4293
|
"/api/{session}/archive-chat": {
|
|
4100
4294
|
"post": {
|
|
4101
|
-
"tags": [
|
|
4295
|
+
"tags": [
|
|
4296
|
+
"Chat"
|
|
4297
|
+
],
|
|
4102
4298
|
"description": "",
|
|
4103
4299
|
"parameters": [
|
|
4104
4300
|
{
|
|
@@ -4158,7 +4354,9 @@
|
|
|
4158
4354
|
},
|
|
4159
4355
|
"/api/{session}/archive-all-chats": {
|
|
4160
4356
|
"post": {
|
|
4161
|
-
"tags": [
|
|
4357
|
+
"tags": [
|
|
4358
|
+
"Chat"
|
|
4359
|
+
],
|
|
4162
4360
|
"description": "",
|
|
4163
4361
|
"parameters": [
|
|
4164
4362
|
{
|
|
@@ -4188,7 +4386,9 @@
|
|
|
4188
4386
|
},
|
|
4189
4387
|
"/api/{session}/clear-chat": {
|
|
4190
4388
|
"post": {
|
|
4191
|
-
"tags": [
|
|
4389
|
+
"tags": [
|
|
4390
|
+
"Chat"
|
|
4391
|
+
],
|
|
4192
4392
|
"description": "",
|
|
4193
4393
|
"parameters": [
|
|
4194
4394
|
{
|
|
@@ -4241,7 +4441,9 @@
|
|
|
4241
4441
|
},
|
|
4242
4442
|
"/api/{session}/clear-all-chats": {
|
|
4243
4443
|
"post": {
|
|
4244
|
-
"tags": [
|
|
4444
|
+
"tags": [
|
|
4445
|
+
"Chat"
|
|
4446
|
+
],
|
|
4245
4447
|
"description": "",
|
|
4246
4448
|
"parameters": [
|
|
4247
4449
|
{
|
|
@@ -4271,7 +4473,9 @@
|
|
|
4271
4473
|
},
|
|
4272
4474
|
"/api/{session}/delete-chat": {
|
|
4273
4475
|
"post": {
|
|
4274
|
-
"tags": [
|
|
4476
|
+
"tags": [
|
|
4477
|
+
"Chat"
|
|
4478
|
+
],
|
|
4275
4479
|
"description": "",
|
|
4276
4480
|
"parameters": [
|
|
4277
4481
|
{
|
|
@@ -4324,7 +4528,9 @@
|
|
|
4324
4528
|
},
|
|
4325
4529
|
"/api/{session}/delete-all-chats": {
|
|
4326
4530
|
"post": {
|
|
4327
|
-
"tags": [
|
|
4531
|
+
"tags": [
|
|
4532
|
+
"Chat"
|
|
4533
|
+
],
|
|
4328
4534
|
"description": "",
|
|
4329
4535
|
"parameters": [
|
|
4330
4536
|
{
|
|
@@ -4354,7 +4560,9 @@
|
|
|
4354
4560
|
},
|
|
4355
4561
|
"/api/{session}/delete-message": {
|
|
4356
4562
|
"post": {
|
|
4357
|
-
"tags": [
|
|
4563
|
+
"tags": [
|
|
4564
|
+
"Messages"
|
|
4565
|
+
],
|
|
4358
4566
|
"description": "",
|
|
4359
4567
|
"parameters": [
|
|
4360
4568
|
{
|
|
@@ -4431,7 +4639,9 @@
|
|
|
4431
4639
|
},
|
|
4432
4640
|
"/api/{session}/react-message": {
|
|
4433
4641
|
"post": {
|
|
4434
|
-
"tags": [
|
|
4642
|
+
"tags": [
|
|
4643
|
+
"Messages"
|
|
4644
|
+
],
|
|
4435
4645
|
"description": "",
|
|
4436
4646
|
"parameters": [
|
|
4437
4647
|
{
|
|
@@ -4487,7 +4697,9 @@
|
|
|
4487
4697
|
},
|
|
4488
4698
|
"/api/{session}/forward-messages": {
|
|
4489
4699
|
"post": {
|
|
4490
|
-
"tags": [
|
|
4700
|
+
"tags": [
|
|
4701
|
+
"Messages"
|
|
4702
|
+
],
|
|
4491
4703
|
"description": "",
|
|
4492
4704
|
"parameters": [
|
|
4493
4705
|
{
|
|
@@ -4547,7 +4759,9 @@
|
|
|
4547
4759
|
},
|
|
4548
4760
|
"/api/{session}/mark-unseen": {
|
|
4549
4761
|
"post": {
|
|
4550
|
-
"tags": [
|
|
4762
|
+
"tags": [
|
|
4763
|
+
"Messages"
|
|
4764
|
+
],
|
|
4551
4765
|
"description": "",
|
|
4552
4766
|
"parameters": [
|
|
4553
4767
|
{
|
|
@@ -4603,7 +4817,9 @@
|
|
|
4603
4817
|
},
|
|
4604
4818
|
"/api/{session}/pin-chat": {
|
|
4605
4819
|
"post": {
|
|
4606
|
-
"tags": [
|
|
4820
|
+
"tags": [
|
|
4821
|
+
"Chat"
|
|
4822
|
+
],
|
|
4607
4823
|
"description": "",
|
|
4608
4824
|
"parameters": [
|
|
4609
4825
|
{
|
|
@@ -4634,7 +4850,11 @@
|
|
|
4634
4850
|
"example": true
|
|
4635
4851
|
}
|
|
4636
4852
|
},
|
|
4637
|
-
"required": [
|
|
4853
|
+
"required": [
|
|
4854
|
+
"phone",
|
|
4855
|
+
"isGroup",
|
|
4856
|
+
"state"
|
|
4857
|
+
]
|
|
4638
4858
|
}
|
|
4639
4859
|
}
|
|
4640
4860
|
],
|
|
@@ -4684,7 +4904,9 @@
|
|
|
4684
4904
|
},
|
|
4685
4905
|
"/api/{session}/contact-vcard": {
|
|
4686
4906
|
"post": {
|
|
4687
|
-
"tags": [
|
|
4907
|
+
"tags": [
|
|
4908
|
+
"Messages"
|
|
4909
|
+
],
|
|
4688
4910
|
"description": "",
|
|
4689
4911
|
"parameters": [
|
|
4690
4912
|
{
|
|
@@ -4737,7 +4959,9 @@
|
|
|
4737
4959
|
"phone": "5521999999999",
|
|
4738
4960
|
"isGroup": false,
|
|
4739
4961
|
"name": "Name of contact",
|
|
4740
|
-
"contactsId": [
|
|
4962
|
+
"contactsId": [
|
|
4963
|
+
"5521999999999"
|
|
4964
|
+
]
|
|
4741
4965
|
}
|
|
4742
4966
|
}
|
|
4743
4967
|
}
|
|
@@ -4748,7 +4972,9 @@
|
|
|
4748
4972
|
},
|
|
4749
4973
|
"/api/{session}/send-mute": {
|
|
4750
4974
|
"post": {
|
|
4751
|
-
"tags": [
|
|
4975
|
+
"tags": [
|
|
4976
|
+
"Chat"
|
|
4977
|
+
],
|
|
4752
4978
|
"description": "",
|
|
4753
4979
|
"parameters": [
|
|
4754
4980
|
{
|
|
@@ -4812,7 +5038,9 @@
|
|
|
4812
5038
|
},
|
|
4813
5039
|
"/api/{session}/send-seen": {
|
|
4814
5040
|
"post": {
|
|
4815
|
-
"tags": [
|
|
5041
|
+
"tags": [
|
|
5042
|
+
"Chat"
|
|
5043
|
+
],
|
|
4816
5044
|
"description": "",
|
|
4817
5045
|
"parameters": [
|
|
4818
5046
|
{
|
|
@@ -4865,7 +5093,9 @@
|
|
|
4865
5093
|
},
|
|
4866
5094
|
"/api/{session}/chat-state": {
|
|
4867
5095
|
"post": {
|
|
4868
|
-
"tags": [
|
|
5096
|
+
"tags": [
|
|
5097
|
+
"Chat"
|
|
5098
|
+
],
|
|
4869
5099
|
"description": "",
|
|
4870
5100
|
"parameters": [
|
|
4871
5101
|
{
|
|
@@ -4926,7 +5156,9 @@
|
|
|
4926
5156
|
},
|
|
4927
5157
|
"/api/{session}/temporary-messages": {
|
|
4928
5158
|
"post": {
|
|
4929
|
-
"tags": [
|
|
5159
|
+
"tags": [
|
|
5160
|
+
"Messages"
|
|
5161
|
+
],
|
|
4930
5162
|
"description": "",
|
|
4931
5163
|
"parameters": [
|
|
4932
5164
|
{
|
|
@@ -4986,7 +5218,9 @@
|
|
|
4986
5218
|
},
|
|
4987
5219
|
"/api/{session}/typing": {
|
|
4988
5220
|
"post": {
|
|
4989
|
-
"tags": [
|
|
5221
|
+
"tags": [
|
|
5222
|
+
"Chat"
|
|
5223
|
+
],
|
|
4990
5224
|
"description": "",
|
|
4991
5225
|
"parameters": [
|
|
4992
5226
|
{
|
|
@@ -5046,7 +5280,9 @@
|
|
|
5046
5280
|
},
|
|
5047
5281
|
"/api/{session}/recording": {
|
|
5048
5282
|
"post": {
|
|
5049
|
-
"tags": [
|
|
5283
|
+
"tags": [
|
|
5284
|
+
"Chat"
|
|
5285
|
+
],
|
|
5050
5286
|
"description": "",
|
|
5051
5287
|
"parameters": [
|
|
5052
5288
|
{
|
|
@@ -5110,7 +5346,9 @@
|
|
|
5110
5346
|
},
|
|
5111
5347
|
"/api/{session}/star-message": {
|
|
5112
5348
|
"post": {
|
|
5113
|
-
"tags": [
|
|
5349
|
+
"tags": [
|
|
5350
|
+
"Messages"
|
|
5351
|
+
],
|
|
5114
5352
|
"description": "",
|
|
5115
5353
|
"parameters": [
|
|
5116
5354
|
{
|
|
@@ -5166,7 +5404,9 @@
|
|
|
5166
5404
|
},
|
|
5167
5405
|
"/api/{session}/reactions/{id}": {
|
|
5168
5406
|
"get": {
|
|
5169
|
-
"tags": [
|
|
5407
|
+
"tags": [
|
|
5408
|
+
"Messages"
|
|
5409
|
+
],
|
|
5170
5410
|
"description": "",
|
|
5171
5411
|
"parameters": [
|
|
5172
5412
|
{
|
|
@@ -5212,7 +5452,9 @@
|
|
|
5212
5452
|
},
|
|
5213
5453
|
"/api/{session}/votes/{id}": {
|
|
5214
5454
|
"get": {
|
|
5215
|
-
"tags": [
|
|
5455
|
+
"tags": [
|
|
5456
|
+
"Messages"
|
|
5457
|
+
],
|
|
5216
5458
|
"description": "",
|
|
5217
5459
|
"parameters": [
|
|
5218
5460
|
{
|
|
@@ -5258,7 +5500,9 @@
|
|
|
5258
5500
|
},
|
|
5259
5501
|
"/api/{session}/reject-call": {
|
|
5260
5502
|
"post": {
|
|
5261
|
-
"tags": [
|
|
5503
|
+
"tags": [
|
|
5504
|
+
"Misc"
|
|
5505
|
+
],
|
|
5262
5506
|
"description": "",
|
|
5263
5507
|
"parameters": [
|
|
5264
5508
|
{
|
|
@@ -5310,7 +5554,9 @@
|
|
|
5310
5554
|
},
|
|
5311
5555
|
"/api/{session}/get-products": {
|
|
5312
5556
|
"get": {
|
|
5313
|
-
"tags": [
|
|
5557
|
+
"tags": [
|
|
5558
|
+
"Catalog & Bussiness"
|
|
5559
|
+
],
|
|
5314
5560
|
"description": "",
|
|
5315
5561
|
"parameters": [
|
|
5316
5562
|
{
|
|
@@ -5359,7 +5605,9 @@
|
|
|
5359
5605
|
},
|
|
5360
5606
|
"/api/{session}/get-product-by-id": {
|
|
5361
5607
|
"get": {
|
|
5362
|
-
"tags": [
|
|
5608
|
+
"tags": [
|
|
5609
|
+
"Catalog & Bussiness"
|
|
5610
|
+
],
|
|
5363
5611
|
"description": "",
|
|
5364
5612
|
"parameters": [
|
|
5365
5613
|
{
|
|
@@ -5408,7 +5656,9 @@
|
|
|
5408
5656
|
},
|
|
5409
5657
|
"/api/{session}/add-product": {
|
|
5410
5658
|
"post": {
|
|
5411
|
-
"tags": [
|
|
5659
|
+
"tags": [
|
|
5660
|
+
"Catalog & Bussiness"
|
|
5661
|
+
],
|
|
5412
5662
|
"description": "",
|
|
5413
5663
|
"parameters": [
|
|
5414
5664
|
{
|
|
@@ -5487,7 +5737,9 @@
|
|
|
5487
5737
|
},
|
|
5488
5738
|
"/api/{session}/edit-product": {
|
|
5489
5739
|
"post": {
|
|
5490
|
-
"tags": [
|
|
5740
|
+
"tags": [
|
|
5741
|
+
"Catalog & Bussiness"
|
|
5742
|
+
],
|
|
5491
5743
|
"description": "",
|
|
5492
5744
|
"parameters": [
|
|
5493
5745
|
{
|
|
@@ -5548,7 +5800,9 @@
|
|
|
5548
5800
|
},
|
|
5549
5801
|
"/api/{session}/del-products": {
|
|
5550
5802
|
"post": {
|
|
5551
|
-
"tags": [
|
|
5803
|
+
"tags": [
|
|
5804
|
+
"Catalog & Bussiness"
|
|
5805
|
+
],
|
|
5552
5806
|
"description": "",
|
|
5553
5807
|
"parameters": [
|
|
5554
5808
|
{
|
|
@@ -5603,7 +5857,9 @@
|
|
|
5603
5857
|
},
|
|
5604
5858
|
"/api/{session}/change-product-image": {
|
|
5605
5859
|
"post": {
|
|
5606
|
-
"tags": [
|
|
5860
|
+
"tags": [
|
|
5861
|
+
"Catalog & Bussiness"
|
|
5862
|
+
],
|
|
5607
5863
|
"description": "",
|
|
5608
5864
|
"parameters": [
|
|
5609
5865
|
{
|
|
@@ -5662,7 +5918,9 @@
|
|
|
5662
5918
|
},
|
|
5663
5919
|
"/api/{session}/add-product-image": {
|
|
5664
5920
|
"post": {
|
|
5665
|
-
"tags": [
|
|
5921
|
+
"tags": [
|
|
5922
|
+
"Catalog & Bussiness"
|
|
5923
|
+
],
|
|
5666
5924
|
"description": "",
|
|
5667
5925
|
"parameters": [
|
|
5668
5926
|
{
|
|
@@ -5721,7 +5979,9 @@
|
|
|
5721
5979
|
},
|
|
5722
5980
|
"/api/{session}/remove-product-image": {
|
|
5723
5981
|
"post": {
|
|
5724
|
-
"tags": [
|
|
5982
|
+
"tags": [
|
|
5983
|
+
"Catalog & Bussiness"
|
|
5984
|
+
],
|
|
5725
5985
|
"description": "",
|
|
5726
5986
|
"parameters": [
|
|
5727
5987
|
{
|
|
@@ -5780,7 +6040,9 @@
|
|
|
5780
6040
|
},
|
|
5781
6041
|
"/api/{session}/get-collections": {
|
|
5782
6042
|
"get": {
|
|
5783
|
-
"tags": [
|
|
6043
|
+
"tags": [
|
|
6044
|
+
"Catalog & Bussiness"
|
|
6045
|
+
],
|
|
5784
6046
|
"description": "",
|
|
5785
6047
|
"parameters": [
|
|
5786
6048
|
{
|
|
@@ -5837,7 +6099,9 @@
|
|
|
5837
6099
|
},
|
|
5838
6100
|
"/api/{session}/create-collection": {
|
|
5839
6101
|
"post": {
|
|
5840
|
-
"tags": [
|
|
6102
|
+
"tags": [
|
|
6103
|
+
"Catalog & Bussiness"
|
|
6104
|
+
],
|
|
5841
6105
|
"description": "",
|
|
5842
6106
|
"parameters": [
|
|
5843
6107
|
{
|
|
@@ -5885,7 +6149,10 @@
|
|
|
5885
6149
|
"Default": {
|
|
5886
6150
|
"value": {
|
|
5887
6151
|
"name": "Collection name",
|
|
5888
|
-
"products": [
|
|
6152
|
+
"products": [
|
|
6153
|
+
"<id_product1>",
|
|
6154
|
+
"<id_product2>"
|
|
6155
|
+
]
|
|
5889
6156
|
}
|
|
5890
6157
|
}
|
|
5891
6158
|
}
|
|
@@ -5896,7 +6163,9 @@
|
|
|
5896
6163
|
},
|
|
5897
6164
|
"/api/{session}/edit-collection": {
|
|
5898
6165
|
"post": {
|
|
5899
|
-
"tags": [
|
|
6166
|
+
"tags": [
|
|
6167
|
+
"Catalog & Bussiness"
|
|
6168
|
+
],
|
|
5900
6169
|
"description": "",
|
|
5901
6170
|
"parameters": [
|
|
5902
6171
|
{
|
|
@@ -5957,7 +6226,9 @@
|
|
|
5957
6226
|
},
|
|
5958
6227
|
"/api/{session}/del-collection": {
|
|
5959
6228
|
"post": {
|
|
5960
|
-
"tags": [
|
|
6229
|
+
"tags": [
|
|
6230
|
+
"Catalog & Bussiness"
|
|
6231
|
+
],
|
|
5961
6232
|
"description": "",
|
|
5962
6233
|
"parameters": [
|
|
5963
6234
|
{
|
|
@@ -6012,7 +6283,9 @@
|
|
|
6012
6283
|
},
|
|
6013
6284
|
"/api/{session}/send-link-catalog": {
|
|
6014
6285
|
"post": {
|
|
6015
|
-
"tags": [
|
|
6286
|
+
"tags": [
|
|
6287
|
+
"Messages"
|
|
6288
|
+
],
|
|
6016
6289
|
"description": "",
|
|
6017
6290
|
"parameters": [
|
|
6018
6291
|
{
|
|
@@ -6059,7 +6332,9 @@
|
|
|
6059
6332
|
"examples": {
|
|
6060
6333
|
"Default": {
|
|
6061
6334
|
"value": {
|
|
6062
|
-
"phones": [
|
|
6335
|
+
"phones": [
|
|
6336
|
+
"<array_phone_id"
|
|
6337
|
+
],
|
|
6063
6338
|
"message": "Message"
|
|
6064
6339
|
}
|
|
6065
6340
|
}
|
|
@@ -6071,7 +6346,9 @@
|
|
|
6071
6346
|
},
|
|
6072
6347
|
"/api/{session}/set-product-visibility": {
|
|
6073
6348
|
"post": {
|
|
6074
|
-
"tags": [
|
|
6349
|
+
"tags": [
|
|
6350
|
+
"Catalog & Bussiness"
|
|
6351
|
+
],
|
|
6075
6352
|
"description": "",
|
|
6076
6353
|
"parameters": [
|
|
6077
6354
|
{
|
|
@@ -6098,7 +6375,10 @@
|
|
|
6098
6375
|
"example": false
|
|
6099
6376
|
}
|
|
6100
6377
|
},
|
|
6101
|
-
"required": [
|
|
6378
|
+
"required": [
|
|
6379
|
+
"id",
|
|
6380
|
+
"value"
|
|
6381
|
+
]
|
|
6102
6382
|
}
|
|
6103
6383
|
}
|
|
6104
6384
|
],
|
|
@@ -6148,7 +6428,9 @@
|
|
|
6148
6428
|
},
|
|
6149
6429
|
"/api/{session}/set-cart-enabled": {
|
|
6150
6430
|
"post": {
|
|
6151
|
-
"tags": [
|
|
6431
|
+
"tags": [
|
|
6432
|
+
"Catalog & Bussiness"
|
|
6433
|
+
],
|
|
6152
6434
|
"description": "",
|
|
6153
6435
|
"parameters": [
|
|
6154
6436
|
{
|
|
@@ -6203,7 +6485,9 @@
|
|
|
6203
6485
|
},
|
|
6204
6486
|
"/api/{session}/send-text-storie": {
|
|
6205
6487
|
"post": {
|
|
6206
|
-
"tags": [
|
|
6488
|
+
"tags": [
|
|
6489
|
+
"Status Stories"
|
|
6490
|
+
],
|
|
6207
6491
|
"description": "",
|
|
6208
6492
|
"parameters": [
|
|
6209
6493
|
{
|
|
@@ -6269,7 +6553,9 @@
|
|
|
6269
6553
|
"type": "object"
|
|
6270
6554
|
}
|
|
6271
6555
|
},
|
|
6272
|
-
"required": [
|
|
6556
|
+
"required": [
|
|
6557
|
+
"text"
|
|
6558
|
+
]
|
|
6273
6559
|
},
|
|
6274
6560
|
"examples": {
|
|
6275
6561
|
"Default": {
|
|
@@ -6289,7 +6575,9 @@
|
|
|
6289
6575
|
},
|
|
6290
6576
|
"/api/{session}/send-image-storie": {
|
|
6291
6577
|
"post": {
|
|
6292
|
-
"tags": [
|
|
6578
|
+
"tags": [
|
|
6579
|
+
"Status Stories"
|
|
6580
|
+
],
|
|
6293
6581
|
"description": "",
|
|
6294
6582
|
"parameters": [
|
|
6295
6583
|
{
|
|
@@ -6326,7 +6614,9 @@
|
|
|
6326
6614
|
"type": "string"
|
|
6327
6615
|
}
|
|
6328
6616
|
},
|
|
6329
|
-
"required": [
|
|
6617
|
+
"required": [
|
|
6618
|
+
"path"
|
|
6619
|
+
]
|
|
6330
6620
|
},
|
|
6331
6621
|
"examples": {
|
|
6332
6622
|
"Default": {
|
|
@@ -6342,7 +6632,9 @@
|
|
|
6342
6632
|
},
|
|
6343
6633
|
"/api/{session}/send-video-storie": {
|
|
6344
6634
|
"post": {
|
|
6345
|
-
"tags": [
|
|
6635
|
+
"tags": [
|
|
6636
|
+
"Status Stories"
|
|
6637
|
+
],
|
|
6346
6638
|
"description": "",
|
|
6347
6639
|
"parameters": [
|
|
6348
6640
|
{
|
|
@@ -6379,7 +6671,9 @@
|
|
|
6379
6671
|
"type": "string"
|
|
6380
6672
|
}
|
|
6381
6673
|
},
|
|
6382
|
-
"required": [
|
|
6674
|
+
"required": [
|
|
6675
|
+
"path"
|
|
6676
|
+
]
|
|
6383
6677
|
},
|
|
6384
6678
|
"examples": {
|
|
6385
6679
|
"Default": {
|
|
@@ -6395,7 +6689,9 @@
|
|
|
6395
6689
|
},
|
|
6396
6690
|
"/api/{session}/add-new-label": {
|
|
6397
6691
|
"post": {
|
|
6398
|
-
"tags": [
|
|
6692
|
+
"tags": [
|
|
6693
|
+
"Labels"
|
|
6694
|
+
],
|
|
6399
6695
|
"description": "",
|
|
6400
6696
|
"parameters": [
|
|
6401
6697
|
{
|
|
@@ -6443,7 +6739,10 @@
|
|
|
6443
6739
|
}
|
|
6444
6740
|
}
|
|
6445
6741
|
},
|
|
6446
|
-
"required": [
|
|
6742
|
+
"required": [
|
|
6743
|
+
"name",
|
|
6744
|
+
"options"
|
|
6745
|
+
]
|
|
6447
6746
|
},
|
|
6448
6747
|
"examples": {
|
|
6449
6748
|
"Default": {
|
|
@@ -6462,7 +6761,9 @@
|
|
|
6462
6761
|
},
|
|
6463
6762
|
"/api/{session}/add-or-remove-label": {
|
|
6464
6763
|
"post": {
|
|
6465
|
-
"tags": [
|
|
6764
|
+
"tags": [
|
|
6765
|
+
"Labels"
|
|
6766
|
+
],
|
|
6466
6767
|
"description": "",
|
|
6467
6768
|
"parameters": [
|
|
6468
6769
|
{
|
|
@@ -6519,12 +6820,16 @@
|
|
|
6519
6820
|
}
|
|
6520
6821
|
}
|
|
6521
6822
|
},
|
|
6522
|
-
"required": [
|
|
6823
|
+
"required": [
|
|
6824
|
+
"chatIds"
|
|
6825
|
+
]
|
|
6523
6826
|
},
|
|
6524
6827
|
"examples": {
|
|
6525
6828
|
"Default": {
|
|
6526
6829
|
"value": {
|
|
6527
|
-
"chatIds": [
|
|
6830
|
+
"chatIds": [
|
|
6831
|
+
"5521999999999"
|
|
6832
|
+
],
|
|
6528
6833
|
"options": [
|
|
6529
6834
|
{
|
|
6530
6835
|
"labelId": "76",
|
|
@@ -6545,7 +6850,9 @@
|
|
|
6545
6850
|
},
|
|
6546
6851
|
"/api/{session}/get-all-labels": {
|
|
6547
6852
|
"get": {
|
|
6548
|
-
"tags": [
|
|
6853
|
+
"tags": [
|
|
6854
|
+
"Labels"
|
|
6855
|
+
],
|
|
6549
6856
|
"description": "",
|
|
6550
6857
|
"parameters": [
|
|
6551
6858
|
{
|
|
@@ -6575,7 +6882,9 @@
|
|
|
6575
6882
|
},
|
|
6576
6883
|
"/api/{session}/delete-all-labels": {
|
|
6577
6884
|
"put": {
|
|
6578
|
-
"tags": [
|
|
6885
|
+
"tags": [
|
|
6886
|
+
"Labels"
|
|
6887
|
+
],
|
|
6579
6888
|
"description": "",
|
|
6580
6889
|
"parameters": [
|
|
6581
6890
|
{
|
|
@@ -6605,7 +6914,9 @@
|
|
|
6605
6914
|
},
|
|
6606
6915
|
"/api/{session}/delete-label/{id}": {
|
|
6607
6916
|
"put": {
|
|
6608
|
-
"tags": [
|
|
6917
|
+
"tags": [
|
|
6918
|
+
"Labels"
|
|
6919
|
+
],
|
|
6609
6920
|
"description": "",
|
|
6610
6921
|
"parameters": [
|
|
6611
6922
|
{
|
|
@@ -6644,7 +6955,9 @@
|
|
|
6644
6955
|
},
|
|
6645
6956
|
"/api/{session}/check-number-status/{phone}": {
|
|
6646
6957
|
"get": {
|
|
6647
|
-
"tags": [
|
|
6958
|
+
"tags": [
|
|
6959
|
+
"Misc"
|
|
6960
|
+
],
|
|
6648
6961
|
"description": "",
|
|
6649
6962
|
"parameters": [
|
|
6650
6963
|
{
|
|
@@ -6703,7 +7016,9 @@
|
|
|
6703
7016
|
},
|
|
6704
7017
|
"/api/{session}/contact/{phone}": {
|
|
6705
7018
|
"get": {
|
|
6706
|
-
"tags": [
|
|
7019
|
+
"tags": [
|
|
7020
|
+
"Chat"
|
|
7021
|
+
],
|
|
6707
7022
|
"description": "",
|
|
6708
7023
|
"parameters": [
|
|
6709
7024
|
{
|
|
@@ -6740,9 +7055,54 @@
|
|
|
6740
7055
|
]
|
|
6741
7056
|
}
|
|
6742
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
|
+
},
|
|
6743
7101
|
"/api/{session}/profile/{phone}": {
|
|
6744
7102
|
"get": {
|
|
6745
|
-
"tags": [
|
|
7103
|
+
"tags": [
|
|
7104
|
+
"Chat"
|
|
7105
|
+
],
|
|
6746
7106
|
"description": "",
|
|
6747
7107
|
"parameters": [
|
|
6748
7108
|
{
|
|
@@ -6782,7 +7142,9 @@
|
|
|
6782
7142
|
},
|
|
6783
7143
|
"/api/{session}/profile-pic/{phone}": {
|
|
6784
7144
|
"get": {
|
|
6785
|
-
"tags": [
|
|
7145
|
+
"tags": [
|
|
7146
|
+
"Contact"
|
|
7147
|
+
],
|
|
6786
7148
|
"description": "",
|
|
6787
7149
|
"parameters": [
|
|
6788
7150
|
{
|
|
@@ -6828,7 +7190,9 @@
|
|
|
6828
7190
|
},
|
|
6829
7191
|
"/api/{session}/profile-status/{phone}": {
|
|
6830
7192
|
"get": {
|
|
6831
|
-
"tags": [
|
|
7193
|
+
"tags": [
|
|
7194
|
+
"Contact"
|
|
7195
|
+
],
|
|
6832
7196
|
"description": "",
|
|
6833
7197
|
"parameters": [
|
|
6834
7198
|
{
|
|
@@ -6867,7 +7231,9 @@
|
|
|
6867
7231
|
},
|
|
6868
7232
|
"/api/{session}/blocklist": {
|
|
6869
7233
|
"get": {
|
|
6870
|
-
"tags": [
|
|
7234
|
+
"tags": [
|
|
7235
|
+
"Misc"
|
|
7236
|
+
],
|
|
6871
7237
|
"description": "",
|
|
6872
7238
|
"parameters": [
|
|
6873
7239
|
{
|
|
@@ -6897,7 +7263,9 @@
|
|
|
6897
7263
|
},
|
|
6898
7264
|
"/api/{session}/block-contact": {
|
|
6899
7265
|
"post": {
|
|
6900
|
-
"tags": [
|
|
7266
|
+
"tags": [
|
|
7267
|
+
"Misc"
|
|
7268
|
+
],
|
|
6901
7269
|
"description": "",
|
|
6902
7270
|
"parameters": [
|
|
6903
7271
|
{
|
|
@@ -6953,7 +7321,9 @@
|
|
|
6953
7321
|
},
|
|
6954
7322
|
"/api/{session}/unblock-contact": {
|
|
6955
7323
|
"post": {
|
|
6956
|
-
"tags": [
|
|
7324
|
+
"tags": [
|
|
7325
|
+
"Misc"
|
|
7326
|
+
],
|
|
6957
7327
|
"description": "",
|
|
6958
7328
|
"parameters": [
|
|
6959
7329
|
{
|
|
@@ -7009,7 +7379,9 @@
|
|
|
7009
7379
|
},
|
|
7010
7380
|
"/api/{session}/get-battery-level": {
|
|
7011
7381
|
"get": {
|
|
7012
|
-
"tags": [
|
|
7382
|
+
"tags": [
|
|
7383
|
+
"Misc"
|
|
7384
|
+
],
|
|
7013
7385
|
"description": "",
|
|
7014
7386
|
"parameters": [
|
|
7015
7387
|
{
|
|
@@ -7039,7 +7411,9 @@
|
|
|
7039
7411
|
},
|
|
7040
7412
|
"/api/{session}/host-device": {
|
|
7041
7413
|
"get": {
|
|
7042
|
-
"tags": [
|
|
7414
|
+
"tags": [
|
|
7415
|
+
"Misc"
|
|
7416
|
+
],
|
|
7043
7417
|
"description": "",
|
|
7044
7418
|
"parameters": [
|
|
7045
7419
|
{
|
|
@@ -7069,7 +7443,9 @@
|
|
|
7069
7443
|
},
|
|
7070
7444
|
"/api/{session}/get-phone-number": {
|
|
7071
7445
|
"get": {
|
|
7072
|
-
"tags": [
|
|
7446
|
+
"tags": [
|
|
7447
|
+
"Misc"
|
|
7448
|
+
],
|
|
7073
7449
|
"description": "",
|
|
7074
7450
|
"parameters": [
|
|
7075
7451
|
{
|
|
@@ -7099,7 +7475,9 @@
|
|
|
7099
7475
|
},
|
|
7100
7476
|
"/api/{session}/set-profile-pic": {
|
|
7101
7477
|
"post": {
|
|
7102
|
-
"tags": [
|
|
7478
|
+
"tags": [
|
|
7479
|
+
"Profile"
|
|
7480
|
+
],
|
|
7103
7481
|
"description": "",
|
|
7104
7482
|
"parameters": [
|
|
7105
7483
|
{
|
|
@@ -7140,7 +7518,9 @@
|
|
|
7140
7518
|
},
|
|
7141
7519
|
"/api/{session}/profile-status": {
|
|
7142
7520
|
"post": {
|
|
7143
|
-
"tags": [
|
|
7521
|
+
"tags": [
|
|
7522
|
+
"Profile"
|
|
7523
|
+
],
|
|
7144
7524
|
"description": "",
|
|
7145
7525
|
"parameters": [
|
|
7146
7526
|
{
|
|
@@ -7163,7 +7543,9 @@
|
|
|
7163
7543
|
"example": "My new status"
|
|
7164
7544
|
}
|
|
7165
7545
|
},
|
|
7166
|
-
"required": [
|
|
7546
|
+
"required": [
|
|
7547
|
+
"status"
|
|
7548
|
+
]
|
|
7167
7549
|
}
|
|
7168
7550
|
}
|
|
7169
7551
|
],
|
|
@@ -7206,7 +7588,9 @@
|
|
|
7206
7588
|
},
|
|
7207
7589
|
"/api/{session}/change-username": {
|
|
7208
7590
|
"post": {
|
|
7209
|
-
"tags": [
|
|
7591
|
+
"tags": [
|
|
7592
|
+
"Profile"
|
|
7593
|
+
],
|
|
7210
7594
|
"description": "",
|
|
7211
7595
|
"parameters": [
|
|
7212
7596
|
{
|
|
@@ -7261,7 +7645,9 @@
|
|
|
7261
7645
|
},
|
|
7262
7646
|
"/api/{session}/edit-business-profile": {
|
|
7263
7647
|
"post": {
|
|
7264
|
-
"tags": [
|
|
7648
|
+
"tags": [
|
|
7649
|
+
"Profile"
|
|
7650
|
+
],
|
|
7265
7651
|
"description": "Edit your bussiness profile",
|
|
7266
7652
|
"operationId": "editBusinessProfile",
|
|
7267
7653
|
"parameters": [
|
|
@@ -7304,7 +7690,11 @@
|
|
|
7304
7690
|
"example": false
|
|
7305
7691
|
}
|
|
7306
7692
|
},
|
|
7307
|
-
"required": [
|
|
7693
|
+
"required": [
|
|
7694
|
+
"id",
|
|
7695
|
+
"localized_display_name",
|
|
7696
|
+
"not_a_biz"
|
|
7697
|
+
]
|
|
7308
7698
|
},
|
|
7309
7699
|
"website": {
|
|
7310
7700
|
"type": "array",
|
|
@@ -7317,7 +7707,12 @@
|
|
|
7317
7707
|
}
|
|
7318
7708
|
}
|
|
7319
7709
|
},
|
|
7320
|
-
"required": [
|
|
7710
|
+
"required": [
|
|
7711
|
+
"adress",
|
|
7712
|
+
"email",
|
|
7713
|
+
"categories",
|
|
7714
|
+
"website"
|
|
7715
|
+
]
|
|
7321
7716
|
}
|
|
7322
7717
|
}
|
|
7323
7718
|
],
|
|
@@ -7375,7 +7770,9 @@
|
|
|
7375
7770
|
},
|
|
7376
7771
|
"/api/{session}/get-business-profiles-products": {
|
|
7377
7772
|
"get": {
|
|
7378
|
-
"tags": [
|
|
7773
|
+
"tags": [
|
|
7774
|
+
"Catalog & Bussiness"
|
|
7775
|
+
],
|
|
7379
7776
|
"description": "",
|
|
7380
7777
|
"parameters": [
|
|
7381
7778
|
{
|
|
@@ -7410,7 +7807,9 @@
|
|
|
7410
7807
|
},
|
|
7411
7808
|
"/api/{session}/get-order-by-messageId/{messageId}": {
|
|
7412
7809
|
"get": {
|
|
7413
|
-
"tags": [
|
|
7810
|
+
"tags": [
|
|
7811
|
+
"Catalog & Bussiness"
|
|
7812
|
+
],
|
|
7414
7813
|
"description": "",
|
|
7415
7814
|
"parameters": [
|
|
7416
7815
|
{
|
|
@@ -7446,9 +7845,13 @@
|
|
|
7446
7845
|
},
|
|
7447
7846
|
"/api/{secretkey}/backup-sessions": {
|
|
7448
7847
|
"get": {
|
|
7449
|
-
"tags": [
|
|
7848
|
+
"tags": [
|
|
7849
|
+
"Misc"
|
|
7850
|
+
],
|
|
7450
7851
|
"description": "Please, open the router in your browser, in swagger this not run",
|
|
7451
|
-
"produces": [
|
|
7852
|
+
"produces": [
|
|
7853
|
+
"application/zip"
|
|
7854
|
+
],
|
|
7452
7855
|
"parameters": [
|
|
7453
7856
|
{
|
|
7454
7857
|
"name": "secretkey",
|
|
@@ -7480,7 +7883,9 @@
|
|
|
7480
7883
|
},
|
|
7481
7884
|
"/api/{secretkey}/restore-sessions": {
|
|
7482
7885
|
"post": {
|
|
7483
|
-
"tags": [
|
|
7886
|
+
"tags": [
|
|
7887
|
+
"Misc"
|
|
7888
|
+
],
|
|
7484
7889
|
"description": "",
|
|
7485
7890
|
"parameters": [
|
|
7486
7891
|
{
|
|
@@ -7516,7 +7921,9 @@
|
|
|
7516
7921
|
"format": "binary"
|
|
7517
7922
|
}
|
|
7518
7923
|
},
|
|
7519
|
-
"required": [
|
|
7924
|
+
"required": [
|
|
7925
|
+
"file"
|
|
7926
|
+
]
|
|
7520
7927
|
}
|
|
7521
7928
|
}
|
|
7522
7929
|
}
|
|
@@ -7525,7 +7932,9 @@
|
|
|
7525
7932
|
},
|
|
7526
7933
|
"/api/{session}/take-screenshot": {
|
|
7527
7934
|
"get": {
|
|
7528
|
-
"tags": [
|
|
7935
|
+
"tags": [
|
|
7936
|
+
"Misc"
|
|
7937
|
+
],
|
|
7529
7938
|
"description": "",
|
|
7530
7939
|
"parameters": [
|
|
7531
7940
|
{
|
|
@@ -7555,7 +7964,9 @@
|
|
|
7555
7964
|
},
|
|
7556
7965
|
"/api/{session}/set-limit": {
|
|
7557
7966
|
"post": {
|
|
7558
|
-
"tags": [
|
|
7967
|
+
"tags": [
|
|
7968
|
+
"Misc"
|
|
7969
|
+
],
|
|
7559
7970
|
"description": "Change limits of whatsapp web. Types value: maxMediaSize, maxFileSize, maxShare, statusVideoMaxDuration, unlimitedPin;",
|
|
7560
7971
|
"parameters": [
|
|
7561
7972
|
{
|
|
@@ -7595,7 +8006,10 @@
|
|
|
7595
8006
|
"type": "any"
|
|
7596
8007
|
}
|
|
7597
8008
|
},
|
|
7598
|
-
"required": [
|
|
8009
|
+
"required": [
|
|
8010
|
+
"type",
|
|
8011
|
+
"value"
|
|
8012
|
+
]
|
|
7599
8013
|
},
|
|
7600
8014
|
"examples": {
|
|
7601
8015
|
"Default": {
|
|
@@ -7612,7 +8026,9 @@
|
|
|
7612
8026
|
},
|
|
7613
8027
|
"/api/{session}/create-community": {
|
|
7614
8028
|
"post": {
|
|
7615
|
-
"tags": [
|
|
8029
|
+
"tags": [
|
|
8030
|
+
"Community"
|
|
8031
|
+
],
|
|
7616
8032
|
"description": "",
|
|
7617
8033
|
"parameters": [
|
|
7618
8034
|
{
|
|
@@ -7661,7 +8077,10 @@
|
|
|
7661
8077
|
"value": {
|
|
7662
8078
|
"name": "My community name",
|
|
7663
8079
|
"description": "Description for your community",
|
|
7664
|
-
"groupIds": [
|
|
8080
|
+
"groupIds": [
|
|
8081
|
+
"groupId1",
|
|
8082
|
+
"groupId2"
|
|
8083
|
+
]
|
|
7665
8084
|
}
|
|
7666
8085
|
}
|
|
7667
8086
|
}
|
|
@@ -7672,7 +8091,9 @@
|
|
|
7672
8091
|
},
|
|
7673
8092
|
"/api/{session}/deactivate-community": {
|
|
7674
8093
|
"post": {
|
|
7675
|
-
"tags": [
|
|
8094
|
+
"tags": [
|
|
8095
|
+
"Community"
|
|
8096
|
+
],
|
|
7676
8097
|
"description": "",
|
|
7677
8098
|
"parameters": [
|
|
7678
8099
|
{
|
|
@@ -7724,7 +8145,9 @@
|
|
|
7724
8145
|
},
|
|
7725
8146
|
"/api/{session}/add-community-subgroup": {
|
|
7726
8147
|
"post": {
|
|
7727
|
-
"tags": [
|
|
8148
|
+
"tags": [
|
|
8149
|
+
"Community"
|
|
8150
|
+
],
|
|
7728
8151
|
"description": "",
|
|
7729
8152
|
"parameters": [
|
|
7730
8153
|
{
|
|
@@ -7769,7 +8192,9 @@
|
|
|
7769
8192
|
"Default": {
|
|
7770
8193
|
"value": {
|
|
7771
8194
|
"id": "<you_community_id@g.us>",
|
|
7772
|
-
"groupsIds": [
|
|
8195
|
+
"groupsIds": [
|
|
8196
|
+
"group1Id@g.us"
|
|
8197
|
+
]
|
|
7773
8198
|
}
|
|
7774
8199
|
}
|
|
7775
8200
|
}
|
|
@@ -7780,7 +8205,9 @@
|
|
|
7780
8205
|
},
|
|
7781
8206
|
"/api/{session}/remove-community-subgroup": {
|
|
7782
8207
|
"post": {
|
|
7783
|
-
"tags": [
|
|
8208
|
+
"tags": [
|
|
8209
|
+
"Community"
|
|
8210
|
+
],
|
|
7784
8211
|
"description": "",
|
|
7785
8212
|
"parameters": [
|
|
7786
8213
|
{
|
|
@@ -7825,7 +8252,9 @@
|
|
|
7825
8252
|
"Default": {
|
|
7826
8253
|
"value": {
|
|
7827
8254
|
"id": "<you_community_id@g.us>",
|
|
7828
|
-
"groupsIds": [
|
|
8255
|
+
"groupsIds": [
|
|
8256
|
+
"group1Id@g.us"
|
|
8257
|
+
]
|
|
7829
8258
|
}
|
|
7830
8259
|
}
|
|
7831
8260
|
}
|
|
@@ -7836,7 +8265,9 @@
|
|
|
7836
8265
|
},
|
|
7837
8266
|
"/api/{session}/promote-community-participant": {
|
|
7838
8267
|
"post": {
|
|
7839
|
-
"tags": [
|
|
8268
|
+
"tags": [
|
|
8269
|
+
"Community"
|
|
8270
|
+
],
|
|
7840
8271
|
"description": "",
|
|
7841
8272
|
"parameters": [
|
|
7842
8273
|
{
|
|
@@ -7881,7 +8312,9 @@
|
|
|
7881
8312
|
"Default": {
|
|
7882
8313
|
"value": {
|
|
7883
8314
|
"id": "<you_community_id@g.us>",
|
|
7884
|
-
"participantsId": [
|
|
8315
|
+
"participantsId": [
|
|
8316
|
+
"group1Id@g.us"
|
|
8317
|
+
]
|
|
7885
8318
|
}
|
|
7886
8319
|
}
|
|
7887
8320
|
}
|
|
@@ -7892,7 +8325,9 @@
|
|
|
7892
8325
|
},
|
|
7893
8326
|
"/api/{session}/demote-community-participant": {
|
|
7894
8327
|
"post": {
|
|
7895
|
-
"tags": [
|
|
8328
|
+
"tags": [
|
|
8329
|
+
"Community"
|
|
8330
|
+
],
|
|
7896
8331
|
"description": "",
|
|
7897
8332
|
"parameters": [
|
|
7898
8333
|
{
|
|
@@ -7937,7 +8372,9 @@
|
|
|
7937
8372
|
"Default": {
|
|
7938
8373
|
"value": {
|
|
7939
8374
|
"id": "<you_community_id@g.us>",
|
|
7940
|
-
"participantsId": [
|
|
8375
|
+
"participantsId": [
|
|
8376
|
+
"group1Id@g.us"
|
|
8377
|
+
]
|
|
7941
8378
|
}
|
|
7942
8379
|
}
|
|
7943
8380
|
}
|
|
@@ -7948,7 +8385,9 @@
|
|
|
7948
8385
|
},
|
|
7949
8386
|
"/api/{session}/community-participants/{id}": {
|
|
7950
8387
|
"get": {
|
|
7951
|
-
"tags": [
|
|
8388
|
+
"tags": [
|
|
8389
|
+
"Community"
|
|
8390
|
+
],
|
|
7952
8391
|
"description": "",
|
|
7953
8392
|
"parameters": [
|
|
7954
8393
|
{
|
|
@@ -8210,7 +8649,9 @@
|
|
|
8210
8649
|
},
|
|
8211
8650
|
"/api/{session}/chatwoot": {
|
|
8212
8651
|
"post": {
|
|
8213
|
-
"tags": [
|
|
8652
|
+
"tags": [
|
|
8653
|
+
"Misc"
|
|
8654
|
+
],
|
|
8214
8655
|
"description": "You can point your Chatwoot to this route so that it can perform functions.",
|
|
8215
8656
|
"parameters": [
|
|
8216
8657
|
{
|
|
@@ -8276,7 +8717,9 @@
|
|
|
8276
8717
|
},
|
|
8277
8718
|
"/healthz": {
|
|
8278
8719
|
"get": {
|
|
8279
|
-
"tags": [
|
|
8720
|
+
"tags": [
|
|
8721
|
+
"Misc"
|
|
8722
|
+
],
|
|
8280
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",
|
|
8281
8724
|
"responses": {
|
|
8282
8725
|
"default": {
|
|
@@ -8287,7 +8730,9 @@
|
|
|
8287
8730
|
},
|
|
8288
8731
|
"/unhealthy": {
|
|
8289
8732
|
"get": {
|
|
8290
|
-
"tags": [
|
|
8733
|
+
"tags": [
|
|
8734
|
+
"Misc"
|
|
8735
|
+
],
|
|
8291
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.",
|
|
8292
8737
|
"responses": {
|
|
8293
8738
|
"default": {
|
|
@@ -8298,7 +8743,9 @@
|
|
|
8298
8743
|
},
|
|
8299
8744
|
"/metrics": {
|
|
8300
8745
|
"get": {
|
|
8301
|
-
"tags": [
|
|
8746
|
+
"tags": [
|
|
8747
|
+
"Misc"
|
|
8748
|
+
],
|
|
8302
8749
|
"description": "This endpoint can be used to check the status of API metrics. It returns a response with the collected metrics.",
|
|
8303
8750
|
"responses": {
|
|
8304
8751
|
"default": {
|
|
@@ -8323,4 +8770,4 @@
|
|
|
8323
8770
|
}
|
|
8324
8771
|
}
|
|
8325
8772
|
}
|
|
8326
|
-
}
|
|
8773
|
+
}
|