Terra Docs
Dashboard
  • Docs
  • API Reference
  • Changelog
  • Getting Started
    • What is Terra API?
    • Account setup and API keys
    • Core concepts
  • Health & Fitness API
    • Overview
    • Quickstart
    • Integration setup
      • Understanding sources and destinations
      • Setting up data sources
      • Setting up data destinations
        • Webhooks
        • SQL database (Postgres, MySQL)
        • Supabase
        • Cloud storage (S3, GCP)
        • Queuing services (SQS, Kafka)
      • Customising data types
      • Dedicated data source API keys
      • Understanding Terra environments
    • User authentication
      • Authentication flow
      • Implementation (Terra widget)
      • Implementation (Custom UI)
      • Handling authentication events
      • Customising authentication redirects
    • Managing user health data
      • Receiving health data updates (events)
      • Requesting historical health data (REST API requests)
      • Writing data
    • Mobile-only sources
      • iOS (Swift)
      • Android (Kotlin)
      • React Native
      • Flutter
    • Troubleshooting
    • Pricing
  • User Engagement
    • Health Scores
  • Streaming API
    • Overview
    • 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
  • Setup
  • Data Structure

Was this helpful?

  1. Health & Fitness API
  2. Integration setup
  3. Setting up data destinations

Supabase

PreviousSQL database (Postgres, MySQL)NextCloud storage (S3, GCP)

Last updated 20 days ago

Was this helpful?

offers the best of both worlds in terms of allowing you to have both and . Both coexist within the same platform, making development a breeze.

Setup

  1. with an appropriate name (e.g. terra-payloads) in your project

  2. within your project. You do not need to add columns to it, Terra will handle that when connecting to it.

  3. for access to your supabase project. Terra will need read & write access to the previously created resources in steps 1 and 2.

You'll then need to enter the above details (host, bucket name, and API key) into your Terra Dashboard when adding the Supabase destination

Data Structure

When using Supabase (since you get the best of SQL and S3 buckets ) Terra stores the data in the same structure as for and for . Follow those sections for more detailed information on how that is stored!

🎉
Supabase
storage buckets
Postgres SQL tables
Create a storage bucket
Create a table
Create an API key
SQL
S3 Buckets