---
title: "Handle Gmail Webhook"
method: POST
path: "/email/webhooks/gmail/"
tags: ["email"]
---

# Handle Gmail Webhook

`POST /email/webhooks/gmail/`

Handle Gmail push notification from Google Pub/Sub.

Decodes the Pub/Sub message, looks up the GmailConnection by email,
and enqueues an incremental sync task for each matching connection.

## Response `204`

Successful Response

---

[API](https://skmtc.dev/stardrift/apis/fastapi.md) · [All operations](https://skmtc.dev/stardrift/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stardrift/fastapi/revisions/00746572572a/schema)
