Terra

Data Developer id and API key

Read wearable and health data — activity, sleep, body, nutrition — through Terra from any Windmill script, flow or app.

Set up in 3 steps

1

Copy your developer id and API key

In the Terra dashboard, both are on your developer account page.

2

Add the resource in Windmill

Open Resources, add a resource of type terra, and fill devId and apiKey.

3

Run your first script

Fork any script below and read before writing anything.

Scripts

Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.

Retrieve workout plans for a given user ID

Script terra Verified

Retrieve user profile info for a given user ID

Script terra Verified

Retrieve sleep sessions for a given user ID

Script terra Verified

Retrieve nutrition log data for a given user ID

Script terra Verified

Retrieve menstruation data for a given user ID

Script terra Verified

Retrieve daily activity summaries for a given user ID

Script terra Verified

Retrieve body metrics for a given user ID

Script terra Verified

Retrieve activity data for a given user ID

Script terra Verified

Post workout plans to a provider

Script terra Verified

Post nutrition logs to a provider

Script terra Verified

Post body data to a provider

Script terra Verified

Post activity data to a provider

Script terra Verified

Modify user

Script terra Verified

Get list of available integrations

Script terra Verified

Get information for multiple user IDs

Script terra Verified

Get information for a single user ID or multiple users by reference ID

Script terra Verified

Get detailed list of integrations

Script terra Verified

Get all Terra User IDs

Script terra Verified

Generates an authentication token for the Terra mobile SDKs

Script terra Verified

Generate an authentication link, using the Terra Authentication Widget

Script terra Verified

Generate an authentication link

Script terra Verified

Delete workout plans for a given user ID

Script terra Verified

Delete nutrition logs for a given user ID

Script terra Verified

Delete body metrics for a given user ID

Script terra Verified

Deauthenticates a user and deletes any cached data for them

Script terra Verified

Resource type

terra — the shape of the credential every script on this page expects.

View raw schema →
FieldTypeRequiredWhat it is
apiKeystringYesAPI key from the dashboard
devIdstringYesDeveloper ID from the dashboard

Questions

A user returns no data

Terra reads through connections your users authorised. If the user has not linked that wearable, or the link expired, there is nothing to read.

This is health data

It is. Keep the resource in a folder only the right people can read, and be deliberate about what a flow stores.

Are my credentials stored on the hub?

Never. They live only in your own Windmill workspace, encrypted at rest.