Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding Gmail Snooze dates in API

Is it possible to access the date of a Gmail snooze through the API? I came accross a hack in stackoverflow that allows users to search for which emails are snoozed via a secret label search “label:snoozed”, but lables dont normally have an associated date, especially one that will return to the inbox in the future.

Im trying to create a web routine that syncs a todo list with emails and want to the due date to automatically update with when the snoozed email will re-appear.

Is this possible with any API or developer resources google offers?

like image 467
tom Avatar asked Jan 22 '19 16:01

tom


People also ask

How do I see snooze reminders in Gmail?

Under Snooze until, choose a time. The email automatically snoozes and moves out of your inbox. You will get a reminder about the snoozed email after the specified time. (Optional) To see all snoozed email, click Snoozed in the left sidebar.

Why is Gmail Snooze?

Snooze is a Gmail feature that helps you stay on top of your inbox by reminding you to follow up on emails you didn't initially have the time or bandwidth to respond to. The Snooze button appears in the subject line bar of your emails when you tap your finger on or run the cursor over the message in Gmail.


1 Answers

No, you can’t retrieve the date of a Gmail snooze using the API. There is a Feature Request already reported for this behavior on Issue tracker: https://issuetracker.google.com/issues/109952618

At the moment you can only list them and retrieve the messages that has this label ‘snoozed’ active on them:

GET https://www.googleapis.com/gmail/v1/users/me/messages?q=label%3Asnoozed
like image 81
Luca Bartolacci Avatar answered Sep 19 '22 01:09

Luca Bartolacci