Skip to main content
POST
/
api
/
webhook
/
email
/
gmail
Gmail Pub/Sub push webhook
curl --request POST \
  --url https://your-instance.example.com/api/webhook/email/gmail \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": {
    "data": "eyJlbWFpbEFkZHJlc3MiOiJvcHNAYWNtZS5leGFtcGxlIiwiaGlzdG9yeUlkIjoxMjM0NTZ9"
  }
}
'
"OK"

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"