# Private message with attachment/upload via API

**URL:** <https://meta.discourse.org/t/private-message-with-attachment-upload-via-api/384250>\
**Category:** Support\
**Tags:** rest-api\
**Created:** [September 29, 2025, 6:35am UTC](https://meta.discourse.org/t/private-message-with-attachment-upload-via-api/384250 "2025-09-29T06:35:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![aidanheerdegen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aidanheerdegen/32/277061_2.png) [@aidanheerdegen](https://meta.discourse.org/u/aidanheerdegen)\
**Post date:** [September 29, 2025, 6:35am UTC](https://meta.discourse.org/t/private-message-with-attachment-upload-via-api/384250/1 "2025-09-29T06:35:34Z")

</div>

Is it possible to use the API to send a direct message with an attachment/upload?

This is possible through the web UI, but it isn’t obvious to me how to emulate this with the API.

---

_[View the full topic](https://meta.discourse.org/t/private-message-with-attachment-upload-via-api/384250)._
