Configuring Google OAuth2 for messengers API Chains

When creating certain chain templates (for example, a chain with Google sheets), an OAuth2 key and secret are required. This usually means that you need to add a token key so that the server can use it to access your project in Google and use its power to make requests. We chose this path because it saves you money - Google allows you to use part of the queries for free, often these capacities are enough for the implementation of the project.

To configure Google OAuth2:

1 - Create your new project in Google Cloud or select an existing one;

2 - Enable billing for correct operation;

3 - Go to the project libraries section, find and connect the library required for work. For example, if you are going to link messengers API chains with Google natural language, then specify the Google natural language library.

Google will also remind you about the need to connect billing to the project.

4 - Next, you need to create or add a certificate. Go to the "Credentinals" section and click on the “Create credentinals" button at the top of the screen, select create OAuth Client id;

5 - If you are creating an OAuth2 key for the first time, then you will be prompted to set up a permission confirmation page from the user, if you already have an OAuth2 key created, go to item number 8;

6 - Select the external option for the user type;


7 - Then the procedure takes the following form:

Specify any name of the application;

Select your e-mail, specify the same e-mail under the address of the tester;

Click "next", click "next" again on the page with scopes;

In the tester, we create a tester with our e-mail - this is important;

Click next - we will be shown general information, click back to the dashboard and go back to creating the OAuth2 key in the Credentials section.

8 - Select the type of application Web application;

9 - Enter your own key name if you want to remember why you need it;

Authorized JavaScript sources specify - , The authorized redirect URI specify - . Click on the "Create" button.

10 - Copy and paste the key and key secret into the initial setup. In the future, you can find these parameters again in editing the key. You are always free to revoke the key if you so wish.


Congratulations, you have set up Google OAuth2 for the messengers API chain.



Was this article helpful?

Your opinion will be used to improve the content of the article

The Most Multifunctional API Provider

Chat API has been operating since 2015 and is one of the first and largest providers in Eastern Europe.

Here are some curious and important figures:

  • We have tremendous expertise in docker container management at scale with an SLA of 99.5+%;
  • Chat API involves in its work more than 200 servers, with the ability to quickly connect another 100;
  • 3200 cores and 25 terabytes of RAM;
  • 200+ methods and features that keep adding;
  • Highload system, Up Time servers 99.9%;
  • Support 24\7;
Get access to the API