Email inbox
Auto-pull invoices from Gmail. Sync runs read-only — Budget never sends or modifies your mail.
Gmail OAuth is not configured.
- Open Google Cloud Console → Credentials.
- Enable the Gmail API on the project.
- Create an OAuth 2.0 Client ID (type: Web application).
- Add this redirect URI:
https://budget.benheath.cc/api/integrations/gmail/callback - Set
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRETin.env.localand restart.
Connected mailboxes
Heath Media addresses scanned for incoming invoices
Cron sync
Set up a periodic sync from your VPS or any scheduler.
Set CRON_SECRET in .env.local, then call:
curl -X POST -H "X-Cron-Secret: $CRON_SECRET" https://budget.benheath.cc/api/integrations/gmail/syncRecommended cadence: every 15 minutes during business hours.