For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quickstart

Connect a wearable and see its data arrive, in four steps from the Terra dashboard.

Terra connects your users' wearables and health apps, then sends their data to you. This page walks through that once, from the Terra dashboard, using your own wearable account as the test user. No code needed.

2 minute video walkthrough

Before you begin

  • A Terra account. See Account setup.

  • A wearable or health app account to connect, such as Fitbit, Oura, or Garmin.

  • Somewhere to receive data. webhook.site gives you a URL that shows every payload Terra sends, with nothing to install. Step 2 also covers running your own local server.

Connect your first wearable

1

Choose your data sources

Go to Connections in the dashboard and, under Sources, enable the wearables and apps you want your users to connect. Enable the one you own for this test. Enabled sources are the ones your users can pick from.

2

Choose where data goes

On the same page, under Destinations, add a Webhook and paste your webhook.site URL. Terra sends every user's data here as it becomes available. A webhook is the simplest destination; databases, cloud storage and queues are also supported.

Two ways to get a webhook URL

webhook.site: open webhook.site and copy Your unique URL. Payloads appear on the page as they arrive. Nothing to install.

Your own server: run a small web server on your machine, then expose it to the internet with ngrok. ngrok http 8080 prints a public URL to paste into the dashboard.

3

Connect a wearable

Go to Authentication. This page previews the Terra widget, the screen your users see when they connect. Open it, pick the source you enabled, and log in with your own account.

This is the flow your users will go through, so the login is the provider's own, not Terra's.

4

See the data arrive

Switch to your webhook.site tab. The first payload is an auth event confirming the connection. Data payloads follow as the provider syncs: activity, sleep, daily, body, and nutrition.

To see a data payload right away, go to Data generator in the dashboard and send a sample to your destination.

That is the whole loop: a user connects once, and Terra keeps sending their data to your destination.

Optional: Run it with your coding agent

If you use Claude Code, Cursor, or another coding agent, paste this prompt. The agent does the steps above through the Terra CLI and reports back.

terminalRun the quickstart with your coding agent

Build it into your app

Your app repeats the same four steps, with two differences.

  • Your app opens the widget for each user. Your backend creates a widget session with one API call and sends the user to the URL it returns. See Terra authentication widget. The call needs your API keys, found under API Keys in the dashboard.

  • Your server receives the data. Replace webhook.site with your own endpoint. See Webhooks for handling payloads and verifying they came from Terra.

Keep your API key on your server, never in an app or web page.

Each connection gets a user_id from Terra. Every payload carries it, and it is how you request that user's data. Pass your own identifier as reference_id when you open the widget, and Terra returns it alongside the user_id so you can match the two. See Core concepts.

Next steps

Last updated

Was this helpful?