Title: API Information
Last modified: September 14, 2024

---

# API Information

 *  [priyam1234](https://wordpress.org/support/users/priyam1234/)
 * (@priyam1234)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/api-information/)
 *     ```wp-block-code
       Hello,I need some assistance with an issue I'm encountering.In the previous version of Better Messages, I used the endpoint /better-messages/v1/thread/31/upload/0 to upload images. However, before doing so, I needed to call the Better Messages API to obtain a message ID.With the new version, this process no longer works as expected. My current issue is that when I attempt to send an image without any accompanying text message in the chat, the 'save message' API is triggered. Since the text field is empty, it does not provide a new message ID, which prevents me from uploading the image.Do you have any solutions for this issue? Alternatively, have you introduced a new single API endpoint that can handle all these actions in one request?If possible, please share your API collection list with me, as it would be very helpful.Thank you!
       ```
   

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [wordplus](https://wordpress.org/support/users/wordplus/)
 * (@wordplus)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/api-information/#post-18014348)
 * Hi there!
   Unfortunately there is no API documentation available at the moment
   for file uploading.You can take a look into source code to understand how it 
   works:[https://plugins.trac.wordpress.org/browser/bp-better-messages/trunk/addons/files.php](https://plugins.trac.wordpress.org/browser/bp-better-messages/trunk/addons/files.php)
 * 
   Thanks!
 *  Thread Starter [priyam1234](https://wordpress.org/support/users/priyam1234/)
 * (@priyam1234)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/api-information/#post-18014388)
 * Hello 
   thank you for the link , so there are no any single API by using it i 
   can perform message and image upload togather?
 *  Plugin Author [wordplus](https://wordpress.org/support/users/wordplus/)
 * (@wordplus)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/api-information/#post-18014390)
 * Hi there!
   No, firstly need to upload images and only after that send the message
   and attach the images to it, this is only reliable way based on my experience.
   Thanks!
 *  Thread Starter [priyam1234](https://wordpress.org/support/users/priyam1234/)
 * (@priyam1234)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/api-information/#post-18014394)
 * Hello
   sorry for the trouble you.as per your solution .first i need to hit message
   APIand after that using that id i need to upload attachments?if yes then if i
   want to send attachment without any text message that is possible?if possible
   can you please share send message API endpoint so i can check it.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘API Information’ is closed to new replies.

 * ![](https://ps.w.org/bp-better-messages/assets/icon-256x256.png?rev=2835105)
 * [Better Messages - Chat Rooms, Group Chat, Private Messages & AI Chat Bots](https://wordpress.org/plugins/bp-better-messages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-better-messages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-better-messages/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-better-messages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-better-messages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-better-messages/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [priyam1234](https://wordpress.org/support/users/priyam1234/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/api-information/#post-18014394)
 * Status: not a support question