Insufficient Integration permissions to set Gmail labels

Hi everyone,
i want to use activepieces to label emails for me, but the Gmail piece does not seem to have sufficient permissions to do this via custom API call. Is there a known workaround for this? Maybe i just missed something. According to the API Docs we need either https://mail.google.com/ or
https://www.googleapis.com/auth/gmail.modify to be in scope to hit the correct endpoint (https://gmail.googleapis.com/gmail/v1/users/{userId}/messages/{id}/modify)

Any help is appreciated, thanks!

Hi @dnik,

I don’t think we have this scope approved by Google, and it might not be straightforward for us to add. One workaround, though a bit annoying, is to click on “Connect with your own credentials” and create your own client ID and client secret. This way, you don’t need approval from Google since you are using it for yourself, making it a faster solution.

So, what is the utility of the gmail custom API piece if it’s not at @dnik described? How can it be used? Can you show an example?

I tired this - and (I’m a novice), but when I add Activepieces to my Google Cloud OAuth Redirect URLs, I get a message from Google say:

Access blocked: activepieces.com has not completed the Google verification process