Google Contacts integration (Beta test)
Beta test implies your request to use this integration
Getting an integration token
To get started, contact our support team to have us enter your email as beta test participants.
Go to Integrations and select the Google Contacts block.
Select a channel and click the "Give permission to the application" button.
You will be redirected to give permission for our application to Google. IMPORTANT: Choose the Google Account to which your phone's contacts are synchronized!
Synchronize Google with your phone contacts, which will add unfamiliar numbers to the group. To do this on your phone, go to "Accounts" and select your Google profile. Next, open the Account Synchronization tab. Activate the toggle switch next to "Contacts". Click the button in the form of three dots, and then select the "Synchronize" option. If everything is done correctly, the list of subscribers will be immediately uploaded to the Google Contacts servers.
After giving permission, you will be taken back to the integration page, now there is a new field: your token for requests to Google. Copy it!
Use this token when generating a request
Adding contacts
POST
https://tools.whapi.cloud/integrations/google_people/addContacts
The request will require specifying a Header with the name Authorization and the value "Bearer channel Token"
Body:
Please note that during the beta test of the integration, the token will expire after 7 days. After this period, you will need to obtain a new token.
Resetting a token and getting a new one
Due to the fact that this app has not yet been verified by Google, the token provided will expire 7 days after connection. This is usually enough time to upload massively new contacts to WhatsApp, but if you plan to continue using this feature, you will need to get a new token and before that reset the previous one.
You will need an endpoint to reset the previous token:
POST
https://tools.whapi.cloud/integrations/google_people/removeToken
The request will require specifying a Header with the name Authorization and the value "Bearer channel Token"
After resetting the token, we advise you to completely disable the old integration to avoid creating any errors in the future. To do this, delete the old integration with the Whapi.Cloud app in the accessibility settings of your Google account. You can do this by following this link: https://myaccount.google.com/connections?filters=3
Now that all the old information has been reset - you can get a new token again!
Last updated