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.
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
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.
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
Unified API example app: a complete integration you can scaffold with one command.
User authentication: open the widget from your own app.
Historical data requests: get data from before the user connected.
Mobile SDKs: Apple Health, Samsung Health, and Health Connect need the mobile SDK.
Last updated
Was this helpful?