Skip to main content
POST
Gmail Pub/Sub push webhook

Body

application/json
message
object

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"