Connect Gmail service account
POST/api/orgs/:org_id/email/connections/service-account
Connects a Gmail mailbox through a Google Workspace service account with domain-wide delegation: address is the mailbox and key_json the service account's JSON key file. Google is asked to act as the mailbox for sending and reading before anything is saved, and reconnecting an address replaces its key. Refused with 422 naming what to fix (a malformed address or key, or delegation Google refuses) and with 403 when Tenant email is not on the plan or the caller is not an Org Owner or Org Admin.
Request
Responses
- 200
- 422
OK
Unprocessable content