@wppconnect/server 2.1.2 → 2.2.0
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 +6 -0
- package/dist/controller/communityController.js +352 -0
- package/dist/controller/deviceController.js +594 -119
- package/dist/controller/groupController.js +3 -1
- package/dist/controller/messageController.js +30 -12
- package/dist/routes/index.js +52 -1
- package/dist/swagger.js +15 -11
- package/dist/swagger.json +2096 -1245
- package/package.json +2 -2
package/dist/swagger.json
CHANGED
|
@@ -14,6 +14,18 @@
|
|
|
14
14
|
"name": "Chat",
|
|
15
15
|
"description": "Manages chat-related operations."
|
|
16
16
|
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Contact",
|
|
19
|
+
"description": "Handles operations related to contacts, such as managing contact lists, adding or removing contacts, and retrieving contact information."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "Catalog & Bussiness",
|
|
23
|
+
"description": "Handles operations related to catalogs and business-related functionalities, such as managing product catalogs and business information."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "Community",
|
|
27
|
+
"description": "Manage communities."
|
|
28
|
+
},
|
|
17
29
|
{
|
|
18
30
|
"name": "Messages",
|
|
19
31
|
"description": "Handles message-related operations, including sending, receiving, and managing messages."
|
|
@@ -30,18 +42,10 @@
|
|
|
30
42
|
"name": "Labels",
|
|
31
43
|
"description": "Manages labels or tags associated with chats or messages for organization and categorization purposes."
|
|
32
44
|
},
|
|
33
|
-
{
|
|
34
|
-
"name": "Contact",
|
|
35
|
-
"description": "Handles operations related to contacts, such as managing contact lists, adding or removing contacts, and retrieving contact information."
|
|
36
|
-
},
|
|
37
45
|
{
|
|
38
46
|
"name": "Group",
|
|
39
47
|
"description": "Manages operations related to WhatsApp groups, such as creating, modifying, and managing group settings."
|
|
40
48
|
},
|
|
41
|
-
{
|
|
42
|
-
"name": "Catalog & Bussiness",
|
|
43
|
-
"description": "Handles operations related to catalogs and business-related functionalities, such as managing product catalogs and business information."
|
|
44
|
-
},
|
|
45
49
|
{
|
|
46
50
|
"name": "Misc",
|
|
47
51
|
"description": "Handles miscellaneous operations that do not fit into other specific categories."
|
|
@@ -1385,45 +1389,6 @@
|
|
|
1385
1389
|
"type": "string",
|
|
1386
1390
|
"example": "NERDWHATS_AMERICA"
|
|
1387
1391
|
}
|
|
1388
|
-
},
|
|
1389
|
-
{
|
|
1390
|
-
"name": "obj",
|
|
1391
|
-
"in": "body",
|
|
1392
|
-
"schema": {
|
|
1393
|
-
"type": "object",
|
|
1394
|
-
"properties": {
|
|
1395
|
-
"phone": {
|
|
1396
|
-
"type": "string",
|
|
1397
|
-
"example": "5521999999999"
|
|
1398
|
-
},
|
|
1399
|
-
"isGroup": {
|
|
1400
|
-
"type": "boolean",
|
|
1401
|
-
"example": false
|
|
1402
|
-
},
|
|
1403
|
-
"name": {
|
|
1404
|
-
"type": "string",
|
|
1405
|
-
"example": "Poll name"
|
|
1406
|
-
},
|
|
1407
|
-
"choices": {
|
|
1408
|
-
"type": "array",
|
|
1409
|
-
"example": ["Option 1", "Option 2", "Option 3"],
|
|
1410
|
-
"items": {
|
|
1411
|
-
"type": "string"
|
|
1412
|
-
}
|
|
1413
|
-
},
|
|
1414
|
-
"options": {
|
|
1415
|
-
"type": "object",
|
|
1416
|
-
"properties": {
|
|
1417
|
-
"selectableCount": {
|
|
1418
|
-
"type": "string",
|
|
1419
|
-
"example": "1"
|
|
1420
|
-
}
|
|
1421
|
-
},
|
|
1422
|
-
"required": ["selectableCount"]
|
|
1423
|
-
}
|
|
1424
|
-
},
|
|
1425
|
-
"required": ["phone", "isGroup", "name", "choices", "options"]
|
|
1426
|
-
}
|
|
1427
1392
|
}
|
|
1428
1393
|
],
|
|
1429
1394
|
"responses": {},
|
|
@@ -1431,7 +1396,47 @@
|
|
|
1431
1396
|
{
|
|
1432
1397
|
"bearerAuth": []
|
|
1433
1398
|
}
|
|
1434
|
-
]
|
|
1399
|
+
],
|
|
1400
|
+
"requestBody": {
|
|
1401
|
+
"required": true,
|
|
1402
|
+
"content": {
|
|
1403
|
+
"application/json": {
|
|
1404
|
+
"schema": {
|
|
1405
|
+
"type": "object",
|
|
1406
|
+
"properties": {
|
|
1407
|
+
"phone": {
|
|
1408
|
+
"type": "string"
|
|
1409
|
+
},
|
|
1410
|
+
"isGroup": {
|
|
1411
|
+
"type": "boolean"
|
|
1412
|
+
},
|
|
1413
|
+
"name": {
|
|
1414
|
+
"type": "string"
|
|
1415
|
+
},
|
|
1416
|
+
"choices": {
|
|
1417
|
+
"type": "array"
|
|
1418
|
+
},
|
|
1419
|
+
"options": {
|
|
1420
|
+
"type": "object"
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
},
|
|
1424
|
+
"examples": {
|
|
1425
|
+
"Default": {
|
|
1426
|
+
"value": {
|
|
1427
|
+
"phone": "5521999999999",
|
|
1428
|
+
"isGroup": false,
|
|
1429
|
+
"name": "Poll name",
|
|
1430
|
+
"choices": ["Option 1", "Option 2", "Option 3"],
|
|
1431
|
+
"options": {
|
|
1432
|
+
"selectableCount": 1
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1435
1440
|
}
|
|
1436
1441
|
},
|
|
1437
1442
|
"/api/{session}/all-broadcast-list": {
|
|
@@ -1467,6 +1472,7 @@
|
|
|
1467
1472
|
"/api/{session}/all-groups": {
|
|
1468
1473
|
"get": {
|
|
1469
1474
|
"tags": ["Group"],
|
|
1475
|
+
"summary": "Deprecated in favor of ",
|
|
1470
1476
|
"description": "",
|
|
1471
1477
|
"parameters": [
|
|
1472
1478
|
{
|
|
@@ -1477,21 +1483,41 @@
|
|
|
1477
1483
|
"type": "string",
|
|
1478
1484
|
"example": "NERDWHATS_AMERICA"
|
|
1479
1485
|
}
|
|
1480
|
-
}
|
|
1481
|
-
],
|
|
1482
|
-
"responses": {
|
|
1483
|
-
"200": {
|
|
1484
|
-
"description": "OK"
|
|
1485
1486
|
},
|
|
1486
|
-
|
|
1487
|
-
"
|
|
1487
|
+
{
|
|
1488
|
+
"name": "obj",
|
|
1489
|
+
"in": "body",
|
|
1490
|
+
"schema": {
|
|
1491
|
+
"type": "object",
|
|
1492
|
+
"properties": {
|
|
1493
|
+
"groupId": {
|
|
1494
|
+
"type": "string",
|
|
1495
|
+
"example": "<groupId>"
|
|
1496
|
+
},
|
|
1497
|
+
"path": {
|
|
1498
|
+
"type": "string",
|
|
1499
|
+
"example": "path_of_your_file"
|
|
1500
|
+
}
|
|
1501
|
+
},
|
|
1502
|
+
"required": ["groupId", "path"]
|
|
1503
|
+
}
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
"name": "groupId",
|
|
1507
|
+
"schema": {
|
|
1508
|
+
"type": "string",
|
|
1509
|
+
"example": "<groupId>"
|
|
1510
|
+
},
|
|
1511
|
+
"in": "query"
|
|
1488
1512
|
}
|
|
1489
|
-
|
|
1513
|
+
],
|
|
1514
|
+
"responses": {},
|
|
1490
1515
|
"security": [
|
|
1491
1516
|
{
|
|
1492
1517
|
"bearerAuth": []
|
|
1493
1518
|
}
|
|
1494
|
-
]
|
|
1519
|
+
],
|
|
1520
|
+
"deprecated": true
|
|
1495
1521
|
}
|
|
1496
1522
|
},
|
|
1497
1523
|
"/api/{session}/group-members/{groupId}": {
|
|
@@ -2417,7 +2443,8 @@
|
|
|
2417
2443
|
"/api/{session}/all-chats": {
|
|
2418
2444
|
"get": {
|
|
2419
2445
|
"tags": ["Chat"],
|
|
2420
|
-
"
|
|
2446
|
+
"summary": "Deprecated in favor of ",
|
|
2447
|
+
"description": "This body is not required. Not sent body to get all chats or filter.",
|
|
2421
2448
|
"parameters": [
|
|
2422
2449
|
{
|
|
2423
2450
|
"name": "session",
|
|
@@ -2427,134 +2454,375 @@
|
|
|
2427
2454
|
"type": "string",
|
|
2428
2455
|
"example": "NERDWHATS_AMERICA"
|
|
2429
2456
|
}
|
|
2430
|
-
}
|
|
2431
|
-
],
|
|
2432
|
-
"responses": {
|
|
2433
|
-
"200": {
|
|
2434
|
-
"description": "OK"
|
|
2435
2457
|
},
|
|
2436
|
-
"500": {
|
|
2437
|
-
"description": "Internal Server Error"
|
|
2438
|
-
}
|
|
2439
|
-
},
|
|
2440
|
-
"security": [
|
|
2441
|
-
{
|
|
2442
|
-
"bearerAuth": []
|
|
2443
|
-
}
|
|
2444
|
-
]
|
|
2445
|
-
}
|
|
2446
|
-
},
|
|
2447
|
-
"/api/{session}/all-chats-archived": {
|
|
2448
|
-
"get": {
|
|
2449
|
-
"tags": ["Chat"],
|
|
2450
|
-
"description": "Retrieves all archived chats.",
|
|
2451
|
-
"parameters": [
|
|
2452
2458
|
{
|
|
2453
|
-
"name": "
|
|
2454
|
-
"in": "path",
|
|
2455
|
-
"required": true,
|
|
2459
|
+
"name": "phone",
|
|
2456
2460
|
"schema": {
|
|
2457
2461
|
"type": "string",
|
|
2458
|
-
"example": "
|
|
2459
|
-
}
|
|
2460
|
-
|
|
2461
|
-
],
|
|
2462
|
-
"responses": {
|
|
2463
|
-
"201": {
|
|
2464
|
-
"description": "Created"
|
|
2462
|
+
"example": "5521999999999"
|
|
2463
|
+
},
|
|
2464
|
+
"in": "query"
|
|
2465
2465
|
},
|
|
2466
|
-
"500": {
|
|
2467
|
-
"description": "Internal Server Error"
|
|
2468
|
-
}
|
|
2469
|
-
},
|
|
2470
|
-
"security": [
|
|
2471
2466
|
{
|
|
2472
|
-
"
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
"tags": ["Chat"],
|
|
2480
|
-
"description": "",
|
|
2481
|
-
"parameters": [
|
|
2467
|
+
"name": "isGroup",
|
|
2468
|
+
"schema": {
|
|
2469
|
+
"type": "string",
|
|
2470
|
+
"example": "false"
|
|
2471
|
+
},
|
|
2472
|
+
"in": "query"
|
|
2473
|
+
},
|
|
2482
2474
|
{
|
|
2483
|
-
"name": "
|
|
2484
|
-
"in": "path",
|
|
2485
|
-
"required": true,
|
|
2475
|
+
"name": "includeMe",
|
|
2486
2476
|
"schema": {
|
|
2487
2477
|
"type": "string",
|
|
2488
|
-
"example": "
|
|
2489
|
-
}
|
|
2490
|
-
|
|
2491
|
-
],
|
|
2492
|
-
"responses": {
|
|
2493
|
-
"200": {
|
|
2494
|
-
"description": "OK"
|
|
2478
|
+
"example": "true"
|
|
2479
|
+
},
|
|
2480
|
+
"in": "query"
|
|
2495
2481
|
},
|
|
2496
|
-
"500": {
|
|
2497
|
-
"description": "Internal Server Error"
|
|
2498
|
-
}
|
|
2499
|
-
},
|
|
2500
|
-
"security": [
|
|
2501
2482
|
{
|
|
2502
|
-
"
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
"tags": ["Chat"],
|
|
2510
|
-
"description": "",
|
|
2511
|
-
"parameters": [
|
|
2483
|
+
"name": "includeNotifications",
|
|
2484
|
+
"schema": {
|
|
2485
|
+
"type": "string",
|
|
2486
|
+
"example": "false"
|
|
2487
|
+
},
|
|
2488
|
+
"in": "query"
|
|
2489
|
+
},
|
|
2512
2490
|
{
|
|
2513
|
-
"name": "
|
|
2514
|
-
"in": "path",
|
|
2491
|
+
"name": "messageId",
|
|
2515
2492
|
"required": true,
|
|
2516
2493
|
"schema": {
|
|
2517
2494
|
"type": "string",
|
|
2518
|
-
"example": "
|
|
2495
|
+
"example": "<messageId>"
|
|
2496
|
+
},
|
|
2497
|
+
"in": "query"
|
|
2498
|
+
},
|
|
2499
|
+
{
|
|
2500
|
+
"name": "obj",
|
|
2501
|
+
"in": "body",
|
|
2502
|
+
"schema": {
|
|
2503
|
+
"type": "object",
|
|
2504
|
+
"properties": {
|
|
2505
|
+
"status": {
|
|
2506
|
+
"type": "string",
|
|
2507
|
+
"example": "My new status"
|
|
2508
|
+
}
|
|
2509
|
+
},
|
|
2510
|
+
"required": ["status"]
|
|
2519
2511
|
}
|
|
2520
2512
|
},
|
|
2521
2513
|
{
|
|
2522
|
-
"name": "
|
|
2523
|
-
"in": "
|
|
2514
|
+
"name": "file",
|
|
2515
|
+
"in": "formData",
|
|
2524
2516
|
"required": true,
|
|
2525
2517
|
"schema": {
|
|
2526
|
-
"type": "
|
|
2527
|
-
"example": "5521999999999"
|
|
2518
|
+
"type": "file"
|
|
2528
2519
|
}
|
|
2529
2520
|
},
|
|
2530
2521
|
{
|
|
2531
|
-
"name": "
|
|
2522
|
+
"name": "type",
|
|
2532
2523
|
"schema": {
|
|
2533
2524
|
"type": "string",
|
|
2534
|
-
"example": "
|
|
2525
|
+
"example": "all"
|
|
2535
2526
|
},
|
|
2536
2527
|
"in": "query"
|
|
2537
2528
|
},
|
|
2538
2529
|
{
|
|
2539
|
-
"name": "
|
|
2530
|
+
"name": "count",
|
|
2540
2531
|
"schema": {
|
|
2541
2532
|
"type": "string",
|
|
2542
|
-
"example": "
|
|
2533
|
+
"example": "20"
|
|
2543
2534
|
},
|
|
2544
2535
|
"in": "query"
|
|
2545
2536
|
},
|
|
2546
2537
|
{
|
|
2547
|
-
"name": "
|
|
2538
|
+
"name": "direction",
|
|
2548
2539
|
"schema": {
|
|
2549
2540
|
"type": "string",
|
|
2550
|
-
"example": "
|
|
2541
|
+
"example": "before"
|
|
2551
2542
|
},
|
|
2552
2543
|
"in": "query"
|
|
2553
|
-
}
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2544
|
+
},
|
|
2545
|
+
{
|
|
2546
|
+
"name": "id",
|
|
2547
|
+
"schema": {
|
|
2548
|
+
"type": "string",
|
|
2549
|
+
"example": "<message_id_to_use_direction>"
|
|
2550
|
+
},
|
|
2551
|
+
"in": "query"
|
|
2552
|
+
},
|
|
2553
|
+
{
|
|
2554
|
+
"name": "status",
|
|
2555
|
+
"in": "query",
|
|
2556
|
+
"schema": {
|
|
2557
|
+
"type": "string"
|
|
2558
|
+
}
|
|
2559
|
+
},
|
|
2560
|
+
{
|
|
2561
|
+
"name": "response",
|
|
2562
|
+
"in": "query",
|
|
2563
|
+
"schema": {
|
|
2564
|
+
"type": "string"
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2567
|
+
],
|
|
2568
|
+
"responses": {
|
|
2569
|
+
"200": {
|
|
2570
|
+
"description": "OK"
|
|
2571
|
+
},
|
|
2572
|
+
"400": {
|
|
2573
|
+
"description": "Bad Request"
|
|
2574
|
+
},
|
|
2575
|
+
"401": {
|
|
2576
|
+
"description": "Unauthorized"
|
|
2577
|
+
},
|
|
2578
|
+
"500": {
|
|
2579
|
+
"description": "Internal Server Error"
|
|
2580
|
+
}
|
|
2581
|
+
},
|
|
2582
|
+
"security": [
|
|
2583
|
+
{
|
|
2584
|
+
"bearerAuth": []
|
|
2585
|
+
}
|
|
2586
|
+
],
|
|
2587
|
+
"requestBody": {
|
|
2588
|
+
"required": true,
|
|
2589
|
+
"content": {
|
|
2590
|
+
"application/json": {
|
|
2591
|
+
"schema": {
|
|
2592
|
+
"type": "object",
|
|
2593
|
+
"properties": {
|
|
2594
|
+
"event": {
|
|
2595
|
+
"type": "string"
|
|
2596
|
+
},
|
|
2597
|
+
"private": {
|
|
2598
|
+
"type": "string"
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
},
|
|
2602
|
+
"examples": {
|
|
2603
|
+
"Default": {
|
|
2604
|
+
"value": {
|
|
2605
|
+
"messageId": "conversation_status_changed",
|
|
2606
|
+
"private": "false"
|
|
2607
|
+
}
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2612
|
+
},
|
|
2613
|
+
"deprecated": true
|
|
2614
|
+
}
|
|
2615
|
+
},
|
|
2616
|
+
"/api/{session}/list-chats": {
|
|
2617
|
+
"post": {
|
|
2618
|
+
"tags": ["Chat"],
|
|
2619
|
+
"summary": "Retrieve a list of chats",
|
|
2620
|
+
"description": "This body is not required. Not sent body to get all chats or filter.",
|
|
2621
|
+
"parameters": [
|
|
2622
|
+
{
|
|
2623
|
+
"name": "session",
|
|
2624
|
+
"in": "path",
|
|
2625
|
+
"required": true,
|
|
2626
|
+
"schema": {
|
|
2627
|
+
"type": "string",
|
|
2628
|
+
"example": "NERDWHATS_AMERICA"
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
],
|
|
2632
|
+
"responses": {
|
|
2633
|
+
"200": {
|
|
2634
|
+
"description": "OK"
|
|
2635
|
+
},
|
|
2636
|
+
"500": {
|
|
2637
|
+
"description": "Internal Server Error"
|
|
2638
|
+
}
|
|
2639
|
+
},
|
|
2640
|
+
"security": [
|
|
2641
|
+
{
|
|
2642
|
+
"bearerAuth": []
|
|
2643
|
+
}
|
|
2644
|
+
],
|
|
2645
|
+
"requestBody": {
|
|
2646
|
+
"required": false,
|
|
2647
|
+
"content": {
|
|
2648
|
+
"application/json": {
|
|
2649
|
+
"schema": {
|
|
2650
|
+
"type": "object",
|
|
2651
|
+
"properties": {
|
|
2652
|
+
"id": {
|
|
2653
|
+
"type": "string"
|
|
2654
|
+
},
|
|
2655
|
+
"count": {
|
|
2656
|
+
"type": "number"
|
|
2657
|
+
},
|
|
2658
|
+
"direction": {
|
|
2659
|
+
"type": "string"
|
|
2660
|
+
},
|
|
2661
|
+
"onlyGroups": {
|
|
2662
|
+
"type": "boolean"
|
|
2663
|
+
},
|
|
2664
|
+
"onlyUsers": {
|
|
2665
|
+
"type": "boolean"
|
|
2666
|
+
},
|
|
2667
|
+
"onlyWithUnreadMessage": {
|
|
2668
|
+
"type": "boolean"
|
|
2669
|
+
},
|
|
2670
|
+
"withLabels": {
|
|
2671
|
+
"type": "array"
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
},
|
|
2675
|
+
"examples": {
|
|
2676
|
+
"All options - Edit this": {
|
|
2677
|
+
"value": {
|
|
2678
|
+
"id": "<chatId>",
|
|
2679
|
+
"count": 20,
|
|
2680
|
+
"direction": "after",
|
|
2681
|
+
"onlyGroups": false,
|
|
2682
|
+
"onlyUsers": false,
|
|
2683
|
+
"onlyWithUnreadMessage": false,
|
|
2684
|
+
"withLabels": []
|
|
2685
|
+
}
|
|
2686
|
+
},
|
|
2687
|
+
"All chats": {
|
|
2688
|
+
"value": {}
|
|
2689
|
+
},
|
|
2690
|
+
"Chats group": {
|
|
2691
|
+
"value": {
|
|
2692
|
+
"onlyGroups": true
|
|
2693
|
+
}
|
|
2694
|
+
},
|
|
2695
|
+
"Only with unread messages": {
|
|
2696
|
+
"value": {
|
|
2697
|
+
"onlyWithUnreadMessage": false
|
|
2698
|
+
}
|
|
2699
|
+
},
|
|
2700
|
+
"Paginated results": {
|
|
2701
|
+
"value": {
|
|
2702
|
+
"id": "<chatId>",
|
|
2703
|
+
"count": 20,
|
|
2704
|
+
"direction": "after"
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
},
|
|
2713
|
+
"/api/{session}/all-chats-archived": {
|
|
2714
|
+
"get": {
|
|
2715
|
+
"tags": ["Chat"],
|
|
2716
|
+
"description": "Retrieves all archived chats.",
|
|
2717
|
+
"parameters": [
|
|
2718
|
+
{
|
|
2719
|
+
"name": "session",
|
|
2720
|
+
"in": "path",
|
|
2721
|
+
"required": true,
|
|
2722
|
+
"schema": {
|
|
2723
|
+
"type": "string",
|
|
2724
|
+
"example": "NERDWHATS_AMERICA"
|
|
2725
|
+
}
|
|
2726
|
+
}
|
|
2727
|
+
],
|
|
2728
|
+
"responses": {
|
|
2729
|
+
"201": {
|
|
2730
|
+
"description": "Created"
|
|
2731
|
+
},
|
|
2732
|
+
"500": {
|
|
2733
|
+
"description": "Internal Server Error"
|
|
2734
|
+
}
|
|
2735
|
+
},
|
|
2736
|
+
"security": [
|
|
2737
|
+
{
|
|
2738
|
+
"bearerAuth": []
|
|
2739
|
+
}
|
|
2740
|
+
]
|
|
2741
|
+
}
|
|
2742
|
+
},
|
|
2743
|
+
"/api/{session}/all-chats-with-messages": {
|
|
2744
|
+
"get": {
|
|
2745
|
+
"tags": ["Chat"],
|
|
2746
|
+
"summary": "Deprecated in favor of list-chats",
|
|
2747
|
+
"description": "",
|
|
2748
|
+
"parameters": [
|
|
2749
|
+
{
|
|
2750
|
+
"name": "session",
|
|
2751
|
+
"in": "path",
|
|
2752
|
+
"required": true,
|
|
2753
|
+
"schema": {
|
|
2754
|
+
"type": "string",
|
|
2755
|
+
"example": "NERDWHATS_AMERICA"
|
|
2756
|
+
}
|
|
2757
|
+
}
|
|
2758
|
+
],
|
|
2759
|
+
"responses": {
|
|
2760
|
+
"200": {
|
|
2761
|
+
"description": "OK"
|
|
2762
|
+
},
|
|
2763
|
+
"500": {
|
|
2764
|
+
"description": "Internal Server Error"
|
|
2765
|
+
}
|
|
2766
|
+
},
|
|
2767
|
+
"security": [
|
|
2768
|
+
{
|
|
2769
|
+
"bearerAuth": []
|
|
2770
|
+
}
|
|
2771
|
+
],
|
|
2772
|
+
"deprecated": true
|
|
2773
|
+
}
|
|
2774
|
+
},
|
|
2775
|
+
"/api/{session}/all-messages-in-chat/{phone}": {
|
|
2776
|
+
"get": {
|
|
2777
|
+
"tags": ["Chat"],
|
|
2778
|
+
"description": "",
|
|
2779
|
+
"parameters": [
|
|
2780
|
+
{
|
|
2781
|
+
"name": "session",
|
|
2782
|
+
"in": "path",
|
|
2783
|
+
"required": true,
|
|
2784
|
+
"schema": {
|
|
2785
|
+
"type": "string",
|
|
2786
|
+
"example": "NERDWHATS_AMERICA"
|
|
2787
|
+
}
|
|
2788
|
+
},
|
|
2789
|
+
{
|
|
2790
|
+
"name": "phone",
|
|
2791
|
+
"in": "path",
|
|
2792
|
+
"required": true,
|
|
2793
|
+
"schema": {
|
|
2794
|
+
"type": "string",
|
|
2795
|
+
"example": "5521999999999"
|
|
2796
|
+
}
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
"name": "isGroup",
|
|
2800
|
+
"schema": {
|
|
2801
|
+
"type": "string",
|
|
2802
|
+
"example": "false"
|
|
2803
|
+
},
|
|
2804
|
+
"in": "query"
|
|
2805
|
+
},
|
|
2806
|
+
{
|
|
2807
|
+
"name": "includeMe",
|
|
2808
|
+
"schema": {
|
|
2809
|
+
"type": "string",
|
|
2810
|
+
"example": "true"
|
|
2811
|
+
},
|
|
2812
|
+
"in": "query"
|
|
2813
|
+
},
|
|
2814
|
+
{
|
|
2815
|
+
"name": "includeNotifications",
|
|
2816
|
+
"schema": {
|
|
2817
|
+
"type": "string",
|
|
2818
|
+
"example": "true"
|
|
2819
|
+
},
|
|
2820
|
+
"in": "query"
|
|
2821
|
+
}
|
|
2822
|
+
],
|
|
2823
|
+
"responses": {
|
|
2824
|
+
"200": {
|
|
2825
|
+
"description": "OK"
|
|
2558
2826
|
},
|
|
2559
2827
|
"500": {
|
|
2560
2828
|
"description": "Internal Server Error"
|
|
@@ -2986,43 +3254,51 @@
|
|
|
2986
3254
|
"type": "string",
|
|
2987
3255
|
"example": "NERDWHATS_AMERICA"
|
|
2988
3256
|
}
|
|
3257
|
+
}
|
|
3258
|
+
],
|
|
3259
|
+
"responses": {
|
|
3260
|
+
"201": {
|
|
3261
|
+
"description": "Created"
|
|
2989
3262
|
},
|
|
3263
|
+
"500": {
|
|
3264
|
+
"description": "Internal Server Error"
|
|
3265
|
+
}
|
|
3266
|
+
},
|
|
3267
|
+
"security": [
|
|
2990
3268
|
{
|
|
2991
|
-
"
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
"
|
|
3001
|
-
"
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3269
|
+
"bearerAuth": []
|
|
3270
|
+
}
|
|
3271
|
+
],
|
|
3272
|
+
"requestBody": {
|
|
3273
|
+
"required": false,
|
|
3274
|
+
"content": {
|
|
3275
|
+
"application/json": {
|
|
3276
|
+
"schema": {
|
|
3277
|
+
"type": "object",
|
|
3278
|
+
"properties": {
|
|
3279
|
+
"phone": {
|
|
3280
|
+
"type": "string"
|
|
3281
|
+
},
|
|
3282
|
+
"isGroup": {
|
|
3283
|
+
"type": "boolean"
|
|
3284
|
+
},
|
|
3285
|
+
"value": {
|
|
3286
|
+
"type": "boolean"
|
|
3287
|
+
}
|
|
3007
3288
|
}
|
|
3008
3289
|
},
|
|
3009
|
-
"
|
|
3290
|
+
"examples": {
|
|
3291
|
+
"Default": {
|
|
3292
|
+
"value": {
|
|
3293
|
+
"phone": "5521999999999",
|
|
3294
|
+
"isGroup": false,
|
|
3295
|
+
"value": true
|
|
3296
|
+
}
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3010
3299
|
}
|
|
3011
3300
|
}
|
|
3012
|
-
|
|
3013
|
-
"responses": {
|
|
3014
|
-
"201": {
|
|
3015
|
-
"description": "Created"
|
|
3016
|
-
},
|
|
3017
|
-
"500": {
|
|
3018
|
-
"description": "Internal Server Error"
|
|
3019
|
-
}
|
|
3020
|
-
},
|
|
3021
|
-
"security": [
|
|
3022
|
-
{
|
|
3023
|
-
"bearerAuth": []
|
|
3024
|
-
}
|
|
3025
|
-
]
|
|
3301
|
+
}
|
|
3026
3302
|
}
|
|
3027
3303
|
},
|
|
3028
3304
|
"/api/{session}/archive-all-chats": {
|
|
@@ -3068,24 +3344,6 @@
|
|
|
3068
3344
|
"type": "string",
|
|
3069
3345
|
"example": "NERDWHATS_AMERICA"
|
|
3070
3346
|
}
|
|
3071
|
-
},
|
|
3072
|
-
{
|
|
3073
|
-
"name": "obj",
|
|
3074
|
-
"in": "body",
|
|
3075
|
-
"schema": {
|
|
3076
|
-
"type": "object",
|
|
3077
|
-
"properties": {
|
|
3078
|
-
"phone": {
|
|
3079
|
-
"type": "string",
|
|
3080
|
-
"example": "5521999999999"
|
|
3081
|
-
},
|
|
3082
|
-
"isGroup": {
|
|
3083
|
-
"type": "boolean",
|
|
3084
|
-
"example": false
|
|
3085
|
-
}
|
|
3086
|
-
},
|
|
3087
|
-
"required": ["phone", "isGroup"]
|
|
3088
|
-
}
|
|
3089
3347
|
}
|
|
3090
3348
|
],
|
|
3091
3349
|
"responses": {},
|
|
@@ -3093,7 +3351,33 @@
|
|
|
3093
3351
|
{
|
|
3094
3352
|
"bearerAuth": []
|
|
3095
3353
|
}
|
|
3096
|
-
]
|
|
3354
|
+
],
|
|
3355
|
+
"requestBody": {
|
|
3356
|
+
"required": false,
|
|
3357
|
+
"content": {
|
|
3358
|
+
"application/json": {
|
|
3359
|
+
"schema": {
|
|
3360
|
+
"type": "object",
|
|
3361
|
+
"properties": {
|
|
3362
|
+
"phone": {
|
|
3363
|
+
"type": "string"
|
|
3364
|
+
},
|
|
3365
|
+
"isGroup": {
|
|
3366
|
+
"type": "boolean"
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
},
|
|
3370
|
+
"examples": {
|
|
3371
|
+
"Default": {
|
|
3372
|
+
"value": {
|
|
3373
|
+
"phone": "5521999999999",
|
|
3374
|
+
"isGroup": false
|
|
3375
|
+
}
|
|
3376
|
+
}
|
|
3377
|
+
}
|
|
3378
|
+
}
|
|
3379
|
+
}
|
|
3380
|
+
}
|
|
3097
3381
|
}
|
|
3098
3382
|
},
|
|
3099
3383
|
"/api/{session}/clear-all-chats": {
|
|
@@ -3139,24 +3423,6 @@
|
|
|
3139
3423
|
"type": "string",
|
|
3140
3424
|
"example": "NERDWHATS_AMERICA"
|
|
3141
3425
|
}
|
|
3142
|
-
},
|
|
3143
|
-
{
|
|
3144
|
-
"name": "obj",
|
|
3145
|
-
"in": "body",
|
|
3146
|
-
"schema": {
|
|
3147
|
-
"type": "object",
|
|
3148
|
-
"properties": {
|
|
3149
|
-
"phone": {
|
|
3150
|
-
"type": "string",
|
|
3151
|
-
"example": "5521999999999"
|
|
3152
|
-
},
|
|
3153
|
-
"isGroup": {
|
|
3154
|
-
"type": "boolean",
|
|
3155
|
-
"example": false
|
|
3156
|
-
}
|
|
3157
|
-
},
|
|
3158
|
-
"required": ["phone", "isGroup"]
|
|
3159
|
-
}
|
|
3160
3426
|
}
|
|
3161
3427
|
],
|
|
3162
3428
|
"responses": {},
|
|
@@ -3164,7 +3430,33 @@
|
|
|
3164
3430
|
{
|
|
3165
3431
|
"bearerAuth": []
|
|
3166
3432
|
}
|
|
3167
|
-
]
|
|
3433
|
+
],
|
|
3434
|
+
"requestBody": {
|
|
3435
|
+
"required": false,
|
|
3436
|
+
"content": {
|
|
3437
|
+
"application/json": {
|
|
3438
|
+
"schema": {
|
|
3439
|
+
"type": "object",
|
|
3440
|
+
"properties": {
|
|
3441
|
+
"phone": {
|
|
3442
|
+
"type": "string"
|
|
3443
|
+
},
|
|
3444
|
+
"isGroup": {
|
|
3445
|
+
"type": "boolean"
|
|
3446
|
+
}
|
|
3447
|
+
}
|
|
3448
|
+
},
|
|
3449
|
+
"examples": {
|
|
3450
|
+
"Default": {
|
|
3451
|
+
"value": {
|
|
3452
|
+
"phone": "5521999999999",
|
|
3453
|
+
"isGroup": false
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
}
|
|
3457
|
+
}
|
|
3458
|
+
}
|
|
3459
|
+
}
|
|
3168
3460
|
}
|
|
3169
3461
|
},
|
|
3170
3462
|
"/api/{session}/delete-all-chats": {
|
|
@@ -3210,28 +3502,6 @@
|
|
|
3210
3502
|
"type": "string",
|
|
3211
3503
|
"example": "NERDWHATS_AMERICA"
|
|
3212
3504
|
}
|
|
3213
|
-
},
|
|
3214
|
-
{
|
|
3215
|
-
"name": "obj",
|
|
3216
|
-
"in": "body",
|
|
3217
|
-
"schema": {
|
|
3218
|
-
"type": "object",
|
|
3219
|
-
"properties": {
|
|
3220
|
-
"phone": {
|
|
3221
|
-
"type": "string",
|
|
3222
|
-
"example": "5521999999999"
|
|
3223
|
-
},
|
|
3224
|
-
"isGroup": {
|
|
3225
|
-
"type": "boolean",
|
|
3226
|
-
"example": false
|
|
3227
|
-
},
|
|
3228
|
-
"messageId": {
|
|
3229
|
-
"type": "string",
|
|
3230
|
-
"example": "<messageId>"
|
|
3231
|
-
}
|
|
3232
|
-
},
|
|
3233
|
-
"required": ["phone", "isGroup"]
|
|
3234
|
-
}
|
|
3235
3505
|
}
|
|
3236
3506
|
],
|
|
3237
3507
|
"responses": {
|
|
@@ -3246,7 +3516,37 @@
|
|
|
3246
3516
|
{
|
|
3247
3517
|
"bearerAuth": []
|
|
3248
3518
|
}
|
|
3249
|
-
]
|
|
3519
|
+
],
|
|
3520
|
+
"requestBody": {
|
|
3521
|
+
"required": false,
|
|
3522
|
+
"content": {
|
|
3523
|
+
"application/json": {
|
|
3524
|
+
"schema": {
|
|
3525
|
+
"type": "object",
|
|
3526
|
+
"properties": {
|
|
3527
|
+
"phone": {
|
|
3528
|
+
"type": "string"
|
|
3529
|
+
},
|
|
3530
|
+
"isGroup": {
|
|
3531
|
+
"type": "boolean"
|
|
3532
|
+
},
|
|
3533
|
+
"messageId": {
|
|
3534
|
+
"type": "string"
|
|
3535
|
+
}
|
|
3536
|
+
}
|
|
3537
|
+
},
|
|
3538
|
+
"examples": {
|
|
3539
|
+
"Default": {
|
|
3540
|
+
"value": {
|
|
3541
|
+
"phone": "5521999999999",
|
|
3542
|
+
"isGroup": false,
|
|
3543
|
+
"messageId": "<messageId>"
|
|
3544
|
+
}
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
}
|
|
3549
|
+
}
|
|
3250
3550
|
}
|
|
3251
3551
|
},
|
|
3252
3552
|
"/api/{session}/react-message": {
|
|
@@ -3262,24 +3562,6 @@
|
|
|
3262
3562
|
"type": "string",
|
|
3263
3563
|
"example": "NERDWHATS_AMERICA"
|
|
3264
3564
|
}
|
|
3265
|
-
},
|
|
3266
|
-
{
|
|
3267
|
-
"name": "obj",
|
|
3268
|
-
"in": "body",
|
|
3269
|
-
"schema": {
|
|
3270
|
-
"type": "object",
|
|
3271
|
-
"properties": {
|
|
3272
|
-
"msgId": {
|
|
3273
|
-
"type": "string",
|
|
3274
|
-
"example": "<message_id>"
|
|
3275
|
-
},
|
|
3276
|
-
"reaction": {
|
|
3277
|
-
"type": "string",
|
|
3278
|
-
"example": "😜"
|
|
3279
|
-
}
|
|
3280
|
-
},
|
|
3281
|
-
"required": ["msgId", "reaction"]
|
|
3282
|
-
}
|
|
3283
3565
|
}
|
|
3284
3566
|
],
|
|
3285
3567
|
"responses": {
|
|
@@ -3294,7 +3576,33 @@
|
|
|
3294
3576
|
{
|
|
3295
3577
|
"bearerAuth": []
|
|
3296
3578
|
}
|
|
3297
|
-
]
|
|
3579
|
+
],
|
|
3580
|
+
"requestBody": {
|
|
3581
|
+
"required": false,
|
|
3582
|
+
"content": {
|
|
3583
|
+
"application/json": {
|
|
3584
|
+
"schema": {
|
|
3585
|
+
"type": "object",
|
|
3586
|
+
"properties": {
|
|
3587
|
+
"messageId": {
|
|
3588
|
+
"type": "string"
|
|
3589
|
+
},
|
|
3590
|
+
"reaction": {
|
|
3591
|
+
"type": "string"
|
|
3592
|
+
}
|
|
3593
|
+
}
|
|
3594
|
+
},
|
|
3595
|
+
"examples": {
|
|
3596
|
+
"Default": {
|
|
3597
|
+
"value": {
|
|
3598
|
+
"messageId": "<messageId>",
|
|
3599
|
+
"reaction": "😜"
|
|
3600
|
+
}
|
|
3601
|
+
}
|
|
3602
|
+
}
|
|
3603
|
+
}
|
|
3604
|
+
}
|
|
3605
|
+
}
|
|
3298
3606
|
}
|
|
3299
3607
|
},
|
|
3300
3608
|
"/api/{session}/forward-messages": {
|
|
@@ -3310,28 +3618,6 @@
|
|
|
3310
3618
|
"type": "string",
|
|
3311
3619
|
"example": "NERDWHATS_AMERICA"
|
|
3312
3620
|
}
|
|
3313
|
-
},
|
|
3314
|
-
{
|
|
3315
|
-
"name": "obj",
|
|
3316
|
-
"in": "body",
|
|
3317
|
-
"schema": {
|
|
3318
|
-
"type": "object",
|
|
3319
|
-
"properties": {
|
|
3320
|
-
"phone": {
|
|
3321
|
-
"type": "string",
|
|
3322
|
-
"example": "5521999999999"
|
|
3323
|
-
},
|
|
3324
|
-
"isGroup": {
|
|
3325
|
-
"type": "boolean",
|
|
3326
|
-
"example": false
|
|
3327
|
-
},
|
|
3328
|
-
"messageId": {
|
|
3329
|
-
"type": "string",
|
|
3330
|
-
"example": "<message_id>"
|
|
3331
|
-
}
|
|
3332
|
-
},
|
|
3333
|
-
"required": ["phone", "isGroup", "messageId"]
|
|
3334
|
-
}
|
|
3335
3621
|
}
|
|
3336
3622
|
],
|
|
3337
3623
|
"responses": {
|
|
@@ -3346,13 +3632,99 @@
|
|
|
3346
3632
|
{
|
|
3347
3633
|
"bearerAuth": []
|
|
3348
3634
|
}
|
|
3349
|
-
]
|
|
3635
|
+
],
|
|
3636
|
+
"requestBody": {
|
|
3637
|
+
"required": true,
|
|
3638
|
+
"content": {
|
|
3639
|
+
"application/json": {
|
|
3640
|
+
"schema": {
|
|
3641
|
+
"type": "object",
|
|
3642
|
+
"properties": {
|
|
3643
|
+
"phone": {
|
|
3644
|
+
"type": "string"
|
|
3645
|
+
},
|
|
3646
|
+
"isGroup": {
|
|
3647
|
+
"type": "boolean"
|
|
3648
|
+
},
|
|
3649
|
+
"messageid": {
|
|
3650
|
+
"type": "string"
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3653
|
+
},
|
|
3654
|
+
"examples": {
|
|
3655
|
+
"Default": {
|
|
3656
|
+
"value": {
|
|
3657
|
+
"phone": "5521999999999",
|
|
3658
|
+
"isGroup": false,
|
|
3659
|
+
"messageid": "<messageId>"
|
|
3660
|
+
}
|
|
3661
|
+
}
|
|
3662
|
+
}
|
|
3663
|
+
}
|
|
3664
|
+
}
|
|
3665
|
+
}
|
|
3350
3666
|
}
|
|
3351
3667
|
},
|
|
3352
3668
|
"/api/{session}/mark-unseen": {
|
|
3353
3669
|
"post": {
|
|
3354
3670
|
"tags": ["Messages"],
|
|
3355
3671
|
"description": "",
|
|
3672
|
+
"parameters": [
|
|
3673
|
+
{
|
|
3674
|
+
"name": "session",
|
|
3675
|
+
"in": "path",
|
|
3676
|
+
"required": true,
|
|
3677
|
+
"schema": {
|
|
3678
|
+
"type": "string",
|
|
3679
|
+
"example": "NERDWHATS_AMERICA"
|
|
3680
|
+
}
|
|
3681
|
+
}
|
|
3682
|
+
],
|
|
3683
|
+
"responses": {
|
|
3684
|
+
"200": {
|
|
3685
|
+
"description": "OK"
|
|
3686
|
+
},
|
|
3687
|
+
"500": {
|
|
3688
|
+
"description": "Internal Server Error"
|
|
3689
|
+
}
|
|
3690
|
+
},
|
|
3691
|
+
"security": [
|
|
3692
|
+
{
|
|
3693
|
+
"bearerAuth": []
|
|
3694
|
+
}
|
|
3695
|
+
],
|
|
3696
|
+
"requestBody": {
|
|
3697
|
+
"required": true,
|
|
3698
|
+
"content": {
|
|
3699
|
+
"application/json": {
|
|
3700
|
+
"schema": {
|
|
3701
|
+
"type": "object",
|
|
3702
|
+
"properties": {
|
|
3703
|
+
"phone": {
|
|
3704
|
+
"type": "string"
|
|
3705
|
+
},
|
|
3706
|
+
"isGroup": {
|
|
3707
|
+
"type": "boolean"
|
|
3708
|
+
}
|
|
3709
|
+
}
|
|
3710
|
+
},
|
|
3711
|
+
"examples": {
|
|
3712
|
+
"Default": {
|
|
3713
|
+
"value": {
|
|
3714
|
+
"phone": "5521999999999",
|
|
3715
|
+
"isGroup": false
|
|
3716
|
+
}
|
|
3717
|
+
}
|
|
3718
|
+
}
|
|
3719
|
+
}
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
}
|
|
3723
|
+
},
|
|
3724
|
+
"/api/{session}/pin-chat": {
|
|
3725
|
+
"post": {
|
|
3726
|
+
"tags": ["Chat"],
|
|
3727
|
+
"description": "",
|
|
3356
3728
|
"parameters": [
|
|
3357
3729
|
{
|
|
3358
3730
|
"name": "session",
|
|
@@ -3376,9 +3748,13 @@
|
|
|
3376
3748
|
"isGroup": {
|
|
3377
3749
|
"type": "boolean",
|
|
3378
3750
|
"example": false
|
|
3751
|
+
},
|
|
3752
|
+
"state": {
|
|
3753
|
+
"type": "boolean",
|
|
3754
|
+
"example": true
|
|
3379
3755
|
}
|
|
3380
3756
|
},
|
|
3381
|
-
"required": ["phone", "isGroup"]
|
|
3757
|
+
"required": ["phone", "isGroup", "state"]
|
|
3382
3758
|
}
|
|
3383
3759
|
}
|
|
3384
3760
|
],
|
|
@@ -3394,10 +3770,103 @@
|
|
|
3394
3770
|
{
|
|
3395
3771
|
"bearerAuth": []
|
|
3396
3772
|
}
|
|
3397
|
-
]
|
|
3773
|
+
],
|
|
3774
|
+
"requestBody": {
|
|
3775
|
+
"required": true,
|
|
3776
|
+
"content": {
|
|
3777
|
+
"application/json": {
|
|
3778
|
+
"schema": {
|
|
3779
|
+
"type": "object",
|
|
3780
|
+
"properties": {
|
|
3781
|
+
"phone": {
|
|
3782
|
+
"type": "string"
|
|
3783
|
+
},
|
|
3784
|
+
"isGroup": {
|
|
3785
|
+
"type": "boolean"
|
|
3786
|
+
},
|
|
3787
|
+
"state": {
|
|
3788
|
+
"type": "boolean"
|
|
3789
|
+
}
|
|
3790
|
+
}
|
|
3791
|
+
},
|
|
3792
|
+
"examples": {
|
|
3793
|
+
"Default": {
|
|
3794
|
+
"value": {
|
|
3795
|
+
"phone": "5521999999999",
|
|
3796
|
+
"state": true
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
}
|
|
3800
|
+
}
|
|
3801
|
+
}
|
|
3802
|
+
}
|
|
3398
3803
|
}
|
|
3399
3804
|
},
|
|
3400
|
-
"/api/{session}/
|
|
3805
|
+
"/api/{session}/contact-vcard": {
|
|
3806
|
+
"post": {
|
|
3807
|
+
"tags": ["Messages"],
|
|
3808
|
+
"description": "",
|
|
3809
|
+
"parameters": [
|
|
3810
|
+
{
|
|
3811
|
+
"name": "session",
|
|
3812
|
+
"in": "path",
|
|
3813
|
+
"required": true,
|
|
3814
|
+
"schema": {
|
|
3815
|
+
"type": "string",
|
|
3816
|
+
"example": "NERDWHATS_AMERICA"
|
|
3817
|
+
}
|
|
3818
|
+
}
|
|
3819
|
+
],
|
|
3820
|
+
"responses": {
|
|
3821
|
+
"200": {
|
|
3822
|
+
"description": "OK"
|
|
3823
|
+
},
|
|
3824
|
+
"500": {
|
|
3825
|
+
"description": "Internal Server Error"
|
|
3826
|
+
}
|
|
3827
|
+
},
|
|
3828
|
+
"security": [
|
|
3829
|
+
{
|
|
3830
|
+
"bearerAuth": []
|
|
3831
|
+
}
|
|
3832
|
+
],
|
|
3833
|
+
"requestBody": {
|
|
3834
|
+
"required": true,
|
|
3835
|
+
"content": {
|
|
3836
|
+
"application/json": {
|
|
3837
|
+
"schema": {
|
|
3838
|
+
"type": "object",
|
|
3839
|
+
"properties": {
|
|
3840
|
+
"phone": {
|
|
3841
|
+
"type": "string"
|
|
3842
|
+
},
|
|
3843
|
+
"isGroup": {
|
|
3844
|
+
"type": "boolean"
|
|
3845
|
+
},
|
|
3846
|
+
"name": {
|
|
3847
|
+
"type": "string"
|
|
3848
|
+
},
|
|
3849
|
+
"contactsId": {
|
|
3850
|
+
"type": "array"
|
|
3851
|
+
}
|
|
3852
|
+
}
|
|
3853
|
+
},
|
|
3854
|
+
"examples": {
|
|
3855
|
+
"Default": {
|
|
3856
|
+
"value": {
|
|
3857
|
+
"phone": "5521999999999",
|
|
3858
|
+
"isGroup": false,
|
|
3859
|
+
"name": "Name of contact",
|
|
3860
|
+
"contactsId": ["5521999999999"]
|
|
3861
|
+
}
|
|
3862
|
+
}
|
|
3863
|
+
}
|
|
3864
|
+
}
|
|
3865
|
+
}
|
|
3866
|
+
}
|
|
3867
|
+
}
|
|
3868
|
+
},
|
|
3869
|
+
"/api/{session}/send-mute": {
|
|
3401
3870
|
"post": {
|
|
3402
3871
|
"tags": ["Chat"],
|
|
3403
3872
|
"description": "",
|
|
@@ -3410,27 +3879,118 @@
|
|
|
3410
3879
|
"type": "string",
|
|
3411
3880
|
"example": "NERDWHATS_AMERICA"
|
|
3412
3881
|
}
|
|
3882
|
+
}
|
|
3883
|
+
],
|
|
3884
|
+
"responses": {
|
|
3885
|
+
"200": {
|
|
3886
|
+
"description": "OK"
|
|
3413
3887
|
},
|
|
3888
|
+
"500": {
|
|
3889
|
+
"description": "Internal Server Error"
|
|
3890
|
+
}
|
|
3891
|
+
},
|
|
3892
|
+
"security": [
|
|
3414
3893
|
{
|
|
3415
|
-
"
|
|
3416
|
-
|
|
3894
|
+
"bearerAuth": []
|
|
3895
|
+
}
|
|
3896
|
+
],
|
|
3897
|
+
"requestBody": {
|
|
3898
|
+
"required": true,
|
|
3899
|
+
"content": {
|
|
3900
|
+
"application/json": {
|
|
3901
|
+
"schema": {
|
|
3902
|
+
"type": "object",
|
|
3903
|
+
"properties": {
|
|
3904
|
+
"phone": {
|
|
3905
|
+
"type": "string"
|
|
3906
|
+
},
|
|
3907
|
+
"isGroup": {
|
|
3908
|
+
"type": "boolean"
|
|
3909
|
+
},
|
|
3910
|
+
"time": {
|
|
3911
|
+
"type": "number"
|
|
3912
|
+
},
|
|
3913
|
+
"type": {
|
|
3914
|
+
"type": "string"
|
|
3915
|
+
}
|
|
3916
|
+
}
|
|
3917
|
+
},
|
|
3918
|
+
"examples": {
|
|
3919
|
+
"Default": {
|
|
3920
|
+
"value": {
|
|
3921
|
+
"phone": "5521999999999",
|
|
3922
|
+
"isGroup": false,
|
|
3923
|
+
"time": 1,
|
|
3924
|
+
"type": "hours"
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3928
|
+
}
|
|
3929
|
+
}
|
|
3930
|
+
}
|
|
3931
|
+
}
|
|
3932
|
+
},
|
|
3933
|
+
"/api/{session}/send-seen": {
|
|
3934
|
+
"post": {
|
|
3935
|
+
"tags": ["Chat"],
|
|
3936
|
+
"description": "",
|
|
3937
|
+
"parameters": [
|
|
3938
|
+
{
|
|
3939
|
+
"name": "session",
|
|
3940
|
+
"in": "path",
|
|
3941
|
+
"required": true,
|
|
3417
3942
|
"schema": {
|
|
3418
|
-
"type": "
|
|
3419
|
-
"
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3943
|
+
"type": "string",
|
|
3944
|
+
"example": "NERDWHATS_AMERICA"
|
|
3945
|
+
}
|
|
3946
|
+
}
|
|
3947
|
+
],
|
|
3948
|
+
"responses": {},
|
|
3949
|
+
"security": [
|
|
3950
|
+
{
|
|
3951
|
+
"bearerAuth": []
|
|
3952
|
+
}
|
|
3953
|
+
],
|
|
3954
|
+
"requestBody": {
|
|
3955
|
+
"required": true,
|
|
3956
|
+
"content": {
|
|
3957
|
+
"application/json": {
|
|
3958
|
+
"schema": {
|
|
3959
|
+
"type": "object",
|
|
3960
|
+
"properties": {
|
|
3961
|
+
"phone": {
|
|
3962
|
+
"type": "string"
|
|
3963
|
+
},
|
|
3964
|
+
"isGroup": {
|
|
3965
|
+
"type": "boolean"
|
|
3966
|
+
}
|
|
3431
3967
|
}
|
|
3432
3968
|
},
|
|
3433
|
-
"
|
|
3969
|
+
"examples": {
|
|
3970
|
+
"Default": {
|
|
3971
|
+
"value": {
|
|
3972
|
+
"phone": "5521999999999",
|
|
3973
|
+
"isGroup": false
|
|
3974
|
+
}
|
|
3975
|
+
}
|
|
3976
|
+
}
|
|
3977
|
+
}
|
|
3978
|
+
}
|
|
3979
|
+
}
|
|
3980
|
+
}
|
|
3981
|
+
},
|
|
3982
|
+
"/api/{session}/chat-state": {
|
|
3983
|
+
"post": {
|
|
3984
|
+
"tags": ["Chat"],
|
|
3985
|
+
"description": "",
|
|
3986
|
+
"parameters": [
|
|
3987
|
+
{
|
|
3988
|
+
"name": "session",
|
|
3989
|
+
"in": "path",
|
|
3990
|
+
"required": true,
|
|
3991
|
+
"schema": {
|
|
3992
|
+
"type": "string",
|
|
3993
|
+
"example": "NERDWHATS_AMERICA"
|
|
3434
3994
|
}
|
|
3435
3995
|
}
|
|
3436
3996
|
],
|
|
@@ -3446,10 +4006,41 @@
|
|
|
3446
4006
|
{
|
|
3447
4007
|
"bearerAuth": []
|
|
3448
4008
|
}
|
|
3449
|
-
]
|
|
4009
|
+
],
|
|
4010
|
+
"requestBody": {
|
|
4011
|
+
"required": true,
|
|
4012
|
+
"content": {
|
|
4013
|
+
"application/json": {
|
|
4014
|
+
"schema": {
|
|
4015
|
+
"type": "object",
|
|
4016
|
+
"properties": {
|
|
4017
|
+
"phone": {
|
|
4018
|
+
"type": "string"
|
|
4019
|
+
},
|
|
4020
|
+
"isGroup": {
|
|
4021
|
+
"type": "boolean"
|
|
4022
|
+
},
|
|
4023
|
+
"chatstate": {
|
|
4024
|
+
"type": "string"
|
|
4025
|
+
}
|
|
4026
|
+
}
|
|
4027
|
+
},
|
|
4028
|
+
"examples": {
|
|
4029
|
+
"Default": {
|
|
4030
|
+
"value": {
|
|
4031
|
+
"phone": "5521999999999",
|
|
4032
|
+
"isGroup": false,
|
|
4033
|
+
"chatstate": "1"
|
|
4034
|
+
}
|
|
4035
|
+
}
|
|
4036
|
+
}
|
|
4037
|
+
}
|
|
4038
|
+
}
|
|
4039
|
+
},
|
|
4040
|
+
"deprecated": true
|
|
3450
4041
|
}
|
|
3451
4042
|
},
|
|
3452
|
-
"/api/{session}/
|
|
4043
|
+
"/api/{session}/temporary-messages": {
|
|
3453
4044
|
"post": {
|
|
3454
4045
|
"tags": ["Messages"],
|
|
3455
4046
|
"description": "",
|
|
@@ -3462,34 +4053,65 @@
|
|
|
3462
4053
|
"type": "string",
|
|
3463
4054
|
"example": "NERDWHATS_AMERICA"
|
|
3464
4055
|
}
|
|
4056
|
+
}
|
|
4057
|
+
],
|
|
4058
|
+
"responses": {
|
|
4059
|
+
"200": {
|
|
4060
|
+
"description": "OK"
|
|
3465
4061
|
},
|
|
4062
|
+
"500": {
|
|
4063
|
+
"description": "Internal Server Error"
|
|
4064
|
+
}
|
|
4065
|
+
},
|
|
4066
|
+
"security": [
|
|
3466
4067
|
{
|
|
3467
|
-
"
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
"
|
|
3477
|
-
"
|
|
3478
|
-
"example": false
|
|
3479
|
-
},
|
|
3480
|
-
"name": {
|
|
3481
|
-
"type": "string",
|
|
3482
|
-
"example": "Name of contact"
|
|
3483
|
-
},
|
|
3484
|
-
"contactsId": {
|
|
3485
|
-
"type": "array",
|
|
3486
|
-
"example": ["5521999999999"],
|
|
3487
|
-
"items": {
|
|
4068
|
+
"bearerAuth": []
|
|
4069
|
+
}
|
|
4070
|
+
],
|
|
4071
|
+
"requestBody": {
|
|
4072
|
+
"required": true,
|
|
4073
|
+
"content": {
|
|
4074
|
+
"application/json": {
|
|
4075
|
+
"schema": {
|
|
4076
|
+
"type": "object",
|
|
4077
|
+
"properties": {
|
|
4078
|
+
"phone": {
|
|
3488
4079
|
"type": "string"
|
|
4080
|
+
},
|
|
4081
|
+
"isGroup": {
|
|
4082
|
+
"type": "boolean"
|
|
4083
|
+
},
|
|
4084
|
+
"value": {
|
|
4085
|
+
"type": "boolean"
|
|
3489
4086
|
}
|
|
3490
4087
|
}
|
|
3491
4088
|
},
|
|
3492
|
-
"
|
|
4089
|
+
"examples": {
|
|
4090
|
+
"Default": {
|
|
4091
|
+
"value": {
|
|
4092
|
+
"phone": "5521999999999",
|
|
4093
|
+
"isGroup": false,
|
|
4094
|
+
"value": true
|
|
4095
|
+
}
|
|
4096
|
+
}
|
|
4097
|
+
}
|
|
4098
|
+
}
|
|
4099
|
+
}
|
|
4100
|
+
}
|
|
4101
|
+
}
|
|
4102
|
+
},
|
|
4103
|
+
"/api/{session}/typing": {
|
|
4104
|
+
"post": {
|
|
4105
|
+
"tags": ["Chat"],
|
|
4106
|
+
"description": "",
|
|
4107
|
+
"parameters": [
|
|
4108
|
+
{
|
|
4109
|
+
"name": "session",
|
|
4110
|
+
"in": "path",
|
|
4111
|
+
"required": true,
|
|
4112
|
+
"schema": {
|
|
4113
|
+
"type": "string",
|
|
4114
|
+
"example": "NERDWHATS_AMERICA"
|
|
3493
4115
|
}
|
|
3494
4116
|
}
|
|
3495
4117
|
],
|
|
@@ -3505,10 +4127,40 @@
|
|
|
3505
4127
|
{
|
|
3506
4128
|
"bearerAuth": []
|
|
3507
4129
|
}
|
|
3508
|
-
]
|
|
4130
|
+
],
|
|
4131
|
+
"requestBody": {
|
|
4132
|
+
"required": true,
|
|
4133
|
+
"content": {
|
|
4134
|
+
"application/json": {
|
|
4135
|
+
"schema": {
|
|
4136
|
+
"type": "object",
|
|
4137
|
+
"properties": {
|
|
4138
|
+
"phone": {
|
|
4139
|
+
"type": "string"
|
|
4140
|
+
},
|
|
4141
|
+
"isGroup": {
|
|
4142
|
+
"type": "boolean"
|
|
4143
|
+
},
|
|
4144
|
+
"value": {
|
|
4145
|
+
"type": "boolean"
|
|
4146
|
+
}
|
|
4147
|
+
}
|
|
4148
|
+
},
|
|
4149
|
+
"examples": {
|
|
4150
|
+
"Default": {
|
|
4151
|
+
"value": {
|
|
4152
|
+
"phone": "5521999999999",
|
|
4153
|
+
"isGroup": false,
|
|
4154
|
+
"value": true
|
|
4155
|
+
}
|
|
4156
|
+
}
|
|
4157
|
+
}
|
|
4158
|
+
}
|
|
4159
|
+
}
|
|
4160
|
+
}
|
|
3509
4161
|
}
|
|
3510
4162
|
},
|
|
3511
|
-
"/api/{session}/
|
|
4163
|
+
"/api/{session}/recording": {
|
|
3512
4164
|
"post": {
|
|
3513
4165
|
"tags": ["Chat"],
|
|
3514
4166
|
"description": "",
|
|
@@ -3518,35 +4170,145 @@
|
|
|
3518
4170
|
"in": "path",
|
|
3519
4171
|
"required": true,
|
|
3520
4172
|
"schema": {
|
|
3521
|
-
"type": "string",
|
|
3522
|
-
"example": "NERDWHATS_AMERICA"
|
|
4173
|
+
"type": "string",
|
|
4174
|
+
"example": "NERDWHATS_AMERICA"
|
|
4175
|
+
}
|
|
4176
|
+
}
|
|
4177
|
+
],
|
|
4178
|
+
"responses": {
|
|
4179
|
+
"200": {
|
|
4180
|
+
"description": "OK"
|
|
4181
|
+
},
|
|
4182
|
+
"500": {
|
|
4183
|
+
"description": "Internal Server Error"
|
|
4184
|
+
}
|
|
4185
|
+
},
|
|
4186
|
+
"security": [
|
|
4187
|
+
{
|
|
4188
|
+
"bearerAuth": []
|
|
4189
|
+
}
|
|
4190
|
+
],
|
|
4191
|
+
"requestBody": {
|
|
4192
|
+
"required": true,
|
|
4193
|
+
"content": {
|
|
4194
|
+
"application/json": {
|
|
4195
|
+
"schema": {
|
|
4196
|
+
"type": "object",
|
|
4197
|
+
"properties": {
|
|
4198
|
+
"phone": {
|
|
4199
|
+
"type": "string"
|
|
4200
|
+
},
|
|
4201
|
+
"isGroup": {
|
|
4202
|
+
"type": "boolean"
|
|
4203
|
+
},
|
|
4204
|
+
"duration": {
|
|
4205
|
+
"type": "number"
|
|
4206
|
+
},
|
|
4207
|
+
"value": {
|
|
4208
|
+
"type": "boolean"
|
|
4209
|
+
}
|
|
4210
|
+
}
|
|
4211
|
+
},
|
|
4212
|
+
"examples": {
|
|
4213
|
+
"Default": {
|
|
4214
|
+
"value": {
|
|
4215
|
+
"phone": "5521999999999",
|
|
4216
|
+
"isGroup": false,
|
|
4217
|
+
"duration": 5,
|
|
4218
|
+
"value": true
|
|
4219
|
+
}
|
|
4220
|
+
}
|
|
4221
|
+
}
|
|
4222
|
+
}
|
|
4223
|
+
}
|
|
4224
|
+
}
|
|
4225
|
+
}
|
|
4226
|
+
},
|
|
4227
|
+
"/api/{session}/star-message": {
|
|
4228
|
+
"post": {
|
|
4229
|
+
"tags": ["Messages"],
|
|
4230
|
+
"description": "",
|
|
4231
|
+
"parameters": [
|
|
4232
|
+
{
|
|
4233
|
+
"name": "session",
|
|
4234
|
+
"in": "path",
|
|
4235
|
+
"required": true,
|
|
4236
|
+
"schema": {
|
|
4237
|
+
"type": "string",
|
|
4238
|
+
"example": "NERDWHATS_AMERICA"
|
|
4239
|
+
}
|
|
4240
|
+
}
|
|
4241
|
+
],
|
|
4242
|
+
"responses": {
|
|
4243
|
+
"200": {
|
|
4244
|
+
"description": "OK"
|
|
4245
|
+
},
|
|
4246
|
+
"500": {
|
|
4247
|
+
"description": "Internal Server Error"
|
|
4248
|
+
}
|
|
4249
|
+
},
|
|
4250
|
+
"security": [
|
|
4251
|
+
{
|
|
4252
|
+
"bearerAuth": []
|
|
4253
|
+
}
|
|
4254
|
+
],
|
|
4255
|
+
"requestBody": {
|
|
4256
|
+
"required": true,
|
|
4257
|
+
"content": {
|
|
4258
|
+
"application/json": {
|
|
4259
|
+
"schema": {
|
|
4260
|
+
"type": "object",
|
|
4261
|
+
"properties": {
|
|
4262
|
+
"messageId": {
|
|
4263
|
+
"type": "string"
|
|
4264
|
+
},
|
|
4265
|
+
"star": {
|
|
4266
|
+
"type": "boolean"
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4269
|
+
},
|
|
4270
|
+
"examples": {
|
|
4271
|
+
"Default": {
|
|
4272
|
+
"value": {
|
|
4273
|
+
"messageId": "5521999999999",
|
|
4274
|
+
"star": true
|
|
4275
|
+
}
|
|
4276
|
+
}
|
|
4277
|
+
}
|
|
4278
|
+
}
|
|
4279
|
+
}
|
|
4280
|
+
}
|
|
4281
|
+
}
|
|
4282
|
+
},
|
|
4283
|
+
"/api/{session}/reactions/{id}": {
|
|
4284
|
+
"get": {
|
|
4285
|
+
"tags": ["Messages"],
|
|
4286
|
+
"description": "",
|
|
4287
|
+
"parameters": [
|
|
4288
|
+
{
|
|
4289
|
+
"name": "session",
|
|
4290
|
+
"in": "path",
|
|
4291
|
+
"required": true,
|
|
4292
|
+
"schema": {
|
|
4293
|
+
"type": "string",
|
|
4294
|
+
"example": "NERDWHATS_AMERICA"
|
|
4295
|
+
}
|
|
4296
|
+
},
|
|
4297
|
+
{
|
|
4298
|
+
"name": "id",
|
|
4299
|
+
"in": "path",
|
|
4300
|
+
"required": true,
|
|
4301
|
+
"schema": {
|
|
4302
|
+
"type": "string"
|
|
3523
4303
|
}
|
|
3524
4304
|
},
|
|
3525
4305
|
{
|
|
3526
|
-
"name": "
|
|
3527
|
-
"in": "body",
|
|
4306
|
+
"name": "messageId",
|
|
3528
4307
|
"schema": {
|
|
3529
|
-
"type": "
|
|
3530
|
-
"
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
"example": "5521999999999"
|
|
3534
|
-
},
|
|
3535
|
-
"isGroup": {
|
|
3536
|
-
"type": "boolean",
|
|
3537
|
-
"example": false
|
|
3538
|
-
},
|
|
3539
|
-
"time": {
|
|
3540
|
-
"type": "string",
|
|
3541
|
-
"example": "1"
|
|
3542
|
-
},
|
|
3543
|
-
"type": {
|
|
3544
|
-
"type": "string",
|
|
3545
|
-
"example": "hours"
|
|
3546
|
-
}
|
|
3547
|
-
},
|
|
3548
|
-
"required": ["phone", "isGroup", "time", "type"]
|
|
3549
|
-
}
|
|
4308
|
+
"type": "string",
|
|
4309
|
+
"example": "<messageId>"
|
|
4310
|
+
},
|
|
4311
|
+
"in": "query"
|
|
3550
4312
|
}
|
|
3551
4313
|
],
|
|
3552
4314
|
"responses": {
|
|
@@ -3564,9 +4326,9 @@
|
|
|
3564
4326
|
]
|
|
3565
4327
|
}
|
|
3566
4328
|
},
|
|
3567
|
-
"/api/{session}/
|
|
3568
|
-
"
|
|
3569
|
-
"tags": ["
|
|
4329
|
+
"/api/{session}/votes/{id}": {
|
|
4330
|
+
"get": {
|
|
4331
|
+
"tags": ["Messages"],
|
|
3570
4332
|
"description": "",
|
|
3571
4333
|
"parameters": [
|
|
3572
4334
|
{
|
|
@@ -3579,25 +4341,30 @@
|
|
|
3579
4341
|
}
|
|
3580
4342
|
},
|
|
3581
4343
|
{
|
|
3582
|
-
"name": "
|
|
3583
|
-
"in": "
|
|
4344
|
+
"name": "id",
|
|
4345
|
+
"in": "path",
|
|
4346
|
+
"required": true,
|
|
3584
4347
|
"schema": {
|
|
3585
|
-
"type": "
|
|
3586
|
-
"properties": {
|
|
3587
|
-
"phone": {
|
|
3588
|
-
"type": "string",
|
|
3589
|
-
"example": "5521999999999"
|
|
3590
|
-
},
|
|
3591
|
-
"isGroup": {
|
|
3592
|
-
"type": "boolean",
|
|
3593
|
-
"example": false
|
|
3594
|
-
}
|
|
3595
|
-
},
|
|
3596
|
-
"required": ["phone", "isGroup"]
|
|
4348
|
+
"type": "string"
|
|
3597
4349
|
}
|
|
4350
|
+
},
|
|
4351
|
+
{
|
|
4352
|
+
"name": "messageId",
|
|
4353
|
+
"schema": {
|
|
4354
|
+
"type": "string",
|
|
4355
|
+
"example": "<messageId>"
|
|
4356
|
+
},
|
|
4357
|
+
"in": "query"
|
|
3598
4358
|
}
|
|
3599
4359
|
],
|
|
3600
|
-
"responses": {
|
|
4360
|
+
"responses": {
|
|
4361
|
+
"200": {
|
|
4362
|
+
"description": "OK"
|
|
4363
|
+
},
|
|
4364
|
+
"500": {
|
|
4365
|
+
"description": "Internal Server Error"
|
|
4366
|
+
}
|
|
4367
|
+
},
|
|
3601
4368
|
"security": [
|
|
3602
4369
|
{
|
|
3603
4370
|
"bearerAuth": []
|
|
@@ -3605,9 +4372,9 @@
|
|
|
3605
4372
|
]
|
|
3606
4373
|
}
|
|
3607
4374
|
},
|
|
3608
|
-
"/api/{session}/
|
|
4375
|
+
"/api/{session}/reject-call": {
|
|
3609
4376
|
"post": {
|
|
3610
|
-
"tags": ["
|
|
4377
|
+
"tags": ["Misc"],
|
|
3611
4378
|
"description": "",
|
|
3612
4379
|
"parameters": [
|
|
3613
4380
|
{
|
|
@@ -3618,28 +4385,6 @@
|
|
|
3618
4385
|
"type": "string",
|
|
3619
4386
|
"example": "NERDWHATS_AMERICA"
|
|
3620
4387
|
}
|
|
3621
|
-
},
|
|
3622
|
-
{
|
|
3623
|
-
"name": "obj",
|
|
3624
|
-
"in": "body",
|
|
3625
|
-
"schema": {
|
|
3626
|
-
"type": "object",
|
|
3627
|
-
"properties": {
|
|
3628
|
-
"phone": {
|
|
3629
|
-
"type": "string",
|
|
3630
|
-
"example": "5521999999999"
|
|
3631
|
-
},
|
|
3632
|
-
"isGroup": {
|
|
3633
|
-
"type": "boolean",
|
|
3634
|
-
"example": false
|
|
3635
|
-
},
|
|
3636
|
-
"chatstate": {
|
|
3637
|
-
"type": "string",
|
|
3638
|
-
"example": "1"
|
|
3639
|
-
}
|
|
3640
|
-
},
|
|
3641
|
-
"required": ["phone", "isGroup", "chatstate"]
|
|
3642
|
-
}
|
|
3643
4388
|
}
|
|
3644
4389
|
],
|
|
3645
4390
|
"responses": {
|
|
@@ -3655,12 +4400,33 @@
|
|
|
3655
4400
|
"bearerAuth": []
|
|
3656
4401
|
}
|
|
3657
4402
|
],
|
|
3658
|
-
"
|
|
4403
|
+
"requestBody": {
|
|
4404
|
+
"required": true,
|
|
4405
|
+
"content": {
|
|
4406
|
+
"application/json": {
|
|
4407
|
+
"schema": {
|
|
4408
|
+
"type": "object",
|
|
4409
|
+
"properties": {
|
|
4410
|
+
"callId": {
|
|
4411
|
+
"type": "string"
|
|
4412
|
+
}
|
|
4413
|
+
}
|
|
4414
|
+
},
|
|
4415
|
+
"examples": {
|
|
4416
|
+
"Default": {
|
|
4417
|
+
"value": {
|
|
4418
|
+
"callId": "<callid>"
|
|
4419
|
+
}
|
|
4420
|
+
}
|
|
4421
|
+
}
|
|
4422
|
+
}
|
|
4423
|
+
}
|
|
4424
|
+
}
|
|
3659
4425
|
}
|
|
3660
4426
|
},
|
|
3661
|
-
"/api/{session}/
|
|
3662
|
-
"
|
|
3663
|
-
"tags": ["
|
|
4427
|
+
"/api/{session}/get-products": {
|
|
4428
|
+
"get": {
|
|
4429
|
+
"tags": ["Catalog & Bussiness"],
|
|
3664
4430
|
"description": "",
|
|
3665
4431
|
"parameters": [
|
|
3666
4432
|
{
|
|
@@ -3673,31 +4439,28 @@
|
|
|
3673
4439
|
}
|
|
3674
4440
|
},
|
|
3675
4441
|
{
|
|
3676
|
-
"name": "
|
|
3677
|
-
"in": "
|
|
4442
|
+
"name": "phone",
|
|
4443
|
+
"in": "query",
|
|
3678
4444
|
"schema": {
|
|
3679
|
-
"type": "
|
|
3680
|
-
"
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
"value": {
|
|
3690
|
-
"type": "boolean",
|
|
3691
|
-
"example": true
|
|
3692
|
-
}
|
|
3693
|
-
},
|
|
3694
|
-
"required": ["phone", "isGroup", "value"]
|
|
4445
|
+
"type": "string",
|
|
4446
|
+
"example": "5521999999999"
|
|
4447
|
+
}
|
|
4448
|
+
},
|
|
4449
|
+
{
|
|
4450
|
+
"name": "qnt",
|
|
4451
|
+
"in": "query",
|
|
4452
|
+
"schema": {
|
|
4453
|
+
"type": "string",
|
|
4454
|
+
"example": "10"
|
|
3695
4455
|
}
|
|
3696
4456
|
}
|
|
3697
4457
|
],
|
|
3698
4458
|
"responses": {
|
|
3699
|
-
"
|
|
3700
|
-
"description": "
|
|
4459
|
+
"201": {
|
|
4460
|
+
"description": "Created"
|
|
4461
|
+
},
|
|
4462
|
+
"401": {
|
|
4463
|
+
"description": "Unauthorized"
|
|
3701
4464
|
},
|
|
3702
4465
|
"500": {
|
|
3703
4466
|
"description": "Internal Server Error"
|
|
@@ -3710,9 +4473,9 @@
|
|
|
3710
4473
|
]
|
|
3711
4474
|
}
|
|
3712
4475
|
},
|
|
3713
|
-
"/api/{session}/
|
|
3714
|
-
"
|
|
3715
|
-
"tags": ["
|
|
4476
|
+
"/api/{session}/get-product-by-id": {
|
|
4477
|
+
"get": {
|
|
4478
|
+
"tags": ["Catalog & Bussiness"],
|
|
3716
4479
|
"description": "",
|
|
3717
4480
|
"parameters": [
|
|
3718
4481
|
{
|
|
@@ -3725,31 +4488,28 @@
|
|
|
3725
4488
|
}
|
|
3726
4489
|
},
|
|
3727
4490
|
{
|
|
3728
|
-
"name": "
|
|
3729
|
-
"in": "
|
|
4491
|
+
"name": "phone",
|
|
4492
|
+
"in": "query",
|
|
3730
4493
|
"schema": {
|
|
3731
|
-
"type": "
|
|
3732
|
-
"
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
"value": {
|
|
3742
|
-
"type": "boolean",
|
|
3743
|
-
"example": true
|
|
3744
|
-
}
|
|
3745
|
-
},
|
|
3746
|
-
"required": ["phone", "isGroup", "value"]
|
|
4494
|
+
"type": "string",
|
|
4495
|
+
"example": "5521999999999"
|
|
4496
|
+
}
|
|
4497
|
+
},
|
|
4498
|
+
{
|
|
4499
|
+
"name": "id",
|
|
4500
|
+
"in": "query",
|
|
4501
|
+
"schema": {
|
|
4502
|
+
"type": "string",
|
|
4503
|
+
"example": "10"
|
|
3747
4504
|
}
|
|
3748
4505
|
}
|
|
3749
4506
|
],
|
|
3750
4507
|
"responses": {
|
|
3751
|
-
"
|
|
3752
|
-
"description": "
|
|
4508
|
+
"201": {
|
|
4509
|
+
"description": "Created"
|
|
4510
|
+
},
|
|
4511
|
+
"401": {
|
|
4512
|
+
"description": "Unauthorized"
|
|
3753
4513
|
},
|
|
3754
4514
|
"500": {
|
|
3755
4515
|
"description": "Internal Server Error"
|
|
@@ -3762,9 +4522,9 @@
|
|
|
3762
4522
|
]
|
|
3763
4523
|
}
|
|
3764
4524
|
},
|
|
3765
|
-
"/api/{session}/
|
|
4525
|
+
"/api/{session}/add-product": {
|
|
3766
4526
|
"post": {
|
|
3767
|
-
"tags": ["
|
|
4527
|
+
"tags": ["Catalog & Bussiness"],
|
|
3768
4528
|
"description": "",
|
|
3769
4529
|
"parameters": [
|
|
3770
4530
|
{
|
|
@@ -3782,30 +4542,53 @@
|
|
|
3782
4542
|
"schema": {
|
|
3783
4543
|
"type": "object",
|
|
3784
4544
|
"properties": {
|
|
3785
|
-
"
|
|
4545
|
+
"name": {
|
|
3786
4546
|
"type": "string",
|
|
3787
|
-
"example": "
|
|
4547
|
+
"example": "Product name"
|
|
3788
4548
|
},
|
|
3789
|
-
"
|
|
3790
|
-
"type": "
|
|
3791
|
-
"example":
|
|
4549
|
+
"image": {
|
|
4550
|
+
"type": "string",
|
|
4551
|
+
"example": "<base64_string>"
|
|
3792
4552
|
},
|
|
3793
|
-
"
|
|
4553
|
+
"description": {
|
|
3794
4554
|
"type": "string",
|
|
3795
|
-
"example": "
|
|
4555
|
+
"example": "Description for your product"
|
|
3796
4556
|
},
|
|
3797
|
-
"
|
|
3798
|
-
"type": "
|
|
3799
|
-
"example":
|
|
4557
|
+
"price": {
|
|
4558
|
+
"type": "string",
|
|
4559
|
+
"example": "8890"
|
|
4560
|
+
},
|
|
4561
|
+
"url": {
|
|
4562
|
+
"type": "string",
|
|
4563
|
+
"example": "http://link_for_your_product.com"
|
|
4564
|
+
},
|
|
4565
|
+
"retailerId": {
|
|
4566
|
+
"type": "string",
|
|
4567
|
+
"example": "SKU001"
|
|
4568
|
+
},
|
|
4569
|
+
"currency": {
|
|
4570
|
+
"type": "string",
|
|
4571
|
+
"example": "BRL"
|
|
3800
4572
|
}
|
|
3801
4573
|
},
|
|
3802
|
-
"required": [
|
|
4574
|
+
"required": [
|
|
4575
|
+
"name",
|
|
4576
|
+
"image",
|
|
4577
|
+
"description",
|
|
4578
|
+
"price",
|
|
4579
|
+
"url",
|
|
4580
|
+
"retailerId",
|
|
4581
|
+
"currency"
|
|
4582
|
+
]
|
|
3803
4583
|
}
|
|
3804
4584
|
}
|
|
3805
4585
|
],
|
|
3806
4586
|
"responses": {
|
|
3807
|
-
"
|
|
3808
|
-
"description": "
|
|
4587
|
+
"201": {
|
|
4588
|
+
"description": "Created"
|
|
4589
|
+
},
|
|
4590
|
+
"401": {
|
|
4591
|
+
"description": "Unauthorized"
|
|
3809
4592
|
},
|
|
3810
4593
|
"500": {
|
|
3811
4594
|
"description": "Internal Server Error"
|
|
@@ -3818,9 +4601,9 @@
|
|
|
3818
4601
|
]
|
|
3819
4602
|
}
|
|
3820
4603
|
},
|
|
3821
|
-
"/api/{session}/
|
|
4604
|
+
"/api/{session}/edit-product": {
|
|
3822
4605
|
"post": {
|
|
3823
|
-
"tags": ["
|
|
4606
|
+
"tags": ["Catalog & Bussiness"],
|
|
3824
4607
|
"description": "",
|
|
3825
4608
|
"parameters": [
|
|
3826
4609
|
{
|
|
@@ -3838,22 +4621,31 @@
|
|
|
3838
4621
|
"schema": {
|
|
3839
4622
|
"type": "object",
|
|
3840
4623
|
"properties": {
|
|
3841
|
-
"
|
|
4624
|
+
"id": {
|
|
3842
4625
|
"type": "string",
|
|
3843
|
-
"example": "<
|
|
4626
|
+
"example": "<product_id>"
|
|
3844
4627
|
},
|
|
3845
|
-
"
|
|
3846
|
-
"type": "
|
|
3847
|
-
"
|
|
4628
|
+
"options": {
|
|
4629
|
+
"type": "object",
|
|
4630
|
+
"properties": {
|
|
4631
|
+
"name": {
|
|
4632
|
+
"type": "string",
|
|
4633
|
+
"example": "New name for product"
|
|
4634
|
+
}
|
|
4635
|
+
},
|
|
4636
|
+
"required": ["name"]
|
|
3848
4637
|
}
|
|
3849
4638
|
},
|
|
3850
|
-
"required": ["
|
|
4639
|
+
"required": ["id", "options"]
|
|
3851
4640
|
}
|
|
3852
4641
|
}
|
|
3853
4642
|
],
|
|
3854
4643
|
"responses": {
|
|
3855
|
-
"
|
|
3856
|
-
"description": "
|
|
4644
|
+
"201": {
|
|
4645
|
+
"description": "Created"
|
|
4646
|
+
},
|
|
4647
|
+
"401": {
|
|
4648
|
+
"description": "Unauthorized"
|
|
3857
4649
|
},
|
|
3858
4650
|
"500": {
|
|
3859
4651
|
"description": "Internal Server Error"
|
|
@@ -3866,9 +4658,9 @@
|
|
|
3866
4658
|
]
|
|
3867
4659
|
}
|
|
3868
4660
|
},
|
|
3869
|
-
"/api/{session}/
|
|
3870
|
-
"
|
|
3871
|
-
"tags": ["
|
|
4661
|
+
"/api/{session}/del-products": {
|
|
4662
|
+
"post": {
|
|
4663
|
+
"tags": ["Catalog & Bussiness"],
|
|
3872
4664
|
"description": "",
|
|
3873
4665
|
"parameters": [
|
|
3874
4666
|
{
|
|
@@ -3881,25 +4673,26 @@
|
|
|
3881
4673
|
}
|
|
3882
4674
|
},
|
|
3883
4675
|
{
|
|
3884
|
-
"name": "
|
|
3885
|
-
"in": "
|
|
3886
|
-
"required": true,
|
|
4676
|
+
"name": "obj",
|
|
4677
|
+
"in": "body",
|
|
3887
4678
|
"schema": {
|
|
3888
|
-
"type": "
|
|
4679
|
+
"type": "object",
|
|
4680
|
+
"properties": {
|
|
4681
|
+
"id": {
|
|
4682
|
+
"type": "string",
|
|
4683
|
+
"example": "<product_id>"
|
|
4684
|
+
}
|
|
4685
|
+
},
|
|
4686
|
+
"required": ["id"]
|
|
3889
4687
|
}
|
|
3890
|
-
},
|
|
3891
|
-
{
|
|
3892
|
-
"name": "messageId",
|
|
3893
|
-
"schema": {
|
|
3894
|
-
"type": "string",
|
|
3895
|
-
"example": "<messageId>"
|
|
3896
|
-
},
|
|
3897
|
-
"in": "query"
|
|
3898
4688
|
}
|
|
3899
4689
|
],
|
|
3900
4690
|
"responses": {
|
|
3901
|
-
"
|
|
3902
|
-
"description": "
|
|
4691
|
+
"201": {
|
|
4692
|
+
"description": "Created"
|
|
4693
|
+
},
|
|
4694
|
+
"401": {
|
|
4695
|
+
"description": "Unauthorized"
|
|
3903
4696
|
},
|
|
3904
4697
|
"500": {
|
|
3905
4698
|
"description": "Internal Server Error"
|
|
@@ -3912,9 +4705,9 @@
|
|
|
3912
4705
|
]
|
|
3913
4706
|
}
|
|
3914
4707
|
},
|
|
3915
|
-
"/api/{session}/
|
|
3916
|
-
"
|
|
3917
|
-
"tags": ["
|
|
4708
|
+
"/api/{session}/change-product-image": {
|
|
4709
|
+
"post": {
|
|
4710
|
+
"tags": ["Catalog & Bussiness"],
|
|
3918
4711
|
"description": "",
|
|
3919
4712
|
"parameters": [
|
|
3920
4713
|
{
|
|
@@ -3927,25 +4720,30 @@
|
|
|
3927
4720
|
}
|
|
3928
4721
|
},
|
|
3929
4722
|
{
|
|
3930
|
-
"name": "
|
|
3931
|
-
"in": "
|
|
3932
|
-
"required": true,
|
|
4723
|
+
"name": "obj",
|
|
4724
|
+
"in": "body",
|
|
3933
4725
|
"schema": {
|
|
3934
|
-
"type": "
|
|
4726
|
+
"type": "object",
|
|
4727
|
+
"properties": {
|
|
4728
|
+
"id": {
|
|
4729
|
+
"type": "string",
|
|
4730
|
+
"example": "<product_id>"
|
|
4731
|
+
},
|
|
4732
|
+
"base64": {
|
|
4733
|
+
"type": "string",
|
|
4734
|
+
"example": "<base64_string>"
|
|
4735
|
+
}
|
|
4736
|
+
},
|
|
4737
|
+
"required": ["id", "base64"]
|
|
3935
4738
|
}
|
|
3936
|
-
},
|
|
3937
|
-
{
|
|
3938
|
-
"name": "messageId",
|
|
3939
|
-
"schema": {
|
|
3940
|
-
"type": "string",
|
|
3941
|
-
"example": "<messageId>"
|
|
3942
|
-
},
|
|
3943
|
-
"in": "query"
|
|
3944
4739
|
}
|
|
3945
4740
|
],
|
|
3946
4741
|
"responses": {
|
|
3947
|
-
"
|
|
3948
|
-
"description": "
|
|
4742
|
+
"201": {
|
|
4743
|
+
"description": "Created"
|
|
4744
|
+
},
|
|
4745
|
+
"401": {
|
|
4746
|
+
"description": "Unauthorized"
|
|
3949
4747
|
},
|
|
3950
4748
|
"500": {
|
|
3951
4749
|
"description": "Internal Server Error"
|
|
@@ -3958,9 +4756,9 @@
|
|
|
3958
4756
|
]
|
|
3959
4757
|
}
|
|
3960
4758
|
},
|
|
3961
|
-
"/api/{session}/
|
|
4759
|
+
"/api/{session}/add-product-image": {
|
|
3962
4760
|
"post": {
|
|
3963
|
-
"tags": ["
|
|
4761
|
+
"tags": ["Catalog & Bussiness"],
|
|
3964
4762
|
"description": "",
|
|
3965
4763
|
"parameters": [
|
|
3966
4764
|
{
|
|
@@ -3978,18 +4776,25 @@
|
|
|
3978
4776
|
"schema": {
|
|
3979
4777
|
"type": "object",
|
|
3980
4778
|
"properties": {
|
|
3981
|
-
"
|
|
4779
|
+
"id": {
|
|
4780
|
+
"type": "string",
|
|
4781
|
+
"example": "<product_id>"
|
|
4782
|
+
},
|
|
4783
|
+
"base64": {
|
|
3982
4784
|
"type": "string",
|
|
3983
|
-
"example": "<
|
|
4785
|
+
"example": "<base64_string>"
|
|
3984
4786
|
}
|
|
3985
4787
|
},
|
|
3986
|
-
"required": ["
|
|
4788
|
+
"required": ["id", "base64"]
|
|
3987
4789
|
}
|
|
3988
4790
|
}
|
|
3989
4791
|
],
|
|
3990
4792
|
"responses": {
|
|
3991
|
-
"
|
|
3992
|
-
"description": "
|
|
4793
|
+
"201": {
|
|
4794
|
+
"description": "Created"
|
|
4795
|
+
},
|
|
4796
|
+
"401": {
|
|
4797
|
+
"description": "Unauthorized"
|
|
3993
4798
|
},
|
|
3994
4799
|
"500": {
|
|
3995
4800
|
"description": "Internal Server Error"
|
|
@@ -4002,8 +4807,8 @@
|
|
|
4002
4807
|
]
|
|
4003
4808
|
}
|
|
4004
4809
|
},
|
|
4005
|
-
"/api/{session}/
|
|
4006
|
-
"
|
|
4810
|
+
"/api/{session}/remove-product-image": {
|
|
4811
|
+
"post": {
|
|
4007
4812
|
"tags": ["Catalog & Bussiness"],
|
|
4008
4813
|
"description": "",
|
|
4009
4814
|
"parameters": [
|
|
@@ -4017,19 +4822,21 @@
|
|
|
4017
4822
|
}
|
|
4018
4823
|
},
|
|
4019
4824
|
{
|
|
4020
|
-
"name": "
|
|
4021
|
-
"in": "
|
|
4022
|
-
"schema": {
|
|
4023
|
-
"type": "string",
|
|
4024
|
-
"example": "5521999999999"
|
|
4025
|
-
}
|
|
4026
|
-
},
|
|
4027
|
-
{
|
|
4028
|
-
"name": "qnt",
|
|
4029
|
-
"in": "query",
|
|
4825
|
+
"name": "obj",
|
|
4826
|
+
"in": "body",
|
|
4030
4827
|
"schema": {
|
|
4031
|
-
"type": "
|
|
4032
|
-
"
|
|
4828
|
+
"type": "object",
|
|
4829
|
+
"properties": {
|
|
4830
|
+
"id": {
|
|
4831
|
+
"type": "string",
|
|
4832
|
+
"example": "<product_id>"
|
|
4833
|
+
},
|
|
4834
|
+
"index": {
|
|
4835
|
+
"type": "string",
|
|
4836
|
+
"example": "1"
|
|
4837
|
+
}
|
|
4838
|
+
},
|
|
4839
|
+
"required": ["id", "index"]
|
|
4033
4840
|
}
|
|
4034
4841
|
}
|
|
4035
4842
|
],
|
|
@@ -4051,7 +4858,7 @@
|
|
|
4051
4858
|
]
|
|
4052
4859
|
}
|
|
4053
4860
|
},
|
|
4054
|
-
"/api/{session}/get-
|
|
4861
|
+
"/api/{session}/get-collections": {
|
|
4055
4862
|
"get": {
|
|
4056
4863
|
"tags": ["Catalog & Bussiness"],
|
|
4057
4864
|
"description": "",
|
|
@@ -4067,19 +4874,27 @@
|
|
|
4067
4874
|
},
|
|
4068
4875
|
{
|
|
4069
4876
|
"name": "phone",
|
|
4070
|
-
"in": "query",
|
|
4071
4877
|
"schema": {
|
|
4072
4878
|
"type": "string",
|
|
4073
4879
|
"example": "5521999999999"
|
|
4074
|
-
}
|
|
4880
|
+
},
|
|
4881
|
+
"in": "query"
|
|
4075
4882
|
},
|
|
4076
4883
|
{
|
|
4077
|
-
"name": "
|
|
4078
|
-
"in": "query",
|
|
4884
|
+
"name": "qnt",
|
|
4079
4885
|
"schema": {
|
|
4080
4886
|
"type": "string",
|
|
4081
4887
|
"example": "10"
|
|
4082
|
-
}
|
|
4888
|
+
},
|
|
4889
|
+
"in": "query"
|
|
4890
|
+
},
|
|
4891
|
+
{
|
|
4892
|
+
"name": "max",
|
|
4893
|
+
"schema": {
|
|
4894
|
+
"type": "string",
|
|
4895
|
+
"example": "10"
|
|
4896
|
+
},
|
|
4897
|
+
"in": "query"
|
|
4083
4898
|
}
|
|
4084
4899
|
],
|
|
4085
4900
|
"responses": {
|
|
@@ -4100,7 +4915,7 @@
|
|
|
4100
4915
|
]
|
|
4101
4916
|
}
|
|
4102
4917
|
},
|
|
4103
|
-
"/api/{session}/
|
|
4918
|
+
"/api/{session}/create-collection": {
|
|
4104
4919
|
"post": {
|
|
4105
4920
|
"tags": ["Catalog & Bussiness"],
|
|
4106
4921
|
"description": "",
|
|
@@ -4122,42 +4937,17 @@
|
|
|
4122
4937
|
"properties": {
|
|
4123
4938
|
"name": {
|
|
4124
4939
|
"type": "string",
|
|
4125
|
-
"example": "
|
|
4126
|
-
},
|
|
4127
|
-
"image": {
|
|
4128
|
-
"type": "string",
|
|
4129
|
-
"example": "<base64_string>"
|
|
4130
|
-
},
|
|
4131
|
-
"description": {
|
|
4132
|
-
"type": "string",
|
|
4133
|
-
"example": "Description for your product"
|
|
4134
|
-
},
|
|
4135
|
-
"price": {
|
|
4136
|
-
"type": "string",
|
|
4137
|
-
"example": "8890"
|
|
4138
|
-
},
|
|
4139
|
-
"url": {
|
|
4140
|
-
"type": "string",
|
|
4141
|
-
"example": "http://link_for_your_product.com"
|
|
4142
|
-
},
|
|
4143
|
-
"retailerId": {
|
|
4144
|
-
"type": "string",
|
|
4145
|
-
"example": "SKU001"
|
|
4940
|
+
"example": "Collection name"
|
|
4146
4941
|
},
|
|
4147
|
-
"
|
|
4148
|
-
"type": "
|
|
4149
|
-
"example": "
|
|
4942
|
+
"products": {
|
|
4943
|
+
"type": "array",
|
|
4944
|
+
"example": ["<id_product1>", "<id_product2>"],
|
|
4945
|
+
"items": {
|
|
4946
|
+
"type": "string"
|
|
4947
|
+
}
|
|
4150
4948
|
}
|
|
4151
4949
|
},
|
|
4152
|
-
"required": [
|
|
4153
|
-
"name",
|
|
4154
|
-
"image",
|
|
4155
|
-
"description",
|
|
4156
|
-
"price",
|
|
4157
|
-
"url",
|
|
4158
|
-
"retailerId",
|
|
4159
|
-
"currency"
|
|
4160
|
-
]
|
|
4950
|
+
"required": ["name", "products"]
|
|
4161
4951
|
}
|
|
4162
4952
|
}
|
|
4163
4953
|
],
|
|
@@ -4179,7 +4969,7 @@
|
|
|
4179
4969
|
]
|
|
4180
4970
|
}
|
|
4181
4971
|
},
|
|
4182
|
-
"/api/{session}/edit-
|
|
4972
|
+
"/api/{session}/edit-collection": {
|
|
4183
4973
|
"post": {
|
|
4184
4974
|
"tags": ["Catalog & Bussiness"],
|
|
4185
4975
|
"description": "",
|
|
@@ -4201,17 +4991,16 @@
|
|
|
4201
4991
|
"properties": {
|
|
4202
4992
|
"id": {
|
|
4203
4993
|
"type": "string",
|
|
4204
|
-
"example": "<
|
|
4994
|
+
"example": "<id_product>"
|
|
4205
4995
|
},
|
|
4206
4996
|
"options": {
|
|
4207
4997
|
"type": "object",
|
|
4208
4998
|
"properties": {
|
|
4209
4999
|
"name": {
|
|
4210
5000
|
"type": "string",
|
|
4211
|
-
"example": "New name for
|
|
5001
|
+
"example": "New name for collection"
|
|
4212
5002
|
}
|
|
4213
|
-
}
|
|
4214
|
-
"required": ["name"]
|
|
5003
|
+
}
|
|
4215
5004
|
}
|
|
4216
5005
|
},
|
|
4217
5006
|
"required": ["id", "options"]
|
|
@@ -4236,54 +5025,7 @@
|
|
|
4236
5025
|
]
|
|
4237
5026
|
}
|
|
4238
5027
|
},
|
|
4239
|
-
"/api/{session}/del-
|
|
4240
|
-
"post": {
|
|
4241
|
-
"tags": ["Catalog & Bussiness"],
|
|
4242
|
-
"description": "",
|
|
4243
|
-
"parameters": [
|
|
4244
|
-
{
|
|
4245
|
-
"name": "session",
|
|
4246
|
-
"in": "path",
|
|
4247
|
-
"required": true,
|
|
4248
|
-
"schema": {
|
|
4249
|
-
"type": "string",
|
|
4250
|
-
"example": "NERDWHATS_AMERICA"
|
|
4251
|
-
}
|
|
4252
|
-
},
|
|
4253
|
-
{
|
|
4254
|
-
"name": "obj",
|
|
4255
|
-
"in": "body",
|
|
4256
|
-
"schema": {
|
|
4257
|
-
"type": "object",
|
|
4258
|
-
"properties": {
|
|
4259
|
-
"id": {
|
|
4260
|
-
"type": "string",
|
|
4261
|
-
"example": "<product_id>"
|
|
4262
|
-
}
|
|
4263
|
-
},
|
|
4264
|
-
"required": ["id"]
|
|
4265
|
-
}
|
|
4266
|
-
}
|
|
4267
|
-
],
|
|
4268
|
-
"responses": {
|
|
4269
|
-
"201": {
|
|
4270
|
-
"description": "Created"
|
|
4271
|
-
},
|
|
4272
|
-
"401": {
|
|
4273
|
-
"description": "Unauthorized"
|
|
4274
|
-
},
|
|
4275
|
-
"500": {
|
|
4276
|
-
"description": "Internal Server Error"
|
|
4277
|
-
}
|
|
4278
|
-
},
|
|
4279
|
-
"security": [
|
|
4280
|
-
{
|
|
4281
|
-
"bearerAuth": []
|
|
4282
|
-
}
|
|
4283
|
-
]
|
|
4284
|
-
}
|
|
4285
|
-
},
|
|
4286
|
-
"/api/{session}/change-product-image": {
|
|
5028
|
+
"/api/{session}/del-collection": {
|
|
4287
5029
|
"post": {
|
|
4288
5030
|
"tags": ["Catalog & Bussiness"],
|
|
4289
5031
|
"description": "",
|
|
@@ -4305,14 +5047,10 @@
|
|
|
4305
5047
|
"properties": {
|
|
4306
5048
|
"id": {
|
|
4307
5049
|
"type": "string",
|
|
4308
|
-
"example": "<
|
|
4309
|
-
},
|
|
4310
|
-
"base64": {
|
|
4311
|
-
"type": "string",
|
|
4312
|
-
"example": "<base64_string>"
|
|
5050
|
+
"example": "<id_product>"
|
|
4313
5051
|
}
|
|
4314
5052
|
},
|
|
4315
|
-
"required": ["id"
|
|
5053
|
+
"required": ["id"]
|
|
4316
5054
|
}
|
|
4317
5055
|
}
|
|
4318
5056
|
],
|
|
@@ -4334,9 +5072,9 @@
|
|
|
4334
5072
|
]
|
|
4335
5073
|
}
|
|
4336
5074
|
},
|
|
4337
|
-
"/api/{session}/
|
|
5075
|
+
"/api/{session}/send-link-catalog": {
|
|
4338
5076
|
"post": {
|
|
4339
|
-
"tags": ["
|
|
5077
|
+
"tags": ["Messages"],
|
|
4340
5078
|
"description": "",
|
|
4341
5079
|
"parameters": [
|
|
4342
5080
|
{
|
|
@@ -4354,22 +5092,25 @@
|
|
|
4354
5092
|
"schema": {
|
|
4355
5093
|
"type": "object",
|
|
4356
5094
|
"properties": {
|
|
4357
|
-
"
|
|
4358
|
-
"type": "
|
|
4359
|
-
"example": "<
|
|
5095
|
+
"phones": {
|
|
5096
|
+
"type": "array",
|
|
5097
|
+
"example": ["<array_phone_id"],
|
|
5098
|
+
"items": {
|
|
5099
|
+
"type": "string"
|
|
5100
|
+
}
|
|
4360
5101
|
},
|
|
4361
|
-
"
|
|
5102
|
+
"message": {
|
|
4362
5103
|
"type": "string",
|
|
4363
|
-
"example": "
|
|
5104
|
+
"example": "Message"
|
|
4364
5105
|
}
|
|
4365
5106
|
},
|
|
4366
|
-
"required": ["
|
|
5107
|
+
"required": ["phones", "message"]
|
|
4367
5108
|
}
|
|
4368
5109
|
}
|
|
4369
5110
|
],
|
|
4370
5111
|
"responses": {
|
|
4371
|
-
"
|
|
4372
|
-
"description": "
|
|
5112
|
+
"200": {
|
|
5113
|
+
"description": "OK"
|
|
4373
5114
|
},
|
|
4374
5115
|
"401": {
|
|
4375
5116
|
"description": "Unauthorized"
|
|
@@ -4385,7 +5126,7 @@
|
|
|
4385
5126
|
]
|
|
4386
5127
|
}
|
|
4387
5128
|
},
|
|
4388
|
-
"/api/{session}/
|
|
5129
|
+
"/api/{session}/set-product-visibility": {
|
|
4389
5130
|
"post": {
|
|
4390
5131
|
"tags": ["Catalog & Bussiness"],
|
|
4391
5132
|
"description": "",
|
|
@@ -4407,14 +5148,14 @@
|
|
|
4407
5148
|
"properties": {
|
|
4408
5149
|
"id": {
|
|
4409
5150
|
"type": "string",
|
|
4410
|
-
"example": "<
|
|
5151
|
+
"example": "<id_product>"
|
|
4411
5152
|
},
|
|
4412
|
-
"
|
|
4413
|
-
"type": "
|
|
4414
|
-
"example":
|
|
5153
|
+
"value": {
|
|
5154
|
+
"type": "boolean",
|
|
5155
|
+
"example": false
|
|
4415
5156
|
}
|
|
4416
5157
|
},
|
|
4417
|
-
"required": ["id", "
|
|
5158
|
+
"required": ["id", "value"]
|
|
4418
5159
|
}
|
|
4419
5160
|
}
|
|
4420
5161
|
],
|
|
@@ -4436,8 +5177,8 @@
|
|
|
4436
5177
|
]
|
|
4437
5178
|
}
|
|
4438
5179
|
},
|
|
4439
|
-
"/api/{session}/
|
|
4440
|
-
"
|
|
5180
|
+
"/api/{session}/set-cart-enabled": {
|
|
5181
|
+
"post": {
|
|
4441
5182
|
"tags": ["Catalog & Bussiness"],
|
|
4442
5183
|
"description": "",
|
|
4443
5184
|
"parameters": [
|
|
@@ -4451,28 +5192,18 @@
|
|
|
4451
5192
|
}
|
|
4452
5193
|
},
|
|
4453
5194
|
{
|
|
4454
|
-
"name": "
|
|
4455
|
-
"
|
|
4456
|
-
"type": "string",
|
|
4457
|
-
"example": "5521999999999"
|
|
4458
|
-
},
|
|
4459
|
-
"in": "query"
|
|
4460
|
-
},
|
|
4461
|
-
{
|
|
4462
|
-
"name": "qnt",
|
|
4463
|
-
"schema": {
|
|
4464
|
-
"type": "string",
|
|
4465
|
-
"example": "10"
|
|
4466
|
-
},
|
|
4467
|
-
"in": "query"
|
|
4468
|
-
},
|
|
4469
|
-
{
|
|
4470
|
-
"name": "max",
|
|
5195
|
+
"name": "obj",
|
|
5196
|
+
"in": "body",
|
|
4471
5197
|
"schema": {
|
|
4472
|
-
"type": "
|
|
4473
|
-
"
|
|
4474
|
-
|
|
4475
|
-
|
|
5198
|
+
"type": "object",
|
|
5199
|
+
"properties": {
|
|
5200
|
+
"enabled": {
|
|
5201
|
+
"type": "boolean",
|
|
5202
|
+
"example": true
|
|
5203
|
+
}
|
|
5204
|
+
},
|
|
5205
|
+
"required": ["enabled"]
|
|
5206
|
+
}
|
|
4476
5207
|
}
|
|
4477
5208
|
],
|
|
4478
5209
|
"responses": {
|
|
@@ -4493,9 +5224,9 @@
|
|
|
4493
5224
|
]
|
|
4494
5225
|
}
|
|
4495
5226
|
},
|
|
4496
|
-
"/api/{session}/
|
|
5227
|
+
"/api/{session}/send-text-storie": {
|
|
4497
5228
|
"post": {
|
|
4498
|
-
"tags": ["
|
|
5229
|
+
"tags": ["Status Stories"],
|
|
4499
5230
|
"description": "",
|
|
4500
5231
|
"parameters": [
|
|
4501
5232
|
{
|
|
@@ -4513,31 +5244,34 @@
|
|
|
4513
5244
|
"schema": {
|
|
4514
5245
|
"type": "object",
|
|
4515
5246
|
"properties": {
|
|
4516
|
-
"
|
|
5247
|
+
"text": {
|
|
4517
5248
|
"type": "string",
|
|
4518
|
-
"example": "
|
|
5249
|
+
"example": "My new storie"
|
|
4519
5250
|
},
|
|
4520
|
-
"
|
|
4521
|
-
"type": "
|
|
4522
|
-
"
|
|
4523
|
-
|
|
4524
|
-
|
|
5251
|
+
"options": {
|
|
5252
|
+
"type": "object",
|
|
5253
|
+
"properties": {
|
|
5254
|
+
"backgroundColor": {
|
|
5255
|
+
"type": "string",
|
|
5256
|
+
"example": "#0275d8"
|
|
5257
|
+
},
|
|
5258
|
+
"font": {
|
|
5259
|
+
"type": "number",
|
|
5260
|
+
"example": 2
|
|
5261
|
+
}
|
|
4525
5262
|
}
|
|
4526
5263
|
}
|
|
4527
5264
|
},
|
|
4528
|
-
"required": ["
|
|
5265
|
+
"required": ["text", "options"]
|
|
4529
5266
|
}
|
|
4530
5267
|
}
|
|
4531
5268
|
],
|
|
4532
5269
|
"responses": {
|
|
4533
|
-
"
|
|
4534
|
-
"description": "
|
|
5270
|
+
"400": {
|
|
5271
|
+
"description": "Bad Request"
|
|
4535
5272
|
},
|
|
4536
5273
|
"401": {
|
|
4537
5274
|
"description": "Unauthorized"
|
|
4538
|
-
},
|
|
4539
|
-
"500": {
|
|
4540
|
-
"description": "Internal Server Error"
|
|
4541
5275
|
}
|
|
4542
5276
|
},
|
|
4543
5277
|
"security": [
|
|
@@ -4547,9 +5281,9 @@
|
|
|
4547
5281
|
]
|
|
4548
5282
|
}
|
|
4549
5283
|
},
|
|
4550
|
-
"/api/{session}/
|
|
5284
|
+
"/api/{session}/send-image-storie": {
|
|
4551
5285
|
"post": {
|
|
4552
|
-
"tags": ["
|
|
5286
|
+
"tags": ["Status Stories"],
|
|
4553
5287
|
"description": "",
|
|
4554
5288
|
"parameters": [
|
|
4555
5289
|
{
|
|
@@ -4567,33 +5301,21 @@
|
|
|
4567
5301
|
"schema": {
|
|
4568
5302
|
"type": "object",
|
|
4569
5303
|
"properties": {
|
|
4570
|
-
"
|
|
5304
|
+
"path": {
|
|
4571
5305
|
"type": "string",
|
|
4572
|
-
"example": "
|
|
4573
|
-
},
|
|
4574
|
-
"options": {
|
|
4575
|
-
"type": "object",
|
|
4576
|
-
"properties": {
|
|
4577
|
-
"name": {
|
|
4578
|
-
"type": "string",
|
|
4579
|
-
"example": "New name for collection"
|
|
4580
|
-
}
|
|
4581
|
-
}
|
|
5306
|
+
"example": "Path of your image"
|
|
4582
5307
|
}
|
|
4583
5308
|
},
|
|
4584
|
-
"required": ["
|
|
5309
|
+
"required": ["path"]
|
|
4585
5310
|
}
|
|
4586
5311
|
}
|
|
4587
5312
|
],
|
|
4588
5313
|
"responses": {
|
|
4589
|
-
"
|
|
4590
|
-
"description": "
|
|
5314
|
+
"400": {
|
|
5315
|
+
"description": "Bad Request"
|
|
4591
5316
|
},
|
|
4592
5317
|
"401": {
|
|
4593
5318
|
"description": "Unauthorized"
|
|
4594
|
-
},
|
|
4595
|
-
"500": {
|
|
4596
|
-
"description": "Internal Server Error"
|
|
4597
5319
|
}
|
|
4598
5320
|
},
|
|
4599
5321
|
"security": [
|
|
@@ -4603,9 +5325,9 @@
|
|
|
4603
5325
|
]
|
|
4604
5326
|
}
|
|
4605
5327
|
},
|
|
4606
|
-
"/api/{session}/
|
|
5328
|
+
"/api/{session}/send-video-storie": {
|
|
4607
5329
|
"post": {
|
|
4608
|
-
"tags": ["
|
|
5330
|
+
"tags": ["Status Stories"],
|
|
4609
5331
|
"description": "",
|
|
4610
5332
|
"parameters": [
|
|
4611
5333
|
{
|
|
@@ -4623,24 +5345,21 @@
|
|
|
4623
5345
|
"schema": {
|
|
4624
5346
|
"type": "object",
|
|
4625
5347
|
"properties": {
|
|
4626
|
-
"
|
|
5348
|
+
"path": {
|
|
4627
5349
|
"type": "string",
|
|
4628
|
-
"example": "
|
|
5350
|
+
"example": "Path of your video"
|
|
4629
5351
|
}
|
|
4630
5352
|
},
|
|
4631
|
-
"required": ["
|
|
5353
|
+
"required": ["path"]
|
|
4632
5354
|
}
|
|
4633
5355
|
}
|
|
4634
5356
|
],
|
|
4635
5357
|
"responses": {
|
|
4636
|
-
"
|
|
4637
|
-
"description": "
|
|
5358
|
+
"400": {
|
|
5359
|
+
"description": "Bad Request"
|
|
4638
5360
|
},
|
|
4639
5361
|
"401": {
|
|
4640
5362
|
"description": "Unauthorized"
|
|
4641
|
-
},
|
|
4642
|
-
"500": {
|
|
4643
|
-
"description": "Internal Server Error"
|
|
4644
5363
|
}
|
|
4645
5364
|
},
|
|
4646
5365
|
"security": [
|
|
@@ -4650,9 +5369,9 @@
|
|
|
4650
5369
|
]
|
|
4651
5370
|
}
|
|
4652
5371
|
},
|
|
4653
|
-
"/api/{session}/
|
|
5372
|
+
"/api/{session}/add-new-label": {
|
|
4654
5373
|
"post": {
|
|
4655
|
-
"tags": ["
|
|
5374
|
+
"tags": ["Labels"],
|
|
4656
5375
|
"description": "",
|
|
4657
5376
|
"parameters": [
|
|
4658
5377
|
{
|
|
@@ -4670,25 +5389,27 @@
|
|
|
4670
5389
|
"schema": {
|
|
4671
5390
|
"type": "object",
|
|
4672
5391
|
"properties": {
|
|
4673
|
-
"
|
|
4674
|
-
"type": "array",
|
|
4675
|
-
"example": ["<array_phone_id"],
|
|
4676
|
-
"items": {
|
|
4677
|
-
"type": "string"
|
|
4678
|
-
}
|
|
4679
|
-
},
|
|
4680
|
-
"message": {
|
|
5392
|
+
"name": {
|
|
4681
5393
|
"type": "string",
|
|
4682
|
-
"example": "
|
|
5394
|
+
"example": "Name of your label"
|
|
5395
|
+
},
|
|
5396
|
+
"options": {
|
|
5397
|
+
"type": "object",
|
|
5398
|
+
"properties": {
|
|
5399
|
+
"labelColor": {
|
|
5400
|
+
"type": "number",
|
|
5401
|
+
"example": 4292849392
|
|
5402
|
+
}
|
|
5403
|
+
}
|
|
4683
5404
|
}
|
|
4684
5405
|
},
|
|
4685
|
-
"required": ["
|
|
5406
|
+
"required": ["name", "options"]
|
|
4686
5407
|
}
|
|
4687
5408
|
}
|
|
4688
5409
|
],
|
|
4689
5410
|
"responses": {
|
|
4690
|
-
"
|
|
4691
|
-
"description": "
|
|
5411
|
+
"201": {
|
|
5412
|
+
"description": "Created"
|
|
4692
5413
|
},
|
|
4693
5414
|
"401": {
|
|
4694
5415
|
"description": "Unauthorized"
|
|
@@ -4704,9 +5425,9 @@
|
|
|
4704
5425
|
]
|
|
4705
5426
|
}
|
|
4706
5427
|
},
|
|
4707
|
-
"/api/{session}/
|
|
5428
|
+
"/api/{session}/add-or-remove-label": {
|
|
4708
5429
|
"post": {
|
|
4709
|
-
"tags": ["
|
|
5430
|
+
"tags": ["Labels"],
|
|
4710
5431
|
"description": "",
|
|
4711
5432
|
"parameters": [
|
|
4712
5433
|
{
|
|
@@ -4724,16 +5445,31 @@
|
|
|
4724
5445
|
"schema": {
|
|
4725
5446
|
"type": "object",
|
|
4726
5447
|
"properties": {
|
|
4727
|
-
"
|
|
4728
|
-
"type": "
|
|
4729
|
-
"example": "
|
|
5448
|
+
"chatIds": {
|
|
5449
|
+
"type": "array",
|
|
5450
|
+
"example": ["5521999999999"],
|
|
5451
|
+
"items": {
|
|
5452
|
+
"type": "string"
|
|
5453
|
+
}
|
|
4730
5454
|
},
|
|
4731
|
-
"
|
|
4732
|
-
"type": "
|
|
4733
|
-
"
|
|
5455
|
+
"options": {
|
|
5456
|
+
"type": "array",
|
|
5457
|
+
"items": {
|
|
5458
|
+
"type": "object",
|
|
5459
|
+
"properties": {
|
|
5460
|
+
"labelId": {
|
|
5461
|
+
"type": "string",
|
|
5462
|
+
"example": "75"
|
|
5463
|
+
},
|
|
5464
|
+
"type": {
|
|
5465
|
+
"type": "string",
|
|
5466
|
+
"example": "remove"
|
|
5467
|
+
}
|
|
5468
|
+
}
|
|
5469
|
+
}
|
|
4734
5470
|
}
|
|
4735
5471
|
},
|
|
4736
|
-
"required": ["
|
|
5472
|
+
"required": ["chatIds", "options"]
|
|
4737
5473
|
}
|
|
4738
5474
|
}
|
|
4739
5475
|
],
|
|
@@ -4755,9 +5491,9 @@
|
|
|
4755
5491
|
]
|
|
4756
5492
|
}
|
|
4757
5493
|
},
|
|
4758
|
-
"/api/{session}/
|
|
4759
|
-
"
|
|
4760
|
-
"tags": ["
|
|
5494
|
+
"/api/{session}/get-all-labels": {
|
|
5495
|
+
"get": {
|
|
5496
|
+
"tags": ["Labels"],
|
|
4761
5497
|
"description": "",
|
|
4762
5498
|
"parameters": [
|
|
4763
5499
|
{
|
|
@@ -4768,19 +5504,35 @@
|
|
|
4768
5504
|
"type": "string",
|
|
4769
5505
|
"example": "NERDWHATS_AMERICA"
|
|
4770
5506
|
}
|
|
5507
|
+
}
|
|
5508
|
+
],
|
|
5509
|
+
"responses": {
|
|
5510
|
+
"201": {
|
|
5511
|
+
"description": "Created"
|
|
4771
5512
|
},
|
|
5513
|
+
"500": {
|
|
5514
|
+
"description": "Internal Server Error"
|
|
5515
|
+
}
|
|
5516
|
+
},
|
|
5517
|
+
"security": [
|
|
4772
5518
|
{
|
|
4773
|
-
"
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
5519
|
+
"bearerAuth": []
|
|
5520
|
+
}
|
|
5521
|
+
]
|
|
5522
|
+
}
|
|
5523
|
+
},
|
|
5524
|
+
"/api/{session}/delete-all-labels": {
|
|
5525
|
+
"put": {
|
|
5526
|
+
"tags": ["Labels"],
|
|
5527
|
+
"description": "",
|
|
5528
|
+
"parameters": [
|
|
5529
|
+
{
|
|
5530
|
+
"name": "session",
|
|
5531
|
+
"in": "path",
|
|
5532
|
+
"required": true,
|
|
5533
|
+
"schema": {
|
|
5534
|
+
"type": "string",
|
|
5535
|
+
"example": "NERDWHATS_AMERICA"
|
|
4784
5536
|
}
|
|
4785
5537
|
}
|
|
4786
5538
|
],
|
|
@@ -4788,9 +5540,6 @@
|
|
|
4788
5540
|
"201": {
|
|
4789
5541
|
"description": "Created"
|
|
4790
5542
|
},
|
|
4791
|
-
"401": {
|
|
4792
|
-
"description": "Unauthorized"
|
|
4793
|
-
},
|
|
4794
5543
|
"500": {
|
|
4795
5544
|
"description": "Internal Server Error"
|
|
4796
5545
|
}
|
|
@@ -4802,9 +5551,9 @@
|
|
|
4802
5551
|
]
|
|
4803
5552
|
}
|
|
4804
5553
|
},
|
|
4805
|
-
"/api/{session}/
|
|
4806
|
-
"
|
|
4807
|
-
"tags": ["
|
|
5554
|
+
"/api/{session}/delete-label/{id}": {
|
|
5555
|
+
"put": {
|
|
5556
|
+
"tags": ["Labels"],
|
|
4808
5557
|
"description": "",
|
|
4809
5558
|
"parameters": [
|
|
4810
5559
|
{
|
|
@@ -4817,39 +5566,21 @@
|
|
|
4817
5566
|
}
|
|
4818
5567
|
},
|
|
4819
5568
|
{
|
|
4820
|
-
"name": "
|
|
4821
|
-
"in": "
|
|
5569
|
+
"name": "id",
|
|
5570
|
+
"in": "path",
|
|
5571
|
+
"required": true,
|
|
4822
5572
|
"schema": {
|
|
4823
|
-
"type": "
|
|
4824
|
-
"
|
|
4825
|
-
"text": {
|
|
4826
|
-
"type": "string",
|
|
4827
|
-
"example": "My new storie"
|
|
4828
|
-
},
|
|
4829
|
-
"options": {
|
|
4830
|
-
"type": "object",
|
|
4831
|
-
"properties": {
|
|
4832
|
-
"backgroundColor": {
|
|
4833
|
-
"type": "string",
|
|
4834
|
-
"example": "#0275d8"
|
|
4835
|
-
},
|
|
4836
|
-
"font": {
|
|
4837
|
-
"type": "number",
|
|
4838
|
-
"example": 2
|
|
4839
|
-
}
|
|
4840
|
-
}
|
|
4841
|
-
}
|
|
4842
|
-
},
|
|
4843
|
-
"required": ["text", "options"]
|
|
5573
|
+
"type": "string",
|
|
5574
|
+
"example": "<labelId>"
|
|
4844
5575
|
}
|
|
4845
5576
|
}
|
|
4846
5577
|
],
|
|
4847
5578
|
"responses": {
|
|
4848
|
-
"
|
|
4849
|
-
"description": "
|
|
5579
|
+
"201": {
|
|
5580
|
+
"description": "Created"
|
|
4850
5581
|
},
|
|
4851
|
-
"
|
|
4852
|
-
"description": "
|
|
5582
|
+
"500": {
|
|
5583
|
+
"description": "Internal Server Error"
|
|
4853
5584
|
}
|
|
4854
5585
|
},
|
|
4855
5586
|
"security": [
|
|
@@ -4859,9 +5590,9 @@
|
|
|
4859
5590
|
]
|
|
4860
5591
|
}
|
|
4861
5592
|
},
|
|
4862
|
-
"/api/{session}/
|
|
4863
|
-
"
|
|
4864
|
-
"tags": ["
|
|
5593
|
+
"/api/{session}/check-number-status/{phone}": {
|
|
5594
|
+
"get": {
|
|
5595
|
+
"tags": ["Misc"],
|
|
4865
5596
|
"description": "",
|
|
4866
5597
|
"parameters": [
|
|
4867
5598
|
{
|
|
@@ -4874,26 +5605,21 @@
|
|
|
4874
5605
|
}
|
|
4875
5606
|
},
|
|
4876
5607
|
{
|
|
4877
|
-
"name": "
|
|
4878
|
-
"in": "
|
|
5608
|
+
"name": "phone",
|
|
5609
|
+
"in": "path",
|
|
5610
|
+
"required": true,
|
|
4879
5611
|
"schema": {
|
|
4880
|
-
"type": "
|
|
4881
|
-
"
|
|
4882
|
-
"path": {
|
|
4883
|
-
"type": "string",
|
|
4884
|
-
"example": "Path of your image"
|
|
4885
|
-
}
|
|
4886
|
-
},
|
|
4887
|
-
"required": ["path"]
|
|
5612
|
+
"type": "string",
|
|
5613
|
+
"example": "5521999999999"
|
|
4888
5614
|
}
|
|
4889
5615
|
}
|
|
4890
5616
|
],
|
|
4891
5617
|
"responses": {
|
|
4892
|
-
"
|
|
4893
|
-
"description": "
|
|
5618
|
+
"200": {
|
|
5619
|
+
"description": "OK"
|
|
4894
5620
|
},
|
|
4895
|
-
"
|
|
4896
|
-
"description": "
|
|
5621
|
+
"500": {
|
|
5622
|
+
"description": "Internal Server Error"
|
|
4897
5623
|
}
|
|
4898
5624
|
},
|
|
4899
5625
|
"security": [
|
|
@@ -4903,9 +5629,25 @@
|
|
|
4903
5629
|
]
|
|
4904
5630
|
}
|
|
4905
5631
|
},
|
|
4906
|
-
"/api/{session}/
|
|
4907
|
-
"
|
|
4908
|
-
"
|
|
5632
|
+
"/api/{session}/all-contacts": {
|
|
5633
|
+
"get": {
|
|
5634
|
+
"description": "",
|
|
5635
|
+
"parameters": [
|
|
5636
|
+
{
|
|
5637
|
+
"name": "session",
|
|
5638
|
+
"in": "path",
|
|
5639
|
+
"required": true,
|
|
5640
|
+
"schema": {
|
|
5641
|
+
"type": "string"
|
|
5642
|
+
}
|
|
5643
|
+
}
|
|
5644
|
+
],
|
|
5645
|
+
"responses": {}
|
|
5646
|
+
}
|
|
5647
|
+
},
|
|
5648
|
+
"/api/{session}/contact/{phone}": {
|
|
5649
|
+
"get": {
|
|
5650
|
+
"tags": ["Chat"],
|
|
4909
5651
|
"description": "",
|
|
4910
5652
|
"parameters": [
|
|
4911
5653
|
{
|
|
@@ -4918,26 +5660,21 @@
|
|
|
4918
5660
|
}
|
|
4919
5661
|
},
|
|
4920
5662
|
{
|
|
4921
|
-
"name": "
|
|
4922
|
-
"in": "
|
|
5663
|
+
"name": "phone",
|
|
5664
|
+
"in": "path",
|
|
5665
|
+
"required": true,
|
|
4923
5666
|
"schema": {
|
|
4924
|
-
"type": "
|
|
4925
|
-
"
|
|
4926
|
-
"path": {
|
|
4927
|
-
"type": "string",
|
|
4928
|
-
"example": "Path of your video"
|
|
4929
|
-
}
|
|
4930
|
-
},
|
|
4931
|
-
"required": ["path"]
|
|
5667
|
+
"type": "string",
|
|
5668
|
+
"example": "5521999999999"
|
|
4932
5669
|
}
|
|
4933
5670
|
}
|
|
4934
5671
|
],
|
|
4935
5672
|
"responses": {
|
|
4936
|
-
"
|
|
4937
|
-
"description": "
|
|
5673
|
+
"200": {
|
|
5674
|
+
"description": "OK"
|
|
4938
5675
|
},
|
|
4939
|
-
"
|
|
4940
|
-
"description": "
|
|
5676
|
+
"500": {
|
|
5677
|
+
"description": "Internal Server Error"
|
|
4941
5678
|
}
|
|
4942
5679
|
},
|
|
4943
5680
|
"security": [
|
|
@@ -4947,9 +5684,9 @@
|
|
|
4947
5684
|
]
|
|
4948
5685
|
}
|
|
4949
5686
|
},
|
|
4950
|
-
"/api/{session}/
|
|
4951
|
-
"
|
|
4952
|
-
"tags": ["
|
|
5687
|
+
"/api/{session}/profile/{phone}": {
|
|
5688
|
+
"get": {
|
|
5689
|
+
"tags": ["Chat"],
|
|
4953
5690
|
"description": "",
|
|
4954
5691
|
"parameters": [
|
|
4955
5692
|
{
|
|
@@ -4962,35 +5699,18 @@
|
|
|
4962
5699
|
}
|
|
4963
5700
|
},
|
|
4964
5701
|
{
|
|
4965
|
-
"name": "
|
|
4966
|
-
"in": "
|
|
5702
|
+
"name": "phone",
|
|
5703
|
+
"in": "path",
|
|
5704
|
+
"required": true,
|
|
4967
5705
|
"schema": {
|
|
4968
|
-
"type": "
|
|
4969
|
-
"
|
|
4970
|
-
"name": {
|
|
4971
|
-
"type": "string",
|
|
4972
|
-
"example": "Name of your label"
|
|
4973
|
-
},
|
|
4974
|
-
"options": {
|
|
4975
|
-
"type": "object",
|
|
4976
|
-
"properties": {
|
|
4977
|
-
"labelColor": {
|
|
4978
|
-
"type": "number",
|
|
4979
|
-
"example": 4292849392
|
|
4980
|
-
}
|
|
4981
|
-
}
|
|
4982
|
-
}
|
|
4983
|
-
},
|
|
4984
|
-
"required": ["name", "options"]
|
|
5706
|
+
"type": "string",
|
|
5707
|
+
"example": "5521999999999"
|
|
4985
5708
|
}
|
|
4986
5709
|
}
|
|
4987
5710
|
],
|
|
4988
5711
|
"responses": {
|
|
4989
|
-
"
|
|
4990
|
-
"description": "
|
|
4991
|
-
},
|
|
4992
|
-
"401": {
|
|
4993
|
-
"description": "Unauthorized"
|
|
5712
|
+
"200": {
|
|
5713
|
+
"description": "OK"
|
|
4994
5714
|
},
|
|
4995
5715
|
"500": {
|
|
4996
5716
|
"description": "Internal Server Error"
|
|
@@ -5000,12 +5720,13 @@
|
|
|
5000
5720
|
{
|
|
5001
5721
|
"bearerAuth": []
|
|
5002
5722
|
}
|
|
5003
|
-
]
|
|
5723
|
+
],
|
|
5724
|
+
"deprecated": true
|
|
5004
5725
|
}
|
|
5005
5726
|
},
|
|
5006
|
-
"/api/{session}/
|
|
5007
|
-
"
|
|
5008
|
-
"tags": ["
|
|
5727
|
+
"/api/{session}/profile-pic/{phone}": {
|
|
5728
|
+
"get": {
|
|
5729
|
+
"tags": ["Contact"],
|
|
5009
5730
|
"description": "",
|
|
5010
5731
|
"parameters": [
|
|
5011
5732
|
{
|
|
@@ -5018,45 +5739,18 @@
|
|
|
5018
5739
|
}
|
|
5019
5740
|
},
|
|
5020
5741
|
{
|
|
5021
|
-
"name": "
|
|
5022
|
-
"in": "
|
|
5742
|
+
"name": "phone",
|
|
5743
|
+
"in": "path",
|
|
5744
|
+
"required": true,
|
|
5023
5745
|
"schema": {
|
|
5024
|
-
"type": "
|
|
5025
|
-
"
|
|
5026
|
-
"chatIds": {
|
|
5027
|
-
"type": "array",
|
|
5028
|
-
"example": ["5521999999999"],
|
|
5029
|
-
"items": {
|
|
5030
|
-
"type": "string"
|
|
5031
|
-
}
|
|
5032
|
-
},
|
|
5033
|
-
"options": {
|
|
5034
|
-
"type": "array",
|
|
5035
|
-
"items": {
|
|
5036
|
-
"type": "object",
|
|
5037
|
-
"properties": {
|
|
5038
|
-
"labelId": {
|
|
5039
|
-
"type": "string",
|
|
5040
|
-
"example": "75"
|
|
5041
|
-
},
|
|
5042
|
-
"type": {
|
|
5043
|
-
"type": "string",
|
|
5044
|
-
"example": "remove"
|
|
5045
|
-
}
|
|
5046
|
-
}
|
|
5047
|
-
}
|
|
5048
|
-
}
|
|
5049
|
-
},
|
|
5050
|
-
"required": ["chatIds", "options"]
|
|
5746
|
+
"type": "string",
|
|
5747
|
+
"example": "5521999999999"
|
|
5051
5748
|
}
|
|
5052
5749
|
}
|
|
5053
5750
|
],
|
|
5054
5751
|
"responses": {
|
|
5055
|
-
"
|
|
5056
|
-
"description": "
|
|
5057
|
-
},
|
|
5058
|
-
"401": {
|
|
5059
|
-
"description": "Unauthorized"
|
|
5752
|
+
"200": {
|
|
5753
|
+
"description": "OK"
|
|
5060
5754
|
},
|
|
5061
5755
|
"500": {
|
|
5062
5756
|
"description": "Internal Server Error"
|
|
@@ -5069,9 +5763,9 @@
|
|
|
5069
5763
|
]
|
|
5070
5764
|
}
|
|
5071
5765
|
},
|
|
5072
|
-
"/api/{session}/
|
|
5766
|
+
"/api/{session}/profile-status/{phone}": {
|
|
5073
5767
|
"get": {
|
|
5074
|
-
"tags": ["
|
|
5768
|
+
"tags": ["Contact"],
|
|
5075
5769
|
"description": "",
|
|
5076
5770
|
"parameters": [
|
|
5077
5771
|
{
|
|
@@ -5082,11 +5776,20 @@
|
|
|
5082
5776
|
"type": "string",
|
|
5083
5777
|
"example": "NERDWHATS_AMERICA"
|
|
5084
5778
|
}
|
|
5779
|
+
},
|
|
5780
|
+
{
|
|
5781
|
+
"name": "phone",
|
|
5782
|
+
"in": "path",
|
|
5783
|
+
"required": true,
|
|
5784
|
+
"schema": {
|
|
5785
|
+
"type": "string",
|
|
5786
|
+
"example": "5521999999999"
|
|
5787
|
+
}
|
|
5085
5788
|
}
|
|
5086
5789
|
],
|
|
5087
5790
|
"responses": {
|
|
5088
|
-
"
|
|
5089
|
-
"description": "
|
|
5791
|
+
"200": {
|
|
5792
|
+
"description": "OK"
|
|
5090
5793
|
},
|
|
5091
5794
|
"500": {
|
|
5092
5795
|
"description": "Internal Server Error"
|
|
@@ -5099,9 +5802,9 @@
|
|
|
5099
5802
|
]
|
|
5100
5803
|
}
|
|
5101
5804
|
},
|
|
5102
|
-
"/api/{session}/
|
|
5103
|
-
"
|
|
5104
|
-
"tags": ["
|
|
5805
|
+
"/api/{session}/blocklist": {
|
|
5806
|
+
"get": {
|
|
5807
|
+
"tags": ["Misc"],
|
|
5105
5808
|
"description": "",
|
|
5106
5809
|
"parameters": [
|
|
5107
5810
|
{
|
|
@@ -5115,8 +5818,8 @@
|
|
|
5115
5818
|
}
|
|
5116
5819
|
],
|
|
5117
5820
|
"responses": {
|
|
5118
|
-
"
|
|
5119
|
-
"description": "
|
|
5821
|
+
"200": {
|
|
5822
|
+
"description": "OK"
|
|
5120
5823
|
},
|
|
5121
5824
|
"500": {
|
|
5122
5825
|
"description": "Internal Server Error"
|
|
@@ -5129,9 +5832,9 @@
|
|
|
5129
5832
|
]
|
|
5130
5833
|
}
|
|
5131
5834
|
},
|
|
5132
|
-
"/api/{session}/
|
|
5133
|
-
"
|
|
5134
|
-
"tags": ["
|
|
5835
|
+
"/api/{session}/block-contact": {
|
|
5836
|
+
"post": {
|
|
5837
|
+
"tags": ["Misc"],
|
|
5135
5838
|
"description": "",
|
|
5136
5839
|
"parameters": [
|
|
5137
5840
|
{
|
|
@@ -5140,22 +5843,13 @@
|
|
|
5140
5843
|
"required": true,
|
|
5141
5844
|
"schema": {
|
|
5142
5845
|
"type": "string",
|
|
5143
|
-
"example": "NERDWHATS_AMERICA"
|
|
5144
|
-
}
|
|
5145
|
-
},
|
|
5146
|
-
{
|
|
5147
|
-
"name": "id",
|
|
5148
|
-
"in": "path",
|
|
5149
|
-
"required": true,
|
|
5150
|
-
"schema": {
|
|
5151
|
-
"type": "string",
|
|
5152
|
-
"example": "<labelId>"
|
|
5846
|
+
"example": "NERDWHATS_AMERICA"
|
|
5153
5847
|
}
|
|
5154
5848
|
}
|
|
5155
5849
|
],
|
|
5156
5850
|
"responses": {
|
|
5157
|
-
"
|
|
5158
|
-
"description": "
|
|
5851
|
+
"200": {
|
|
5852
|
+
"description": "OK"
|
|
5159
5853
|
},
|
|
5160
5854
|
"500": {
|
|
5161
5855
|
"description": "Internal Server Error"
|
|
@@ -5165,11 +5859,37 @@
|
|
|
5165
5859
|
{
|
|
5166
5860
|
"bearerAuth": []
|
|
5167
5861
|
}
|
|
5168
|
-
]
|
|
5862
|
+
],
|
|
5863
|
+
"requestBody": {
|
|
5864
|
+
"required": true,
|
|
5865
|
+
"content": {
|
|
5866
|
+
"application/json": {
|
|
5867
|
+
"schema": {
|
|
5868
|
+
"type": "object",
|
|
5869
|
+
"properties": {
|
|
5870
|
+
"phone": {
|
|
5871
|
+
"type": "string"
|
|
5872
|
+
},
|
|
5873
|
+
"isGroup": {
|
|
5874
|
+
"type": "boolean"
|
|
5875
|
+
}
|
|
5876
|
+
}
|
|
5877
|
+
},
|
|
5878
|
+
"examples": {
|
|
5879
|
+
"Default": {
|
|
5880
|
+
"value": {
|
|
5881
|
+
"phone": "5521999999999",
|
|
5882
|
+
"isGroup": false
|
|
5883
|
+
}
|
|
5884
|
+
}
|
|
5885
|
+
}
|
|
5886
|
+
}
|
|
5887
|
+
}
|
|
5888
|
+
}
|
|
5169
5889
|
}
|
|
5170
5890
|
},
|
|
5171
|
-
"/api/{session}/
|
|
5172
|
-
"
|
|
5891
|
+
"/api/{session}/unblock-contact": {
|
|
5892
|
+
"post": {
|
|
5173
5893
|
"tags": ["Misc"],
|
|
5174
5894
|
"description": "",
|
|
5175
5895
|
"parameters": [
|
|
@@ -5181,15 +5901,6 @@
|
|
|
5181
5901
|
"type": "string",
|
|
5182
5902
|
"example": "NERDWHATS_AMERICA"
|
|
5183
5903
|
}
|
|
5184
|
-
},
|
|
5185
|
-
{
|
|
5186
|
-
"name": "phone",
|
|
5187
|
-
"in": "path",
|
|
5188
|
-
"required": true,
|
|
5189
|
-
"schema": {
|
|
5190
|
-
"type": "string",
|
|
5191
|
-
"example": "5521999999999"
|
|
5192
|
-
}
|
|
5193
5904
|
}
|
|
5194
5905
|
],
|
|
5195
5906
|
"responses": {
|
|
@@ -5204,28 +5915,38 @@
|
|
|
5204
5915
|
{
|
|
5205
5916
|
"bearerAuth": []
|
|
5206
5917
|
}
|
|
5207
|
-
]
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5918
|
+
],
|
|
5919
|
+
"requestBody": {
|
|
5920
|
+
"required": true,
|
|
5921
|
+
"content": {
|
|
5922
|
+
"application/json": {
|
|
5923
|
+
"schema": {
|
|
5924
|
+
"type": "object",
|
|
5925
|
+
"properties": {
|
|
5926
|
+
"phone": {
|
|
5927
|
+
"type": "string"
|
|
5928
|
+
},
|
|
5929
|
+
"isGroup": {
|
|
5930
|
+
"type": "boolean"
|
|
5931
|
+
}
|
|
5932
|
+
}
|
|
5933
|
+
},
|
|
5934
|
+
"examples": {
|
|
5935
|
+
"Default": {
|
|
5936
|
+
"value": {
|
|
5937
|
+
"phone": "5521999999999",
|
|
5938
|
+
"isGroup": false
|
|
5939
|
+
}
|
|
5940
|
+
}
|
|
5941
|
+
}
|
|
5220
5942
|
}
|
|
5221
5943
|
}
|
|
5222
|
-
|
|
5223
|
-
"responses": {}
|
|
5944
|
+
}
|
|
5224
5945
|
}
|
|
5225
5946
|
},
|
|
5226
|
-
"/api/{session}/
|
|
5947
|
+
"/api/{session}/get-battery-level": {
|
|
5227
5948
|
"get": {
|
|
5228
|
-
"tags": ["
|
|
5949
|
+
"tags": ["Misc"],
|
|
5229
5950
|
"description": "",
|
|
5230
5951
|
"parameters": [
|
|
5231
5952
|
{
|
|
@@ -5236,15 +5957,6 @@
|
|
|
5236
5957
|
"type": "string",
|
|
5237
5958
|
"example": "NERDWHATS_AMERICA"
|
|
5238
5959
|
}
|
|
5239
|
-
},
|
|
5240
|
-
{
|
|
5241
|
-
"name": "phone",
|
|
5242
|
-
"in": "path",
|
|
5243
|
-
"required": true,
|
|
5244
|
-
"schema": {
|
|
5245
|
-
"type": "string",
|
|
5246
|
-
"example": "5521999999999"
|
|
5247
|
-
}
|
|
5248
5960
|
}
|
|
5249
5961
|
],
|
|
5250
5962
|
"responses": {
|
|
@@ -5262,9 +5974,9 @@
|
|
|
5262
5974
|
]
|
|
5263
5975
|
}
|
|
5264
5976
|
},
|
|
5265
|
-
"/api/{session}/
|
|
5977
|
+
"/api/{session}/host-device": {
|
|
5266
5978
|
"get": {
|
|
5267
|
-
"tags": ["
|
|
5979
|
+
"tags": ["Misc"],
|
|
5268
5980
|
"description": "",
|
|
5269
5981
|
"parameters": [
|
|
5270
5982
|
{
|
|
@@ -5275,15 +5987,6 @@
|
|
|
5275
5987
|
"type": "string",
|
|
5276
5988
|
"example": "NERDWHATS_AMERICA"
|
|
5277
5989
|
}
|
|
5278
|
-
},
|
|
5279
|
-
{
|
|
5280
|
-
"name": "phone",
|
|
5281
|
-
"in": "path",
|
|
5282
|
-
"required": true,
|
|
5283
|
-
"schema": {
|
|
5284
|
-
"type": "string",
|
|
5285
|
-
"example": "5521999999999"
|
|
5286
|
-
}
|
|
5287
5990
|
}
|
|
5288
5991
|
],
|
|
5289
5992
|
"responses": {
|
|
@@ -5298,13 +6001,12 @@
|
|
|
5298
6001
|
{
|
|
5299
6002
|
"bearerAuth": []
|
|
5300
6003
|
}
|
|
5301
|
-
]
|
|
5302
|
-
"deprecated": true
|
|
6004
|
+
]
|
|
5303
6005
|
}
|
|
5304
6006
|
},
|
|
5305
|
-
"/api/{session}/
|
|
6007
|
+
"/api/{session}/get-phone-number": {
|
|
5306
6008
|
"get": {
|
|
5307
|
-
"tags": ["
|
|
6009
|
+
"tags": ["Misc"],
|
|
5308
6010
|
"description": "",
|
|
5309
6011
|
"parameters": [
|
|
5310
6012
|
{
|
|
@@ -5315,15 +6017,6 @@
|
|
|
5315
6017
|
"type": "string",
|
|
5316
6018
|
"example": "NERDWHATS_AMERICA"
|
|
5317
6019
|
}
|
|
5318
|
-
},
|
|
5319
|
-
{
|
|
5320
|
-
"name": "phone",
|
|
5321
|
-
"in": "path",
|
|
5322
|
-
"required": true,
|
|
5323
|
-
"schema": {
|
|
5324
|
-
"type": "string",
|
|
5325
|
-
"example": "5521999999999"
|
|
5326
|
-
}
|
|
5327
6020
|
}
|
|
5328
6021
|
],
|
|
5329
6022
|
"responses": {
|
|
@@ -5341,9 +6034,9 @@
|
|
|
5341
6034
|
]
|
|
5342
6035
|
}
|
|
5343
6036
|
},
|
|
5344
|
-
"/api/{session}/profile-
|
|
5345
|
-
"
|
|
5346
|
-
"tags": ["
|
|
6037
|
+
"/api/{session}/set-profile-pic": {
|
|
6038
|
+
"post": {
|
|
6039
|
+
"tags": ["Profile"],
|
|
5347
6040
|
"description": "",
|
|
5348
6041
|
"parameters": [
|
|
5349
6042
|
{
|
|
@@ -5356,12 +6049,11 @@
|
|
|
5356
6049
|
}
|
|
5357
6050
|
},
|
|
5358
6051
|
{
|
|
5359
|
-
"name": "
|
|
5360
|
-
"in": "
|
|
6052
|
+
"name": "file",
|
|
6053
|
+
"in": "formData",
|
|
5361
6054
|
"required": true,
|
|
5362
6055
|
"schema": {
|
|
5363
|
-
"type": "
|
|
5364
|
-
"example": "5521999999999"
|
|
6056
|
+
"type": "file"
|
|
5365
6057
|
}
|
|
5366
6058
|
}
|
|
5367
6059
|
],
|
|
@@ -5369,6 +6061,9 @@
|
|
|
5369
6061
|
"200": {
|
|
5370
6062
|
"description": "OK"
|
|
5371
6063
|
},
|
|
6064
|
+
"400": {
|
|
6065
|
+
"description": "Bad Request"
|
|
6066
|
+
},
|
|
5372
6067
|
"500": {
|
|
5373
6068
|
"description": "Internal Server Error"
|
|
5374
6069
|
}
|
|
@@ -5380,9 +6075,9 @@
|
|
|
5380
6075
|
]
|
|
5381
6076
|
}
|
|
5382
6077
|
},
|
|
5383
|
-
"/api/{session}/
|
|
5384
|
-
"
|
|
5385
|
-
"tags": ["
|
|
6078
|
+
"/api/{session}/profile-status": {
|
|
6079
|
+
"post": {
|
|
6080
|
+
"tags": ["Profile"],
|
|
5386
6081
|
"description": "",
|
|
5387
6082
|
"parameters": [
|
|
5388
6083
|
{
|
|
@@ -5393,6 +6088,20 @@
|
|
|
5393
6088
|
"type": "string",
|
|
5394
6089
|
"example": "NERDWHATS_AMERICA"
|
|
5395
6090
|
}
|
|
6091
|
+
},
|
|
6092
|
+
{
|
|
6093
|
+
"name": "obj",
|
|
6094
|
+
"in": "body",
|
|
6095
|
+
"schema": {
|
|
6096
|
+
"type": "object",
|
|
6097
|
+
"properties": {
|
|
6098
|
+
"status": {
|
|
6099
|
+
"type": "string",
|
|
6100
|
+
"example": "My new status"
|
|
6101
|
+
}
|
|
6102
|
+
},
|
|
6103
|
+
"required": ["status"]
|
|
6104
|
+
}
|
|
5396
6105
|
}
|
|
5397
6106
|
],
|
|
5398
6107
|
"responses": {
|
|
@@ -5407,12 +6116,34 @@
|
|
|
5407
6116
|
{
|
|
5408
6117
|
"bearerAuth": []
|
|
5409
6118
|
}
|
|
5410
|
-
]
|
|
6119
|
+
],
|
|
6120
|
+
"requestBody": {
|
|
6121
|
+
"required": true,
|
|
6122
|
+
"content": {
|
|
6123
|
+
"application/json": {
|
|
6124
|
+
"schema": {
|
|
6125
|
+
"type": "object",
|
|
6126
|
+
"properties": {
|
|
6127
|
+
"status": {
|
|
6128
|
+
"type": "string"
|
|
6129
|
+
}
|
|
6130
|
+
}
|
|
6131
|
+
},
|
|
6132
|
+
"examples": {
|
|
6133
|
+
"Default": {
|
|
6134
|
+
"value": {
|
|
6135
|
+
"status": "My new status"
|
|
6136
|
+
}
|
|
6137
|
+
}
|
|
6138
|
+
}
|
|
6139
|
+
}
|
|
6140
|
+
}
|
|
6141
|
+
}
|
|
5411
6142
|
}
|
|
5412
6143
|
},
|
|
5413
|
-
"/api/{session}/
|
|
6144
|
+
"/api/{session}/change-username": {
|
|
5414
6145
|
"post": {
|
|
5415
|
-
"tags": ["
|
|
6146
|
+
"tags": ["Profile"],
|
|
5416
6147
|
"description": "",
|
|
5417
6148
|
"parameters": [
|
|
5418
6149
|
{
|
|
@@ -5423,30 +6154,15 @@
|
|
|
5423
6154
|
"type": "string",
|
|
5424
6155
|
"example": "NERDWHATS_AMERICA"
|
|
5425
6156
|
}
|
|
5426
|
-
},
|
|
5427
|
-
{
|
|
5428
|
-
"name": "obj",
|
|
5429
|
-
"in": "body",
|
|
5430
|
-
"schema": {
|
|
5431
|
-
"type": "object",
|
|
5432
|
-
"properties": {
|
|
5433
|
-
"phone": {
|
|
5434
|
-
"type": "string",
|
|
5435
|
-
"example": "5521999999999"
|
|
5436
|
-
},
|
|
5437
|
-
"isGroup": {
|
|
5438
|
-
"type": "boolean",
|
|
5439
|
-
"example": false
|
|
5440
|
-
}
|
|
5441
|
-
},
|
|
5442
|
-
"required": ["phone", "isGroup"]
|
|
5443
|
-
}
|
|
5444
6157
|
}
|
|
5445
6158
|
],
|
|
5446
6159
|
"responses": {
|
|
5447
6160
|
"200": {
|
|
5448
6161
|
"description": "OK"
|
|
5449
6162
|
},
|
|
6163
|
+
"400": {
|
|
6164
|
+
"description": "Bad Request"
|
|
6165
|
+
},
|
|
5450
6166
|
"500": {
|
|
5451
6167
|
"description": "Internal Server Error"
|
|
5452
6168
|
}
|
|
@@ -5455,13 +6171,35 @@
|
|
|
5455
6171
|
{
|
|
5456
6172
|
"bearerAuth": []
|
|
5457
6173
|
}
|
|
5458
|
-
]
|
|
6174
|
+
],
|
|
6175
|
+
"requestBody": {
|
|
6176
|
+
"required": false,
|
|
6177
|
+
"content": {
|
|
6178
|
+
"application/json": {
|
|
6179
|
+
"schema": {
|
|
6180
|
+
"type": "object",
|
|
6181
|
+
"properties": {
|
|
6182
|
+
"name": {
|
|
6183
|
+
"type": "string"
|
|
6184
|
+
}
|
|
6185
|
+
}
|
|
6186
|
+
},
|
|
6187
|
+
"examples": {
|
|
6188
|
+
"Default": {
|
|
6189
|
+
"value": {
|
|
6190
|
+
"name": "My new name"
|
|
6191
|
+
}
|
|
6192
|
+
}
|
|
6193
|
+
}
|
|
6194
|
+
}
|
|
6195
|
+
}
|
|
6196
|
+
}
|
|
5459
6197
|
}
|
|
5460
6198
|
},
|
|
5461
|
-
"/api/{session}/
|
|
6199
|
+
"/api/{session}/edit-business-profile": {
|
|
5462
6200
|
"post": {
|
|
5463
|
-
"tags": ["
|
|
5464
|
-
"description": "",
|
|
6201
|
+
"tags": ["Profile"],
|
|
6202
|
+
"description": "Edit your bussiness profile",
|
|
5465
6203
|
"parameters": [
|
|
5466
6204
|
{
|
|
5467
6205
|
"name": "session",
|
|
@@ -5478,16 +6216,44 @@
|
|
|
5478
6216
|
"schema": {
|
|
5479
6217
|
"type": "object",
|
|
5480
6218
|
"properties": {
|
|
5481
|
-
"
|
|
6219
|
+
"adress": {
|
|
5482
6220
|
"type": "string",
|
|
5483
|
-
"example": "
|
|
6221
|
+
"example": "Av. Nossa Senhora de Copacabana, 315"
|
|
5484
6222
|
},
|
|
5485
|
-
"
|
|
5486
|
-
"type": "
|
|
5487
|
-
"example":
|
|
6223
|
+
"email": {
|
|
6224
|
+
"type": "string",
|
|
6225
|
+
"example": "test@test.com.br"
|
|
6226
|
+
},
|
|
6227
|
+
"categories": {
|
|
6228
|
+
"type": "object",
|
|
6229
|
+
"properties": {
|
|
6230
|
+
"id": {
|
|
6231
|
+
"type": "string",
|
|
6232
|
+
"example": "133436743388217"
|
|
6233
|
+
},
|
|
6234
|
+
"localized_display_name": {
|
|
6235
|
+
"type": "string",
|
|
6236
|
+
"example": "Artes e entretenimento"
|
|
6237
|
+
},
|
|
6238
|
+
"not_a_biz": {
|
|
6239
|
+
"type": "boolean",
|
|
6240
|
+
"example": false
|
|
6241
|
+
}
|
|
6242
|
+
},
|
|
6243
|
+
"required": ["id", "localized_display_name", "not_a_biz"]
|
|
6244
|
+
},
|
|
6245
|
+
"website": {
|
|
6246
|
+
"type": "array",
|
|
6247
|
+
"example": [
|
|
6248
|
+
"https://www.wppconnect.io",
|
|
6249
|
+
"https://www.teste2.com.br"
|
|
6250
|
+
],
|
|
6251
|
+
"items": {
|
|
6252
|
+
"type": "string"
|
|
6253
|
+
}
|
|
5488
6254
|
}
|
|
5489
6255
|
},
|
|
5490
|
-
"required": ["
|
|
6256
|
+
"required": ["adress", "email", "categories", "website"]
|
|
5491
6257
|
}
|
|
5492
6258
|
}
|
|
5493
6259
|
],
|
|
@@ -5503,12 +6269,49 @@
|
|
|
5503
6269
|
{
|
|
5504
6270
|
"bearerAuth": []
|
|
5505
6271
|
}
|
|
5506
|
-
]
|
|
6272
|
+
],
|
|
6273
|
+
"requestBody": {
|
|
6274
|
+
"required": true,
|
|
6275
|
+
"content": {
|
|
6276
|
+
"application/json": {
|
|
6277
|
+
"schema": {
|
|
6278
|
+
"type": "object",
|
|
6279
|
+
"properties": {
|
|
6280
|
+
"adress": {
|
|
6281
|
+
"type": "string"
|
|
6282
|
+
},
|
|
6283
|
+
"email": {
|
|
6284
|
+
"type": "string"
|
|
6285
|
+
},
|
|
6286
|
+
"categories": {
|
|
6287
|
+
"type": "object"
|
|
6288
|
+
},
|
|
6289
|
+
"websites": {
|
|
6290
|
+
"type": "array"
|
|
6291
|
+
}
|
|
6292
|
+
}
|
|
6293
|
+
},
|
|
6294
|
+
"example": {
|
|
6295
|
+
"adress": "Av. Nossa Senhora de Copacabana, 315",
|
|
6296
|
+
"email": "test@test.com.br",
|
|
6297
|
+
"categories": {
|
|
6298
|
+
"$id": "133436743388217",
|
|
6299
|
+
"$localized_display_name": "Artes e entretenimento",
|
|
6300
|
+
"$not_a_biz": false
|
|
6301
|
+
},
|
|
6302
|
+
"website": [
|
|
6303
|
+
"https://www.wppconnect.io",
|
|
6304
|
+
"https://www.teste2.com.br"
|
|
6305
|
+
]
|
|
6306
|
+
}
|
|
6307
|
+
}
|
|
6308
|
+
}
|
|
6309
|
+
}
|
|
5507
6310
|
}
|
|
5508
6311
|
},
|
|
5509
|
-
"/api/{session}/get-
|
|
6312
|
+
"/api/{session}/get-business-profiles-products": {
|
|
5510
6313
|
"get": {
|
|
5511
|
-
"tags": ["
|
|
6314
|
+
"tags": ["Catalog & Bussiness"],
|
|
5512
6315
|
"description": "",
|
|
5513
6316
|
"parameters": [
|
|
5514
6317
|
{
|
|
@@ -5521,14 +6324,7 @@
|
|
|
5521
6324
|
}
|
|
5522
6325
|
}
|
|
5523
6326
|
],
|
|
5524
|
-
"responses": {
|
|
5525
|
-
"200": {
|
|
5526
|
-
"description": "OK"
|
|
5527
|
-
},
|
|
5528
|
-
"500": {
|
|
5529
|
-
"description": "Internal Server Error"
|
|
5530
|
-
}
|
|
5531
|
-
},
|
|
6327
|
+
"responses": {},
|
|
5532
6328
|
"security": [
|
|
5533
6329
|
{
|
|
5534
6330
|
"bearerAuth": []
|
|
@@ -5536,9 +6332,9 @@
|
|
|
5536
6332
|
]
|
|
5537
6333
|
}
|
|
5538
6334
|
},
|
|
5539
|
-
"/api/{session}/
|
|
6335
|
+
"/api/{session}/get-order-by-messageId": {
|
|
5540
6336
|
"get": {
|
|
5541
|
-
"tags": ["
|
|
6337
|
+
"tags": ["Catalog & Bussiness"],
|
|
5542
6338
|
"description": "",
|
|
5543
6339
|
"parameters": [
|
|
5544
6340
|
{
|
|
@@ -5549,16 +6345,23 @@
|
|
|
5549
6345
|
"type": "string",
|
|
5550
6346
|
"example": "NERDWHATS_AMERICA"
|
|
5551
6347
|
}
|
|
5552
|
-
}
|
|
5553
|
-
],
|
|
5554
|
-
"responses": {
|
|
5555
|
-
"200": {
|
|
5556
|
-
"description": "OK"
|
|
5557
6348
|
},
|
|
5558
|
-
|
|
5559
|
-
"
|
|
6349
|
+
{
|
|
6350
|
+
"name": "obj",
|
|
6351
|
+
"in": "body",
|
|
6352
|
+
"schema": {
|
|
6353
|
+
"type": "object",
|
|
6354
|
+
"properties": {
|
|
6355
|
+
"messageId": {
|
|
6356
|
+
"type": "string",
|
|
6357
|
+
"example": "<message_id>"
|
|
6358
|
+
}
|
|
6359
|
+
},
|
|
6360
|
+
"required": ["messageId"]
|
|
6361
|
+
}
|
|
5560
6362
|
}
|
|
5561
|
-
|
|
6363
|
+
],
|
|
6364
|
+
"responses": {},
|
|
5562
6365
|
"security": [
|
|
5563
6366
|
{
|
|
5564
6367
|
"bearerAuth": []
|
|
@@ -5566,56 +6369,55 @@
|
|
|
5566
6369
|
]
|
|
5567
6370
|
}
|
|
5568
6371
|
},
|
|
5569
|
-
"/api/{
|
|
6372
|
+
"/api/{secretkey}/backup-sessions": {
|
|
5570
6373
|
"get": {
|
|
5571
6374
|
"tags": ["Misc"],
|
|
5572
|
-
"description": "",
|
|
6375
|
+
"description": "Please, open the router in your browser, in swagger this not run",
|
|
6376
|
+
"produces": ["application/zip"],
|
|
5573
6377
|
"parameters": [
|
|
5574
6378
|
{
|
|
5575
|
-
"name": "
|
|
6379
|
+
"name": "secretkey",
|
|
5576
6380
|
"in": "path",
|
|
5577
6381
|
"required": true,
|
|
5578
6382
|
"schema": {
|
|
5579
6383
|
"type": "string",
|
|
5580
|
-
"example": "
|
|
6384
|
+
"example": "THISISMYSECURETOKEN"
|
|
5581
6385
|
}
|
|
5582
6386
|
}
|
|
5583
6387
|
],
|
|
5584
6388
|
"responses": {
|
|
5585
6389
|
"200": {
|
|
5586
|
-
"description": "
|
|
6390
|
+
"description": "A ZIP file contaings your backup. Please, open this link in your browser",
|
|
6391
|
+
"content": {
|
|
6392
|
+
"application/zip": {
|
|
6393
|
+
"schema": {
|
|
6394
|
+
"type": "string",
|
|
6395
|
+
"format": "binary"
|
|
6396
|
+
}
|
|
6397
|
+
}
|
|
6398
|
+
}
|
|
6399
|
+
},
|
|
6400
|
+
"400": {
|
|
6401
|
+
"description": "Bad Request"
|
|
5587
6402
|
},
|
|
5588
6403
|
"500": {
|
|
5589
6404
|
"description": "Internal Server Error"
|
|
5590
6405
|
}
|
|
5591
|
-
}
|
|
5592
|
-
"security": [
|
|
5593
|
-
{
|
|
5594
|
-
"bearerAuth": []
|
|
5595
|
-
}
|
|
5596
|
-
]
|
|
6406
|
+
}
|
|
5597
6407
|
}
|
|
5598
6408
|
},
|
|
5599
|
-
"/api/{
|
|
6409
|
+
"/api/{secretkey}/restore-sessions": {
|
|
5600
6410
|
"post": {
|
|
5601
|
-
"tags": ["
|
|
6411
|
+
"tags": ["Misc"],
|
|
5602
6412
|
"description": "",
|
|
5603
6413
|
"parameters": [
|
|
5604
6414
|
{
|
|
5605
|
-
"name": "
|
|
6415
|
+
"name": "secretkey",
|
|
5606
6416
|
"in": "path",
|
|
5607
6417
|
"required": true,
|
|
5608
6418
|
"schema": {
|
|
5609
6419
|
"type": "string",
|
|
5610
|
-
"example": "
|
|
5611
|
-
}
|
|
5612
|
-
},
|
|
5613
|
-
{
|
|
5614
|
-
"name": "file",
|
|
5615
|
-
"in": "formData",
|
|
5616
|
-
"required": true,
|
|
5617
|
-
"schema": {
|
|
5618
|
-
"type": "file"
|
|
6420
|
+
"example": "THISISMYSECURETOKEN"
|
|
5619
6421
|
}
|
|
5620
6422
|
}
|
|
5621
6423
|
],
|
|
@@ -5630,16 +6432,28 @@
|
|
|
5630
6432
|
"description": "Internal Server Error"
|
|
5631
6433
|
}
|
|
5632
6434
|
},
|
|
5633
|
-
"
|
|
5634
|
-
|
|
5635
|
-
|
|
6435
|
+
"requestBody": {
|
|
6436
|
+
"required": true,
|
|
6437
|
+
"content": {
|
|
6438
|
+
"multipart/form-data": {
|
|
6439
|
+
"schema": {
|
|
6440
|
+
"type": "object",
|
|
6441
|
+
"properties": {
|
|
6442
|
+
"file": {
|
|
6443
|
+
"type": "string",
|
|
6444
|
+
"format": "binary"
|
|
6445
|
+
}
|
|
6446
|
+
},
|
|
6447
|
+
"required": ["file"]
|
|
6448
|
+
}
|
|
6449
|
+
}
|
|
5636
6450
|
}
|
|
5637
|
-
|
|
6451
|
+
}
|
|
5638
6452
|
}
|
|
5639
6453
|
},
|
|
5640
|
-
"/api/{session}/
|
|
5641
|
-
"
|
|
5642
|
-
"tags": ["
|
|
6454
|
+
"/api/{session}/take-screenshot": {
|
|
6455
|
+
"get": {
|
|
6456
|
+
"tags": ["Misc"],
|
|
5643
6457
|
"description": "",
|
|
5644
6458
|
"parameters": [
|
|
5645
6459
|
{
|
|
@@ -5650,20 +6464,6 @@
|
|
|
5650
6464
|
"type": "string",
|
|
5651
6465
|
"example": "NERDWHATS_AMERICA"
|
|
5652
6466
|
}
|
|
5653
|
-
},
|
|
5654
|
-
{
|
|
5655
|
-
"name": "obj",
|
|
5656
|
-
"in": "body",
|
|
5657
|
-
"schema": {
|
|
5658
|
-
"type": "object",
|
|
5659
|
-
"properties": {
|
|
5660
|
-
"status": {
|
|
5661
|
-
"type": "string",
|
|
5662
|
-
"example": "My new status"
|
|
5663
|
-
}
|
|
5664
|
-
},
|
|
5665
|
-
"required": ["status"]
|
|
5666
|
-
}
|
|
5667
6467
|
}
|
|
5668
6468
|
],
|
|
5669
6469
|
"responses": {
|
|
@@ -5681,10 +6481,10 @@
|
|
|
5681
6481
|
]
|
|
5682
6482
|
}
|
|
5683
6483
|
},
|
|
5684
|
-
"/api/{session}/
|
|
6484
|
+
"/api/{session}/set-limit": {
|
|
5685
6485
|
"post": {
|
|
5686
|
-
"tags": ["
|
|
5687
|
-
"description": "",
|
|
6486
|
+
"tags": ["Misc"],
|
|
6487
|
+
"description": "Change limits of whatsapp web. Types value: maxMediaSize, maxFileSize, maxShare, statusVideoMaxDuration, unlimitedPin;",
|
|
5688
6488
|
"parameters": [
|
|
5689
6489
|
{
|
|
5690
6490
|
"name": "session",
|
|
@@ -5701,12 +6501,16 @@
|
|
|
5701
6501
|
"schema": {
|
|
5702
6502
|
"type": "object",
|
|
5703
6503
|
"properties": {
|
|
5704
|
-
"
|
|
6504
|
+
"type": {
|
|
5705
6505
|
"type": "string",
|
|
5706
|
-
"example": "
|
|
6506
|
+
"example": "maxFileSize"
|
|
6507
|
+
},
|
|
6508
|
+
"value": {
|
|
6509
|
+
"type": "number",
|
|
6510
|
+
"example": 104857600
|
|
5707
6511
|
}
|
|
5708
6512
|
},
|
|
5709
|
-
"required": ["
|
|
6513
|
+
"required": ["type", "value"]
|
|
5710
6514
|
}
|
|
5711
6515
|
}
|
|
5712
6516
|
],
|
|
@@ -5714,9 +6518,6 @@
|
|
|
5714
6518
|
"200": {
|
|
5715
6519
|
"description": "OK"
|
|
5716
6520
|
},
|
|
5717
|
-
"400": {
|
|
5718
|
-
"description": "Bad Request"
|
|
5719
|
-
},
|
|
5720
6521
|
"500": {
|
|
5721
6522
|
"description": "Internal Server Error"
|
|
5722
6523
|
}
|
|
@@ -5728,10 +6529,10 @@
|
|
|
5728
6529
|
]
|
|
5729
6530
|
}
|
|
5730
6531
|
},
|
|
5731
|
-
"/api/{session}/
|
|
6532
|
+
"/api/{session}/create-community": {
|
|
5732
6533
|
"post": {
|
|
5733
|
-
"tags": ["
|
|
5734
|
-
"description": "
|
|
6534
|
+
"tags": ["Community"],
|
|
6535
|
+
"description": "",
|
|
5735
6536
|
"parameters": [
|
|
5736
6537
|
{
|
|
5737
6538
|
"name": "session",
|
|
@@ -5741,51 +6542,65 @@
|
|
|
5741
6542
|
"type": "string",
|
|
5742
6543
|
"example": "NERDWHATS_AMERICA"
|
|
5743
6544
|
}
|
|
6545
|
+
}
|
|
6546
|
+
],
|
|
6547
|
+
"responses": {
|
|
6548
|
+
"200": {
|
|
6549
|
+
"description": "OK"
|
|
5744
6550
|
},
|
|
6551
|
+
"500": {
|
|
6552
|
+
"description": "Internal Server Error"
|
|
6553
|
+
}
|
|
6554
|
+
},
|
|
6555
|
+
"security": [
|
|
5745
6556
|
{
|
|
5746
|
-
"
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
"
|
|
5756
|
-
"
|
|
5757
|
-
"example": "test@test.com.br"
|
|
5758
|
-
},
|
|
5759
|
-
"categories": {
|
|
5760
|
-
"type": "object",
|
|
5761
|
-
"properties": {
|
|
5762
|
-
"id": {
|
|
5763
|
-
"type": "string",
|
|
5764
|
-
"example": "133436743388217"
|
|
5765
|
-
},
|
|
5766
|
-
"localized_display_name": {
|
|
5767
|
-
"type": "string",
|
|
5768
|
-
"example": "Artes e entretenimento"
|
|
5769
|
-
},
|
|
5770
|
-
"not_a_biz": {
|
|
5771
|
-
"type": "boolean",
|
|
5772
|
-
"example": false
|
|
5773
|
-
}
|
|
5774
|
-
},
|
|
5775
|
-
"required": ["id", "localized_display_name", "not_a_biz"]
|
|
5776
|
-
},
|
|
5777
|
-
"website": {
|
|
5778
|
-
"type": "array",
|
|
5779
|
-
"example": [
|
|
5780
|
-
"https://www.wppconnect.io",
|
|
5781
|
-
"https://www.teste2.com.br"
|
|
5782
|
-
],
|
|
5783
|
-
"items": {
|
|
6557
|
+
"bearerAuth": []
|
|
6558
|
+
}
|
|
6559
|
+
],
|
|
6560
|
+
"requestBody": {
|
|
6561
|
+
"required": true,
|
|
6562
|
+
"content": {
|
|
6563
|
+
"application/json": {
|
|
6564
|
+
"schema": {
|
|
6565
|
+
"type": "object",
|
|
6566
|
+
"properties": {
|
|
6567
|
+
"name": {
|
|
5784
6568
|
"type": "string"
|
|
6569
|
+
},
|
|
6570
|
+
"description": {
|
|
6571
|
+
"type": "boolean"
|
|
6572
|
+
},
|
|
6573
|
+
"groupIds": {
|
|
6574
|
+
"type": "array"
|
|
5785
6575
|
}
|
|
5786
6576
|
}
|
|
5787
6577
|
},
|
|
5788
|
-
"
|
|
6578
|
+
"examples": {
|
|
6579
|
+
"Default": {
|
|
6580
|
+
"value": {
|
|
6581
|
+
"name": "My community name",
|
|
6582
|
+
"description": "Description for your community",
|
|
6583
|
+
"groupIds": ["groupId1", "groupId2"]
|
|
6584
|
+
}
|
|
6585
|
+
}
|
|
6586
|
+
}
|
|
6587
|
+
}
|
|
6588
|
+
}
|
|
6589
|
+
}
|
|
6590
|
+
}
|
|
6591
|
+
},
|
|
6592
|
+
"/api/{session}/deactivate-community": {
|
|
6593
|
+
"post": {
|
|
6594
|
+
"tags": ["Community"],
|
|
6595
|
+
"description": "",
|
|
6596
|
+
"parameters": [
|
|
6597
|
+
{
|
|
6598
|
+
"name": "session",
|
|
6599
|
+
"in": "path",
|
|
6600
|
+
"required": true,
|
|
6601
|
+
"schema": {
|
|
6602
|
+
"type": "string",
|
|
6603
|
+
"example": "NERDWHATS_AMERICA"
|
|
5789
6604
|
}
|
|
5790
6605
|
}
|
|
5791
6606
|
],
|
|
@@ -5809,41 +6624,26 @@
|
|
|
5809
6624
|
"schema": {
|
|
5810
6625
|
"type": "object",
|
|
5811
6626
|
"properties": {
|
|
5812
|
-
"
|
|
5813
|
-
"type": "string"
|
|
5814
|
-
},
|
|
5815
|
-
"email": {
|
|
6627
|
+
"id": {
|
|
5816
6628
|
"type": "string"
|
|
5817
|
-
},
|
|
5818
|
-
"categories": {
|
|
5819
|
-
"type": "object"
|
|
5820
|
-
},
|
|
5821
|
-
"websites": {
|
|
5822
|
-
"type": "array"
|
|
5823
6629
|
}
|
|
5824
6630
|
}
|
|
5825
6631
|
},
|
|
5826
|
-
"
|
|
5827
|
-
"
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
"$not_a_biz": false
|
|
5833
|
-
},
|
|
5834
|
-
"website": [
|
|
5835
|
-
"https://www.wppconnect.io",
|
|
5836
|
-
"https://www.teste2.com.br"
|
|
5837
|
-
]
|
|
6632
|
+
"examples": {
|
|
6633
|
+
"Default": {
|
|
6634
|
+
"value": {
|
|
6635
|
+
"id": "<you_community_id@g.us>"
|
|
6636
|
+
}
|
|
6637
|
+
}
|
|
5838
6638
|
}
|
|
5839
6639
|
}
|
|
5840
6640
|
}
|
|
5841
6641
|
}
|
|
5842
6642
|
}
|
|
5843
6643
|
},
|
|
5844
|
-
"/api/{session}/
|
|
5845
|
-
"
|
|
5846
|
-
"tags": ["
|
|
6644
|
+
"/api/{session}/add-community-subgroup": {
|
|
6645
|
+
"post": {
|
|
6646
|
+
"tags": ["Community"],
|
|
5847
6647
|
"description": "",
|
|
5848
6648
|
"parameters": [
|
|
5849
6649
|
{
|
|
@@ -5856,17 +6656,50 @@
|
|
|
5856
6656
|
}
|
|
5857
6657
|
}
|
|
5858
6658
|
],
|
|
5859
|
-
"responses": {
|
|
6659
|
+
"responses": {
|
|
6660
|
+
"200": {
|
|
6661
|
+
"description": "OK"
|
|
6662
|
+
},
|
|
6663
|
+
"500": {
|
|
6664
|
+
"description": "Internal Server Error"
|
|
6665
|
+
}
|
|
6666
|
+
},
|
|
5860
6667
|
"security": [
|
|
5861
6668
|
{
|
|
5862
6669
|
"bearerAuth": []
|
|
5863
6670
|
}
|
|
5864
|
-
]
|
|
6671
|
+
],
|
|
6672
|
+
"requestBody": {
|
|
6673
|
+
"required": true,
|
|
6674
|
+
"content": {
|
|
6675
|
+
"application/json": {
|
|
6676
|
+
"schema": {
|
|
6677
|
+
"type": "object",
|
|
6678
|
+
"properties": {
|
|
6679
|
+
"id": {
|
|
6680
|
+
"type": "string"
|
|
6681
|
+
},
|
|
6682
|
+
"groupsIds": {
|
|
6683
|
+
"type": "array"
|
|
6684
|
+
}
|
|
6685
|
+
}
|
|
6686
|
+
},
|
|
6687
|
+
"examples": {
|
|
6688
|
+
"Default": {
|
|
6689
|
+
"value": {
|
|
6690
|
+
"id": "<you_community_id@g.us>",
|
|
6691
|
+
"groupsIds": ["group1Id@g.us"]
|
|
6692
|
+
}
|
|
6693
|
+
}
|
|
6694
|
+
}
|
|
6695
|
+
}
|
|
6696
|
+
}
|
|
6697
|
+
}
|
|
5865
6698
|
}
|
|
5866
6699
|
},
|
|
5867
|
-
"/api/{session}/
|
|
5868
|
-
"
|
|
5869
|
-
"tags": ["
|
|
6700
|
+
"/api/{session}/remove-community-subgroup": {
|
|
6701
|
+
"post": {
|
|
6702
|
+
"tags": ["Community"],
|
|
5870
6703
|
"description": "",
|
|
5871
6704
|
"parameters": [
|
|
5872
6705
|
{
|
|
@@ -5877,79 +6710,61 @@
|
|
|
5877
6710
|
"type": "string",
|
|
5878
6711
|
"example": "NERDWHATS_AMERICA"
|
|
5879
6712
|
}
|
|
5880
|
-
},
|
|
5881
|
-
{
|
|
5882
|
-
"name": "obj",
|
|
5883
|
-
"in": "body",
|
|
5884
|
-
"schema": {
|
|
5885
|
-
"type": "object",
|
|
5886
|
-
"properties": {
|
|
5887
|
-
"messageId": {
|
|
5888
|
-
"type": "string",
|
|
5889
|
-
"example": "<message_id>"
|
|
5890
|
-
}
|
|
5891
|
-
},
|
|
5892
|
-
"required": ["messageId"]
|
|
5893
|
-
}
|
|
5894
6713
|
}
|
|
5895
6714
|
],
|
|
5896
|
-
"responses": {
|
|
6715
|
+
"responses": {
|
|
6716
|
+
"200": {
|
|
6717
|
+
"description": "OK"
|
|
6718
|
+
},
|
|
6719
|
+
"500": {
|
|
6720
|
+
"description": "Internal Server Error"
|
|
6721
|
+
}
|
|
6722
|
+
},
|
|
5897
6723
|
"security": [
|
|
5898
6724
|
{
|
|
5899
6725
|
"bearerAuth": []
|
|
5900
6726
|
}
|
|
5901
|
-
]
|
|
5902
|
-
}
|
|
5903
|
-
},
|
|
5904
|
-
"/api/{secretkey}/backup-sessions": {
|
|
5905
|
-
"get": {
|
|
5906
|
-
"tags": ["Misc"],
|
|
5907
|
-
"description": "Please, open the router in your browser, in swagger this not run",
|
|
5908
|
-
"produces": ["application/zip"],
|
|
5909
|
-
"parameters": [
|
|
5910
|
-
{
|
|
5911
|
-
"name": "secretkey",
|
|
5912
|
-
"in": "path",
|
|
5913
|
-
"required": true,
|
|
5914
|
-
"schema": {
|
|
5915
|
-
"type": "string",
|
|
5916
|
-
"example": "THISISMYSECURETOKEN"
|
|
5917
|
-
}
|
|
5918
|
-
}
|
|
5919
6727
|
],
|
|
5920
|
-
"
|
|
5921
|
-
"
|
|
5922
|
-
|
|
5923
|
-
"
|
|
5924
|
-
"
|
|
5925
|
-
"
|
|
5926
|
-
|
|
5927
|
-
"
|
|
6728
|
+
"requestBody": {
|
|
6729
|
+
"required": true,
|
|
6730
|
+
"content": {
|
|
6731
|
+
"application/json": {
|
|
6732
|
+
"schema": {
|
|
6733
|
+
"type": "object",
|
|
6734
|
+
"properties": {
|
|
6735
|
+
"id": {
|
|
6736
|
+
"type": "string"
|
|
6737
|
+
},
|
|
6738
|
+
"groupsIds": {
|
|
6739
|
+
"type": "array"
|
|
6740
|
+
}
|
|
6741
|
+
}
|
|
6742
|
+
},
|
|
6743
|
+
"examples": {
|
|
6744
|
+
"Default": {
|
|
6745
|
+
"value": {
|
|
6746
|
+
"id": "<you_community_id@g.us>",
|
|
6747
|
+
"groupsIds": ["group1Id@g.us"]
|
|
6748
|
+
}
|
|
5928
6749
|
}
|
|
5929
6750
|
}
|
|
5930
6751
|
}
|
|
5931
|
-
},
|
|
5932
|
-
"400": {
|
|
5933
|
-
"description": "Bad Request"
|
|
5934
|
-
},
|
|
5935
|
-
"500": {
|
|
5936
|
-
"description": "Internal Server Error"
|
|
5937
6752
|
}
|
|
5938
6753
|
}
|
|
5939
6754
|
}
|
|
5940
6755
|
},
|
|
5941
|
-
"/api/{
|
|
6756
|
+
"/api/{session}/promote-community-participant": {
|
|
5942
6757
|
"post": {
|
|
5943
|
-
"tags": ["
|
|
6758
|
+
"tags": ["Community"],
|
|
5944
6759
|
"description": "",
|
|
5945
6760
|
"parameters": [
|
|
5946
6761
|
{
|
|
5947
|
-
"name": "
|
|
6762
|
+
"name": "session",
|
|
5948
6763
|
"in": "path",
|
|
5949
6764
|
"required": true,
|
|
5950
6765
|
"schema": {
|
|
5951
6766
|
"type": "string",
|
|
5952
|
-
"example": "
|
|
6767
|
+
"example": "NERDWHATS_AMERICA"
|
|
5953
6768
|
}
|
|
5954
6769
|
}
|
|
5955
6770
|
],
|
|
@@ -5957,35 +6772,46 @@
|
|
|
5957
6772
|
"200": {
|
|
5958
6773
|
"description": "OK"
|
|
5959
6774
|
},
|
|
5960
|
-
"400": {
|
|
5961
|
-
"description": "Bad Request"
|
|
5962
|
-
},
|
|
5963
6775
|
"500": {
|
|
5964
6776
|
"description": "Internal Server Error"
|
|
5965
6777
|
}
|
|
5966
6778
|
},
|
|
6779
|
+
"security": [
|
|
6780
|
+
{
|
|
6781
|
+
"bearerAuth": []
|
|
6782
|
+
}
|
|
6783
|
+
],
|
|
5967
6784
|
"requestBody": {
|
|
5968
6785
|
"required": true,
|
|
5969
6786
|
"content": {
|
|
5970
|
-
"
|
|
6787
|
+
"application/json": {
|
|
5971
6788
|
"schema": {
|
|
5972
6789
|
"type": "object",
|
|
5973
6790
|
"properties": {
|
|
5974
|
-
"
|
|
5975
|
-
"type": "string"
|
|
5976
|
-
|
|
6791
|
+
"id": {
|
|
6792
|
+
"type": "string"
|
|
6793
|
+
},
|
|
6794
|
+
"participantsId": {
|
|
6795
|
+
"type": "array"
|
|
5977
6796
|
}
|
|
5978
|
-
}
|
|
5979
|
-
|
|
6797
|
+
}
|
|
6798
|
+
},
|
|
6799
|
+
"examples": {
|
|
6800
|
+
"Default": {
|
|
6801
|
+
"value": {
|
|
6802
|
+
"id": "<you_community_id@g.us>",
|
|
6803
|
+
"participantsId": ["group1Id@g.us"]
|
|
6804
|
+
}
|
|
6805
|
+
}
|
|
5980
6806
|
}
|
|
5981
6807
|
}
|
|
5982
6808
|
}
|
|
5983
6809
|
}
|
|
5984
6810
|
}
|
|
5985
6811
|
},
|
|
5986
|
-
"/api/{session}/
|
|
5987
|
-
"
|
|
5988
|
-
"tags": ["
|
|
6812
|
+
"/api/{session}/demote-community-participant": {
|
|
6813
|
+
"post": {
|
|
6814
|
+
"tags": ["Community"],
|
|
5989
6815
|
"description": "",
|
|
5990
6816
|
"parameters": [
|
|
5991
6817
|
{
|
|
@@ -6010,13 +6836,39 @@
|
|
|
6010
6836
|
{
|
|
6011
6837
|
"bearerAuth": []
|
|
6012
6838
|
}
|
|
6013
|
-
]
|
|
6839
|
+
],
|
|
6840
|
+
"requestBody": {
|
|
6841
|
+
"required": true,
|
|
6842
|
+
"content": {
|
|
6843
|
+
"application/json": {
|
|
6844
|
+
"schema": {
|
|
6845
|
+
"type": "object",
|
|
6846
|
+
"properties": {
|
|
6847
|
+
"id": {
|
|
6848
|
+
"type": "string"
|
|
6849
|
+
},
|
|
6850
|
+
"participantsId": {
|
|
6851
|
+
"type": "array"
|
|
6852
|
+
}
|
|
6853
|
+
}
|
|
6854
|
+
},
|
|
6855
|
+
"examples": {
|
|
6856
|
+
"Default": {
|
|
6857
|
+
"value": {
|
|
6858
|
+
"id": "<you_community_id@g.us>",
|
|
6859
|
+
"participantsId": ["group1Id@g.us"]
|
|
6860
|
+
}
|
|
6861
|
+
}
|
|
6862
|
+
}
|
|
6863
|
+
}
|
|
6864
|
+
}
|
|
6865
|
+
}
|
|
6014
6866
|
}
|
|
6015
6867
|
},
|
|
6016
|
-
"/api/{session}/
|
|
6017
|
-
"
|
|
6018
|
-
"tags": ["
|
|
6019
|
-
"description": "
|
|
6868
|
+
"/api/{session}/community-participants/{id}": {
|
|
6869
|
+
"get": {
|
|
6870
|
+
"tags": ["Community"],
|
|
6871
|
+
"description": "",
|
|
6020
6872
|
"parameters": [
|
|
6021
6873
|
{
|
|
6022
6874
|
"name": "session",
|
|
@@ -6028,21 +6880,12 @@
|
|
|
6028
6880
|
}
|
|
6029
6881
|
},
|
|
6030
6882
|
{
|
|
6031
|
-
"name": "
|
|
6032
|
-
"in": "
|
|
6883
|
+
"name": "id",
|
|
6884
|
+
"in": "path",
|
|
6885
|
+
"required": true,
|
|
6033
6886
|
"schema": {
|
|
6034
|
-
"type": "
|
|
6035
|
-
"
|
|
6036
|
-
"type": {
|
|
6037
|
-
"type": "string",
|
|
6038
|
-
"example": "maxFileSize"
|
|
6039
|
-
},
|
|
6040
|
-
"value": {
|
|
6041
|
-
"type": "number",
|
|
6042
|
-
"example": 104857600
|
|
6043
|
-
}
|
|
6044
|
-
},
|
|
6045
|
-
"required": ["type", "value"]
|
|
6887
|
+
"type": "string",
|
|
6888
|
+
"example": "communityId@g.us"
|
|
6046
6889
|
}
|
|
6047
6890
|
}
|
|
6048
6891
|
],
|
|
@@ -6074,24 +6917,6 @@
|
|
|
6074
6917
|
"type": "string",
|
|
6075
6918
|
"example": "NERDWHATS_AMERICA"
|
|
6076
6919
|
}
|
|
6077
|
-
},
|
|
6078
|
-
{
|
|
6079
|
-
"name": "obj",
|
|
6080
|
-
"in": "body",
|
|
6081
|
-
"schema": {
|
|
6082
|
-
"type": "object",
|
|
6083
|
-
"properties": {
|
|
6084
|
-
"event": {
|
|
6085
|
-
"type": "string",
|
|
6086
|
-
"example": "conversation_status_changed"
|
|
6087
|
-
},
|
|
6088
|
-
"private": {
|
|
6089
|
-
"type": "string",
|
|
6090
|
-
"example": "false"
|
|
6091
|
-
}
|
|
6092
|
-
},
|
|
6093
|
-
"required": ["event", "private"]
|
|
6094
|
-
}
|
|
6095
6920
|
}
|
|
6096
6921
|
],
|
|
6097
6922
|
"responses": {
|
|
@@ -6106,7 +6931,33 @@
|
|
|
6106
6931
|
{
|
|
6107
6932
|
"bearerAuth": []
|
|
6108
6933
|
}
|
|
6109
|
-
]
|
|
6934
|
+
],
|
|
6935
|
+
"requestBody": {
|
|
6936
|
+
"required": true,
|
|
6937
|
+
"content": {
|
|
6938
|
+
"application/json": {
|
|
6939
|
+
"schema": {
|
|
6940
|
+
"type": "object",
|
|
6941
|
+
"properties": {
|
|
6942
|
+
"event": {
|
|
6943
|
+
"type": "string"
|
|
6944
|
+
},
|
|
6945
|
+
"private": {
|
|
6946
|
+
"type": "string"
|
|
6947
|
+
}
|
|
6948
|
+
}
|
|
6949
|
+
},
|
|
6950
|
+
"examples": {
|
|
6951
|
+
"Default": {
|
|
6952
|
+
"value": {
|
|
6953
|
+
"messageId": "conversation_status_changed",
|
|
6954
|
+
"private": "false"
|
|
6955
|
+
}
|
|
6956
|
+
}
|
|
6957
|
+
}
|
|
6958
|
+
}
|
|
6959
|
+
}
|
|
6960
|
+
}
|
|
6110
6961
|
}
|
|
6111
6962
|
},
|
|
6112
6963
|
"/api-docs": {
|