# How to detect user sending a draft

**URL:** <https://forums.nylas.com/t/how-to-detect-user-sending-a-draft/675>\
**Category:** Question and Answers\
**Created:** [April 25, 2025, 7:30pm UTC](https://forums.nylas.com/t/how-to-detect-user-sending-a-draft/675 "2025-04-25T19:30:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oskar](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.nylas.com/oskar/32/212_2.png) [@oskar](https://forums.nylas.com/u/oskar)\
**Post date:** [April 25, 2025, 7:30pm UTC](https://forums.nylas.com/t/how-to-detect-user-sending-a-draft/675/1 "2025-04-25T19:30:34Z")

</div>

What is the correct way to detect whether a draft email that was generated through the Nylas API was sent by the user? For Gmail, I can detect whether the folder the draft email shows up in the’sent’ folder, but that doesn’t work for Outlook because Outlook doesn’t put it in a sent folder. It just stays in the inbox folder. So how do I know if it was sent by the user?

I seem to be unable to link the draft to the sent message. Like there doesn’t seem to be any ID that points from one to the other.

---

<div class="post-metadata">

**Author:** ![ram](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.nylas.com/ram/32/3_2.png) [@ram](https://forums.nylas.com/u/ram)\
**Post date:** [May 1, 2025, 4:50pm UTC](https://forums.nylas.com/t/how-to-detect-user-sending-a-draft/675/2 "2025-05-01T16:50:26Z")

</div>

Hi @oskar - thanks for posting.

[Shifting email from draft to sent folder is only available if its done by the Provider](https://developer.nylas.com/docs/v3/email/send-email/#choose-how-to-send-messages) (so seems only Gmail in this scenario).

One way to check for drafts is using the `has_drafts` field for GET /threads call which includes `draft_ids`: [Nylas v3 Email, Calendar, and Contacts API docs | Docs](https://developer.nylas.com/docs/api/v3/ecc/?redirect=api#tag/threads/GET/v3/grants/%7Bgrant_id%7D/threads)
