# API: כיצד לקבל את כל ההודעות הפרטיות הכוללות משתמש (כולל הודעות שנשלחו)

**URL:** <https://meta.discourse.org/t/api-how-to-get-all-private-messages-that-include-a-user-including-sent-messages/214655>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [12 בינואר,‏ 2022,‏ 4:03pm UTC](https://meta.discourse.org/t/api-how-to-get-all-private-messages-that-include-a-user-including-sent-messages/214655 "2022-01-12T16:03:43Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![JQ331](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@JQ331](https://meta.discourse.org/u/JQ331)\
**Post date:** [12 בינואר,‏ 2022,‏ 4:03pm UTC](https://meta.discourse.org/t/api-how-to-get-all-private-messages-that-include-a-user-including-sent-messages/214655/1 "2022-01-12T16:03:43Z")

</div>

Using the API, I want to return a list of all private messages that include a user (any private message with their username attached to it). This would include all private messages for a user and also all private messages sent by a user.

I’m only seeing these separated as two separate calls [in the API](https://docs.discourse.org/#operation/getUserSentPrivateMessages). Is there a way to get all private messages back without having to make two separate calls?

---

_[View the full topic](https://meta.discourse.org/t/api-how-to-get-all-private-messages-that-include-a-user-including-sent-messages/214655)._
