Skip to main content

Supabase Analytics Buckets

An Analytics Bucket stores Iceberg tables in a Supabase project. Send2Bucket writes data files through the project’s S3-compatible endpoint and commits them through its Iceberg REST catalog. You can use an Analytics Bucket in any Supabase project.

What you provide​

FieldKindWhere to find it
project_refsettingThe <ref> in https://<ref>.supabase.co
warehousesettingThe Analytics Bucket's name
regionsettingThe project's region, for example us-east-1
namespacesettingAn existing namespace, for example s2b
tablesettingFor example events
catalog_tokencredentialThe bearer token for the Iceberg catalog, from the bucket's connection details
access_key_id, secret_access_keycredentialStorage settings, S3 access keys

The catalog token and the S3 keys are separate credentials. Supabase's connection instructions use the project's service role key as the catalog token, so treat it as a secret and rotate it if it leaks.

To send events from your app or Edge Functions and query them from Postgres, see Write events to Supabase Analytics Buckets.

Setup​

  1. In the Supabase dashboard, open Storage, create an Analytics Bucket and note its name.
  2. Create S3 access keys under the Storage settings.
  3. Add the destination in the Send2Bucket dashboard and select Verify. Send2Bucket creates the table in the namespace with the columns in Delivery format if it is missing. An incompatible existing table is left untouched, and setup fails with incompatible table: ….

Delivery​

A batch is delivered when the catalog confirms its append snapshot. Read the table with any Iceberg client, for example DuckDB, PyIceberg or Spark, using the same catalog endpoint and warehouse. See Supabase's guide to connecting.

Query your data​

To explore in a notebook or BI tool, see Integrations. The querying overview compares engines.