Question: How to send attachment messages using Chatwoot API #1809
-
self hosted on linux |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 9 replies
-
Use POST multipart/form-data request to /accounts/{account_id}/conversations/{id}/messages with attachments[] field |
Beta Was this translation helpful? Give feedback.
-
@NitinNR Hope this link helps. |
Beta Was this translation helpful? Give feedback.
-
what should i change in this json request for sending files and images? dictToSend = { |
Beta Was this translation helpful? Give feedback.
-
Creating an attachment messagePostman link: https://www.postman.com/chatwoot/workspace/chatwoot-apis/request/162770-e22922ab-27e5-4d82-a672-a52f6555ed21 curl
PHP
ruby
After creating the attachment message, it becomes accessible via the conversation API |
Beta Was this translation helpful? Give feedback.
-
Is there anyway to send a url for the file instead of uploading the file itself for attachment? @sojan-official |
Beta Was this translation helpful? Give feedback.
-
Hello @sojan-official! I have a doubt: when I follow the instructions according to your Postman I got this... ...but I need this (another lib using ChatWoot API): So I need to show the preview for images and audio files. Can u help me pointing what I doing wrong? Tks. |
Beta Was this translation helpful? Give feedback.
Creating an attachment message
Postman link: https://www.postman.com/chatwoot/workspace/chatwoot-apis/request/162770-e22922ab-27e5-4d82-a672-a52f6555ed21
headers
body
curl
PHP