Question: How to send attachment messages using Chatwoot API #1809
Replies: 6 comments 9 replies
|
Use POST multipart/form-data request to /accounts/{account_id}/conversations/{id}/messages with attachments[] field |
|
what should i change in this json request for sending files and images? dictToSend = { |
Creating an attachment messagePostman link: https://www.postman.com/chatwoot/workspace/chatwoot-apis/request/162770-e22922ab-27e5-4d82-a672-a52f6555ed21 curlPHPrubyAfter creating the attachment message, it becomes accessible via the conversation API |
|
Is there anyway to send a url for the file instead of uploading the file itself for attachment? @sojan-official |
|
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. |





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