---
title: "Google Health: Enable webhooks for near real time data delivery"
canonical: "https://help.validic.com/space/VCS/5754421279/Google%20Health%3A%20Enable%20webhooks%20for%20near%20real%20time%20data%20delivery"
format: markdown
---
# Setting Up Webhooks for Google Health

Webhooks allow Validic to receive real-time notifications from Google Health when your users' data changes, eliminating the delay of scheduled sync jobs. This section covers the steps you need to complete in Google Cloud Console to enable webhooks.

If you don’t set up webhooks, then your end user’s Google Health data will be captured by scheduled jobs that run on the schedule below:

1. Hourly jobs for summary and workout endpoints
2. Twice a day for sleep and measurement endpoints

Due to that and the desire for near real time data syncs, webhooks are highly suggested for the Google Health integration. 

## Step 1: Create a Service Account

The Google Cloud Console project you created the Google Health credentials in needs a service account - a special account that allows Validic to manage webhooks on your behalf.

1. Use the same project you used in this step of creating your Google Health API credentials previously: [https://help.validic.com/space/VCS/5581111299/Google+Health:+Getting+credentials+from+Google+Console#Access-the-Google-Cloud-Console](https://help.validic.com/space/VCS/5581111299/Google+Health:+Getting+credentials+from+Google+Console#Access-the-Google-Cloud-Console)
  1. In Google Cloud Console, make sure your project with the Google Health credentials is selected in the project picker (top left).
2. Navigate to IAM & Admin from the left sidebar menu
3. Click Service Accounts
    
4. Click Create Service Account at the top
    
5. Enter a service account name (for example, "validic-webhooks"). The service account ID will populate with that naming convention.  Click Create and Continue
    
6. On the Permissions screen, click the "Select a role" dropdown
7. Type "Google Health API Editor" to search for the role and select it from the results
    
8. Click Continue
9. On the "Principals with access (optional)" screen, click Done without selecting any roles - you do not need to grant access to other users for this integration
10. In the Actions column (far right), click the menu icon and select Manage Keys
    
11. Click Add Key, then Create New Key
    
12. Select JSON as the key type
13. Click Create - a JSON file will download to your computer

This JSON file contains the access key Validic needs. Do not share this file or its contents with anyone outside your organization - treat it like a password. The **entire file will need to be shared with Validic **to enable the webhooks. Configuration requires the full JSON entry. 

## Step 2: Send Service Account Key to Validic

1. In your existing support ticket ([or create a new one](https://help.validic.com/space/VCS/1725693964)), provide:
  - The JSON file you downloaded in Step 8
  - Confirmation that you want webhooks enabled
  - Any specific data types you do not want to sync via webhooks (if none, we'll enable all available types)

Validic support will use this information to activate webhooks for your organization.