Terra
Data Developer id and API keyRead wearable and health data — activity, sleep, body, nutrition — through Terra from any Windmill script, flow or app.
Set up in 3 steps
Copy your developer id and API key
In the Terra dashboard, both are on your developer account page.
Add the resource in Windmill
Open Resources, add a resource of type terra, and fill devId and apiKey.
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
Retrieve user profile info for a given user ID
Retrieve sleep sessions for a given user ID
Retrieve nutrition log data for a given user ID
Retrieve menstruation data for a given user ID
Retrieve daily activity summaries for a given user ID
Retrieve body metrics for a given user ID
Retrieve activity data for a given user ID
Post workout plans to a provider
Post nutrition logs to a provider
Post body data to a provider
Post activity data to a provider
Modify user
Get list of available integrations
Get information for multiple user IDs
Get information for a single user ID or multiple users by reference ID
Get detailed list of integrations
Get all Terra User IDs
Generates an authentication token for the Terra mobile SDKs
Generate an authentication link, using the Terra Authentication Widget
Generate an authentication link
Delete workout plans for a given user ID
Delete nutrition logs for a given user ID
Delete body metrics for a given user ID
Deauthenticates a user and deletes any cached data for them
Resource type
terra — the shape of the credential every script on this page expects.
| Field | Type | Required | What it is |
|---|---|---|---|
| apiKey | string | Yes | API key from the dashboard |
| devId | string | Yes | Developer 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.