Gmail Pub/Sub push webhook
Email
Gmail Pub/Sub push webhook
Receives Gmail Pub/Sub push notifications. The relay decodes the base64 payload, looks up the matching EmailAccount by history id, and triggers an incremental sync. Public endpoint — auth is enforced by the Pub/Sub OIDC token, not bearer JWT.
POST
Gmail Pub/Sub push webhook
Body
application/json
Pub/Sub push envelope wrapping the Gmail notification; decoded server-side to identify the affected mailbox.
Response
Plain-text acknowledgement. The body is the literal text OK; Pub/Sub only checks the 2xx status to mark the push delivery as acknowledged.
The response is of type string.
Example:
"OK"