Gmail Logo

Gmail API Integration Profile

Information and guides about integrating with Gmail API

Add Gmail Integration to Your App

Gmail Users Watch in Gmail API

Set up or update a push notification watch on the given user mailbox.

Input schema fields
Field NameAPI KeyTypeDescription
Path ParameterspathParametersobject
User IdpathParameters.userIdstring
Queryqueryobject
DatadataobjectSet up or update a new push notification watch on this user's mailbox.
Label Idsdata.labelIdsarray of stringsList of label_ids to restrict notifications about. By default, if unspecified, all changes are pushed out. If specified then dictates which labels are required for a push notification to be generated.
Output schema fields
Field NameAPI KeyTypeDescription
History IdhistoryIdstringThe ID of the mailbox's current history record.
ExpirationexpirationstringWhen Gmail will stop sending notifications for mailbox updates (epoch millis). Call `watch` again before this time to renew the watch.

Build every single integration your customers need with AI

Talk to an expert