--- summary: "CLI reference for `openclaw webhooks` (Gmail Pub/Sub setup and runner)" read_when: - You want to wire Gmail Pub/Sub events into OpenClaw - You need the full flag list and default values title: "Webhooks" --- # `openclaw webhooks` Webhook helpers and integrations. Today this surface is scoped to Gmail Pub/Sub flows that integrate with the bundled `gog` watcher. ## Subcommands ```bash openclaw webhooks gmail setup --account [...] openclaw webhooks gmail run [--account ] [...] ``` | Subcommand | Description | | ------------- | -------------------------------------------------------------------------------------------- | | `gmail setup` | Configure Gmail watch, Pub/Sub topic/subscription, and the OpenClaw webhook delivery target. | | `gmail run` | Run `gog watch serve` plus the watch auto-renew loop. | ## `webhooks gmail setup` Configure Gmail watch, Pub/Sub, and OpenClaw webhook delivery. ```bash openclaw webhooks gmail setup --account you@example.com openclaw webhooks gmail setup --account you@example.com --project my-gcp-project --json openclaw webhooks gmail setup --account you@example.com --hook-url https://gateway.example.com/hooks/gmail ``` ### Required | Flag | Description | | ------------------- | ----------------------- | | `--account ` | Gmail account to watch. | ### Pub/Sub options | Flag | Default | Description | | ----------------------- | ---------------------- | ---------------------------------------------------- | | `--project ` | (none) | GCP project id (the OAuth client owner). | | `--topic ` | `gog-gmail-watch` | Pub/Sub topic name. | | `--subscription ` | `gog-gmail-watch-push` | Pub/Sub subscription name. | | `--label