Sign in

Watch for push notifications

documented

Sets up or updates a push notification watch on the given user mailbox.

POST /gmail/v1/users/{userId}/watchUsersno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://gmail.googleapis.com/gmail/v1/users/{{$user_id}}/watch?key={{GMAIL_API_KEY}}" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"labelIds": {{$labelIds}}, "labelFilterAction": "{{$labelFilterAction}}", "labelFilterBehavior": "{{$labelFilterBehavior}}", "topicName": "{{$topicName}}"}'
Watch for push notifications · Gmail · OpenIntegrations