Connect Gmail
For AI agents: the docs index is at /llms.txt, and every page is also served as markdown at its URL plus .md.
How Gmail access is granted, which four permissions InboxNight asks for and why, how several inboxes work, and what happens when you disconnect.
InboxNight connects to Gmail and Google Workspace through access you approve on Google's own permission screen. There is no password to give us. This page covers what you approve, how several inboxes work, and what happens when a connection ends.
Approving access on Google
InboxNight sets the connection up with you: write to hello@inboxnight.com and a person walks you through it, then you approve access on Google's permission screen. InboxNight exchanges the one-time code for a long-lived grant and encrypts the refresh token before storing it. The return address must match an allowed list exactly. If you said no at Google, nothing is connected.
Your Google account is identified by its stable Google ID, not by the email address, so renaming an address does not create a second account.
The four permissions
| Scope | What it is for |
|---|---|
openid | Signs you in with Google. |
userinfo.email | Shows which address a connected inbox belongs to. |
userinfo.profile | Shows your name in the app. |
gmail.modify | Reads new mail so rules can be judged, and changes it: labels, archive, star, spam and read state. It also covers sending a forward or an AI-written reply when a rule asks for one. |
Why gmail.modify
Every rule action changes a message or its labels, and undo reverses those changes, so read-only access cannot do the job. InboxNight has no delete action: none of the eight rule actions removes a message.
Unticked permissions are checked
Google lets you untick individual permissions on its consent screen. InboxNight checks which scopes were actually granted, and a connection that is missing gmail.modify does not complete. Nothing is created half connected.
Several inboxes
You can connect more than one inbox to one account. Each is connected separately and has its own status, patrol schedule and monthly count. A rule can be scoped to one inbox or apply to all of them. Each connected inbox counts as a seat on a paid plan; see Plans and limits.
When a connection stops working
If Google reports that the grant is no longer valid, for example because you revoked access in your Google account settings, the inbox moves to reauth_required. The patrol skips it, nothing is deleted, and the log records why. To fix it, connect that inbox again. The full list of statuses is in Errors and states.
Disconnecting
Disconnecting an inbox revokes the grant at Google and deletes the stored token. A disconnected inbox is no longer patrolled and no longer counts as a seat. To remove data beyond the token, see Privacy and data.
What is not supported
- Outlook, Microsoft 365 mail and IMAP are not supported.