You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***Description:** Sets up an auto-reply for a specific phone number. If an auto-reply for the given phone number already exists for the user, it will be updated. If not, a new one will be created.
712
+
***Authentication:** Requires user token.
713
+
***Request Body (JSON):**
714
+
```json
715
+
{
716
+
"Phone": "1234567890", // Target phone number (normalized, e.g., digits only or international format used by the system)
717
+
"Body": "Hello! I am currently unavailable and will get back to you soon."
718
+
}
719
+
```
720
+
***Responses:**
721
+
*`201 Created`: If a new auto-reply was successfully created.
722
+
```json
723
+
{
724
+
"code": 201,
725
+
"data": {
726
+
"detail": "Auto-reply added successfully",
727
+
"id": "generated-unique-id-for-the-rule"
728
+
},
729
+
"success": true
730
+
}
731
+
```
732
+
* `400 Bad Request`: If `Phone` or `Body` is missing or invalid.
733
+
* `409 Conflict`: If an auto-reply for this phone number already exists for the user.
734
+
* `500 Internal Server Error`: For other server-side errors.
735
+
736
+
---
737
+
738
+
### Delete Auto-Reply
739
+
* **Method:** `DELETE`
740
+
* **Path:** `/chat/autoreply`
741
+
* **Description:** Deletes an existing auto-reply for a specific phone number for the authenticated user.
742
+
* **Authentication:** Requires user token.
743
+
* **Request Body (JSON):**
744
+
```json
745
+
{
746
+
"Phone": "1234567890"// Target phone number whose auto-reply rule should be deleted.
747
+
}
748
+
```
749
+
***Responses:**
750
+
*`200 OK`: If the auto-reply was successfully deleted.
751
+
```json
752
+
{
753
+
"code": 200,
754
+
"data": {
755
+
"detail": "Auto-reply deleted successfully"
756
+
},
757
+
"success": true
758
+
}
759
+
```
760
+
* `400 Bad Request`: If `Phone` is missing or invalid.
761
+
* `404 Not Found`: If no auto-reply rule exists for the given phone number for this user.
762
+
* `500 Internal Server Error`: For other server-side errors.
763
+
764
+
---
765
+
708
766
## Download Document
709
767
710
768
Downloads a Document from a message and retrieves it Base64 media encoded. Required request parameters are: Url, MediaKey, Mimetype, FileSHA256 and FileLength
0 commit comments