sandesh संदेश

Accepted ADR 0002 · 2026-10-26

#2. Talk to Google's APIs, not IMAP

#Context

sandesh needs both Gmail and Google Chat. IMAP and SMTP would cover mail with existing tools (isync, msmtp), but Google Chat has no open protocol: its only programmatic access is the Chat REST API with OAuth. Workspace admins also often turn IMAP off.

#Decision

Use the Gmail API, the Google Chat API and the People API over plain REST, with one OAuth client the user creates in their own Cloud project. Sign-in is the loopback flow with PKCE; refresh tokens go to the Secret Service keyring through secret-tool.

#Consequences

← All decisions · source