Terra Docs
Dashboard
  • Docs
  • API Reference
  • Changelog
  • Get started ⚡️ Choose your integration
  • Health & Fitness API
    • Overview
    • Set up your Integrations
    • Connect a User
    • Receive data updates
    • Request Historical data
    • Write data
    • Debugging FAQ
    • Mobile-Only Sources: Apple, Samsung, Google Fit
      • iOS (Swift)
      • Android (Kotlin)
      • React Native
      • Flutter
  • Streaming API
    • Getting Started
    • Wearable -> Your app
      • iOS (Swift)
      • Android
    • Your app -> Terra
      • iOS (Swift)
      • Android
    • Terra -> Your Backend
  • Teams API
  • Biomarkers API - Upcoming
Powered by GitBook
On this page
  • Set up your Data Sources & Destinations
  • Customize data access
  • Detailed information on available integrations
  • Integrations subject to changes by data provider
  • Creating your own access keys
  • Provider-specific guides
  • Strava
  • Virtuagym
  • Huawei
  • FreestyleLibre

Was this helpful?

  1. Health & Fitness API

Set up your Integrations

PreviousOverviewNextConnect a User

Last updated 1 day ago

Was this helpful?

In this guide, you'll learn how to enable & disable in one click, and connect Terra into your of choice

Set up your Data Sources & Destinations

As a first step, head to on , and set up data &

If you are just starting off building your product and want to test how Terra works, use to set up a testing webhook going forward.

For further information about each destination, please see

Customize data access

Whenever you connect a through Terra, you may not want access to all data in their account. In order to customize what data you request from the user (see ), select permissions displayed for each

In order to then start receiving data, you'll learn what kind of you can expect, before receiving real world data by . Continue by learning about the different supported integrations, and any special processes required by any of them for setup

Detailed information on available integrations

Integrations with special processes list

Health Connect-based integrations:

Integrations requiring dedicated credentials:

Google Fit (SDK), Samsung Health: Health Connect (HC)-based integrations

Currently the integrations mentioned above go through the newly developed Health Connect platform, which is an on-device storage system developed by Google. This platform however is still in its infancy, and comes with a number of issues.

Health connect known issues

We have seen numerous cases of apps not being able to sync into Health Connect due to bugs in the Health Connect platform itself. This could be, for example, Samsung Health not being able to send steps into HC.

We've also seen cases where HC data simply could not be accessed, for no apparent reason, leading to limited or no syncing of data possible.

In the form, you will need to specify which data types you intend to read from Health Connect.

Samsung Health - Direct connection route

As privileged partners of Samsung thanks to their investment in Terra, we have been granted access to their SDK for accessing Samsung Health directly without Health Connect.

This route is much preferred to the Health Connect route due to the reasons discussed above. For access to this route, please get in touch with us through our support channels.

Integrations subject to changes by data provider

Some of the integrations provided are developed on agreements subject to be updated by the integration providers. Their APIs can be modified without notifying Terra or 3rd parties, which could cause disruption in the service beyond our control.

Creating your own access keys

For some providers such, you are may choose to have your own application keys either because the provider requires it in there terms, or to simply avoid rate limits and separate your environment from the managed Terra keys.

Provider-specific guides

Strava

  1. Create an application

  2. Set the Authorization callback domain to api.tryterra.co, and save the client ID and client secret obtained

  3. In your Terra dashboard, add Strava to your connections under API > Connections > Add more

  4. Fill in the obtained client_id and client secret on that connection's settings

Virtuagym

  • In you Terra dashboard, add Virtuagym to your connections under API > Connections > Add more

  • After adding Virtuagym, go the Virtuagym options

  • Fill your portal name in the client id, and your API Key in the client secret

Huawei

Create a Huawei ID

📘 Identity verification

Through the Huawei ID Registration process, you will be asked to verify your identity.

Apply for the HUAWEI ID Service

📘 Important parameters

Name
Value

Redirect URL

App access URL

Callback address

Apply for Huawei Health Kit access

FreestyleLibre

In Germany, Austria and France, it is necessary to have a doctor's license to be able to access Freestylelibre of users residing in said regions. This would mean having a registered practice. Once you have a practice id for a practice on the Libreview web app, you then would need to let us know the details and we will be able to proceed as per the normal procedure.

Before going LIVE (release), you will ALSO need to apply for permissions to access the Health Connect API with Google's . Additional information can be found .

Those integrations are any of the ones with credentials marked as N/A in the

The list of provider enums you may choose to create your own keys for & their appropriate developer dashboard is the ones with Managed credentials in the

Log in to

Request an API key from

This can be achieved by following the

If you own a business, please follow the guide for or the guide

If you are an individual developer, follow using your personal documents

This is separate from the Huawei ID registration - the service is what will allow you to then access various Huawei APIs). Follow the guide for a step-by-step explanation on how to achieve that

Please follow the guide Health Kit access for an in-depth explanation of how to gain access to users' health data through Huawei Health Kit

Make sure to register for notifications (webhooks) by following :

Play Console
here
https://strava.com/settings/api
https://virtuagym.com/public-api
Registration & Verification guide
DUNS number verification
using a Business License
this guide
here
here
these steps
table above
table above
https://api.tryterra.co/v2/auth/huawei/oauth2
https://api.tryterra.co/
https://api.tryterra.co/v2/hooks/huawei/healthkit/notifications
your Terra Dashboard
the Connections page
https://webhook.site
data messages
connecting a user
WHOOP
Dexcom
Samsung Health
Google Fit
Huawei
FreestyleLibre (Germany, Austria, France)
Connect a User
Destinations
sources
Destination
Sources
Destinations
User
Data Source