Why your own client?
Reading and sending mail over IMAP and SMTP needs Google's full Gmail permission, https://mail.google.com/. Google classes it as a restricted scope: a shared app that wants it for everyone must pass Google's verification plus a paid, independent security assessment every year.
A client you create yourself, used for your own mailboxes, doesn't need any of that. The connection is between your Google account and your own client; WireShock just uses the client you give it. The trade-off is a one-time setup, and a warning screen from Google that is expected and explained below.
Prefer not to? If your Google account has 2-Step Verification, a Gmail app password works too and takes two minutes. OAuth is the better long-term option: it never touches your Google password and you can revoke it from your Google Account at any time.
Steps
Create a Google Cloud project
Sign in to the Google Cloud console with any Google account (it doesn't have to be the Gmail address you're connecting). Create a new project. No billing account is needed.
New projectconsole.cloud.google.comProject nameWireShock MailLocationNo organizationClick Create, wait a few seconds, and make sure the new project is selected in the project picker at the top of the console.
Enable the Gmail API
Open Gmail API in the API Library and click Enable. WireShock talks to Gmail over IMAP and SMTP, but enabling the API makes the Gmail scope easy to find in step 5.
APIs & ServicesLibraryGmail APIEnable
Set up Google Auth Platform
Open Google Auth Platform (in older menus: APIs & Services, OAuth consent screen) and click Get started. The wizard asks for four things:
Google Auth Platform · Project configurationApp information: App nameWireShock MailApp information: User support emailyour own email addressAudienceInternalExternalContact informationyour own email addressAgree to the Google API Services User Data Policy and click Create.
- Choose External for a personal Gmail account. Internal is only available to Google Workspace organizations and only works for accounts inside that organization.
- Don't upload a logo under Branding. A logo triggers Google's brand verification, which you don't need for a personal client.
Publish the app to production
Go to Audience. Under Publishing status you'll see Testing. Click Publish app and confirm.
Audience · Publishing statusTestingIn productionDon't skip this. While an External app is in Testing, Google expires its refresh tokens after 7 days. Gmail would stop syncing a week after you connect, and you'd have to sign in again every week.
Publishing doesn't list your app anywhere or make it public. Since you won't submit it for verification, it simply stays unverified. Only you will use it, and Google caps unverified apps at 100 users, which is plenty for you and your family.
Add the Gmail scope
Go to Data access, click Add or remove scopes, and find the scope below. Either filter the list for it, or paste it into Manually add scopes and click Add to table. Tick it, click Update, then Save.
Data access · ScopeRestrictedhttps://mail.google.com/Google describes it as "Read, compose, send, and permanently delete all your email from Gmail". IMAP and SMTP access need exactly this scope; there is no narrower one that works.
Google may show a notice that your app needs verification for this scope. You can ignore it: verification is only required for apps used by the public.
Create the OAuth client
Go to Clients and click Create client.
Create OAuth client IDApplication typeWeb applicationNameWireShockAuthorized JavaScript originsleave emptyAuthorized redirect URIs: Add URIhttps://app.wireshock.com/api/oauth/gmail/callbackThe redirect URI must match exactly:
https, no trailing slash, no extra spaces. Click Create.A dialog shows your Client ID (ending in
.apps.googleusercontent.com) and Client secret (starting withGOCSPX-). Copy both now, or click Download JSON.Google may only show the client secret once. If you lose it, open the client, add a new secret, and delete the old one.
Connect in WireShock
In WireShock, add an account, choose Gmail and the option to use your own Google client. Paste the two values and click Connect.
WireShock · Add Gmail accountClient ID1234567890-abc…apps.googleusercontent.comClient secretGOCSPX-••••••••••••••••Google opens its sign-in page. Choose the Gmail account to connect, continue past the unverified-app screen, and allow access. You'll land back in WireShock with your mail syncing.
The "Google hasn't verified this app" screen
Because your client isn't verified by Google (and doesn't need to be), Google shows a warning before the consent screen. That's expected: you are the developer of this app, and the app name it shows is the one you typed in step 3.
Google hasn't verified this app
The app is requesting access to sensitive info in your Google Account…
Check that the app name and the email shown are yours, click Advanced, then Go to WireShock Mail (unsafe). On the next screen, make sure the Gmail permission is ticked, then click Continue.
Troubleshooting
Error 400: redirect_uri_mismatch
The redirect URI in your client doesn't exactly match the one WireShock uses. Open Clients, select your client, and make sure Authorized redirect URIs contains exactly:
https://app.wireshock.com/api/oauth/gmail/callback
Also check the client type is Web application (not Desktop). After saving, Google can take a few minutes to apply the change.
Error 403: access_denied
Usually: "WireShock Mail has not completed the Google verification process… can only be accessed by developer-approved testers." Your app is still in Testing and your account isn't on its test-user list.
Fix it by publishing the app to production. (Adding yourself under Audience, Test users also works, but tokens will then expire every 7 days.) You'll also see access_denied if you clicked Cancel on Google's consent screen; just try again.
invalid_grant or "Token has been expired or revoked"
If this appears about a week after connecting, the app was in Testing when you connected, so Google expired the token after 7 days. Publish the app (step 4), then reconnect the account in WireShock.
It can also happen if you revoked WireShock's access in your Google Account, changed your Google password, or the client secret was deleted. Reconnecting the account fixes it.
Error 403: org_internal
The audience is set to Internal, which only allows accounts in the Workspace organization that owns the project. Change the audience to External under Audience, or create the project inside your organization.
"Access blocked" or "This app is blocked" on a work or school account
Your Google Workspace administrator restricts third-party apps. Ask them to trust your client ID in the Admin console (Security, Access and data control, API controls), or have them create the client as an Internal app for your organization.
I lost the client secret
Open Clients, select your client, and add a new secret. Paste it into WireShock, then delete the old secret in Google Cloud.
Alternative: an app password
If you'd rather skip Google Cloud entirely and your account has 2-Step Verification turned on, you can connect Gmail over IMAP with an app password instead. Follow the Gmail app password guide. Some Google Workspace organizations disable app passwords; in that case use the OAuth route above.
Google occasionally renames menus in the Cloud console. If a label here doesn't match what you see, the steps and values still apply. Tell us and we'll update the guide. Last checked 29 November 2026.