Skip to main content
The Databricks integration writes 3RD’s Export API datasets into Delta tables in a Unity Catalog schema in your workspace, and refreshes them every day. Query them in Databricks SQL, notebooks or dashboards, or join them with the rest of your marketing data. It runs on the same data as the Export API, so the numbers match the API and the 3RD dashboard.
The sync is available on plans that include the Export API. Your workspace needs Unity Catalog and a SQL warehouse.

What you need

  • A workspace admin who can create a service principal.
  • A catalog owner or metastore admin to run three GRANT statements once.
  • The owner or admin role in your 3RD organization.

Set it up

1

Create a service principal

In your workspace, go to Settings → Identity and access → Service principals and add one for 3RD, for example 3rd-sync. On its Secrets tab, click Generate secret. Note the application ID and the secret. You can’t see the secret again after you close the dialog.
2

Let it use a SQL warehouse

Open the SQL warehouse 3RD should use, click Permissions, and give the service principal Can use. A small serverless warehouse is enough; a daily sync takes seconds.
3

Connect in 3RD

Go to Brand → Integrations, and under Reporting open Databricks. Enter:
  • the workspace URL, as in your browser;
  • the warehouse’s HTTP path, from its Connection details tab;
  • the catalog and the schema for 3RD’s tables (the schema defaults to third);
  • the service principal’s application ID and secret.
Click Connect.
4

Run the GRANT statements

3RD shows three statements with your catalog, schema and application ID filled in. Run them in the SQL editor as the catalog’s owner or a metastore admin:
5

Test the connection

Back in 3RD, click Test connection. When it passes, 3RD starts loading your history. If it fails, the message tells you which step to fix. See Troubleshooting.
6

Give your team read access

The service principal owns the tables it creates. Grant read access to the groups your analysts use:
Under What to sync, untick any tables or brands you don’t want. Changes apply from the next sync.

Security

  • Your principal, your control. 3RD signs in as the service principal you created, with OAuth machine-to-machine. Delete its secret, or revoke its grants, and 3RD loses access.
  • Least privilege. The grants cover one schema. The principal can’t read anything else in your catalog.
  • Encrypted secret. 3RD stores the secret encrypted and only ever shows its last four characters.
  • Your compute. The sync runs on the SQL warehouse you chose.
If your workspace uses an IP access list, 3RD can’t reach it yet: 3RD has no fixed IP addresses to add. Contact support before you connect.

Tables

Each dataset becomes one Delta table in your schema. Table and column names are the Export API names in lower case; see the Export API reference for what each field means. Every dated table also has brand_id, which joins to brands.id, and _synced_at, the time the row was written.

How the sync works

  • Daily refresh. Each run reloads the last 7 days, because AI answers for recent days can still arrive. Older days don’t change.
  • Atomic. 3RD loads new rows into a staging table, then replaces the days it reloaded with one INSERT … REPLACE WHERE. A failed run leaves your tables as they were.
  • History. The first sync goes back as far as your plan’s Export API history allows, up to two years. See Pagination and history.
  • New columns. When 3RD adds a field to the Export API, the column is added to your table. Existing columns are never renamed or dropped.
  • Sync now. Click Sync now in settings to run a sync outside the daily schedule, or Reload history to load your whole history again.
Check freshness:

Example query

Weekly visibility per AI model for one brand:
Sum the counts and divide, rather than averaging visibility_rate: a day with more answers should weigh more.

Manage the connection

  • Change details. Update the secret, warehouse or schema in settings, then test the connection again. Service principal secrets expire; rotate before yours does.
  • Disconnect. Click Disconnect. 3RD deletes its copy of the secret and stops syncing. Your tables stay. 3RD shows the REVOKE statements to remove its grants; then delete the secret in the workspace.
  • Plan changes. If your plan no longer includes the Export API, syncing stops and your tables stay as they were.

Troubleshooting