Google Contacts

Allows you to automate via API the addition of contacts to your WhatsApp account for further use of contacts when adding to a group, as well as starting new private conversations.

Getting an integration token

  1. Go to Integrations and select the Google Contacts block.

  2. Select a channel and click the "Give permission to the application" button.

  3. 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!

  4. 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.

  5. 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!

  6. 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:

{
    "token": "YOUR_Google_auth_TOKEN",
    "contacts": [
        {
            "phone": "1505245559",
            "name": "1"
        },
        {
            "phone": "509832455540",
            "name": "2"
        },
        {
            "phone": "373983245541",
            "name": "3"
        }
    ]
}

Resetting a token and getting a new one

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