Google Service Account

Configure Google Service Account for Gmail API with domain-wide delegation

Service Account Credentials
Upload your service account JSON file or paste the credentials manually

Download this from Google Cloud Console → IAM & Admin → Service Accounts

The email address of your service account

The private key from your service account JSON file

Required OAuth Scopes
Ensure these scopes are added in Google Workspace Admin Console
https://www.googleapis.com/auth/gmail.send
https://www.googleapis.com/auth/gmail.compose
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.readonly
https://www.googleapis.com/auth/adwords
Setup Instructions
1. Create Service Account:

Go to Google Cloud Console → IAM & Admin → Service Accounts → Create Service Account

2. Download JSON Key:

Click on the service account → Keys → Add Key → Create New Key → JSON

3. Enable Domain-Wide Delegation:

Service Account → Show Domain-Wide Delegation → Enable

4. Add OAuth Scopes:

Google Workspace Admin Console → Security → API Controls → Manage Domain Wide Delegation → Add the scopes listed above