# Gmail API pull files from users Gmail daily and process them with OCR API to get invoices information

**URL:** <https://forum.bubble.io/t/gmail-api-pull-files-from-users-gmail-daily-and-process-them-with-ocr-api-to-get-invoices-information/369937>\
**Category:** APIs\
**Created:** [May 17, 2025, 5:30pm UTC](https://forum.bubble.io/t/gmail-api-pull-files-from-users-gmail-daily-and-process-them-with-ocr-api-to-get-invoices-information/369937 "2025-05-17T17:30:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aurasactive](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/aurasactive/32/247888_2.png) [@aurasactive](https://forum.bubble.io/u/aurasactive)\
**Post date:** [May 17, 2025, 5:30pm UTC](https://forum.bubble.io/t/gmail-api-pull-files-from-users-gmail-daily-and-process-them-with-ocr-api-to-get-invoices-information/369937/1 "2025-05-17T17:30:44Z")

</div>

I started to build invoices CRM saas, the system need to pull files from users Gmail daily and process them with OCR API to get invoices information.  
I started to set up the Gmail API but I struggling to get the access token and the refresh token.  
Also i struggling in get the file with the api.  
Looking for reliable help!

---

<div class="post-metadata">

**Author:** ![Eugene\_West](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/eugene_west/32/106508_2.png) [@Eugene\_West](https://forum.bubble.io/u/Eugene_West)\
**Post date:** [May 19, 2025, 5:49am UTC](https://forum.bubble.io/t/gmail-api-pull-files-from-users-gmail-daily-and-process-them-with-ocr-api-to-get-invoices-information/369937/2 "2025-05-19T05:49:23Z")

</div>

You won’t be granted production access from Google( you asking to read personal information) . [Bubble.io](http://Bubble.io) doesn’t match their security requirements. You will need your own code based app and pay big cash for security part.

I’ve been through that already. They sent me a huge PDF of security issues after their own audit.

Bubble support respond me back that they cannot make those changes as it involves touching a source code

---

<div class="post-metadata">

**Author:** ![Eugene\_West](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/eugene_west/32/106508_2.png) [@Eugene\_West](https://forum.bubble.io/u/Eugene_West)\
**Post date:** [May 19, 2025, 6:05am UTC](https://forum.bubble.io/t/gmail-api-pull-files-from-users-gmail-daily-and-process-them-with-ocr-api-to-get-invoices-information/369937/3 "2025-05-19T06:05:42Z")

</div>

u could build a small node js app that integrates with [https://www.nylas.com/](https://www.nylas.com/) and speaks with your bubble app ( good news is security part handled by this provider so u don’t have to care about audit from google ). Mind pricing tho
