dbt Semantic Layer

Steps and required credentials to connect dbt Semantic Layer to Squadbase

This connector allows Squadbase AI to query your dbt Semantic Layer — retrieving metrics and dimensions defined in your dbt project — for analysis and dashboard creation.

Required Information

FieldDescription
Semantic Layer Host URLThe host URL shown in your dbt Cloud Semantic Layer settings.
Environment IDThe numeric ID of the dbt Cloud environment where Semantic Layer is enabled.
Service TokenA service token issued in dbt Cloud Account settings with the Semantic Layer Only permission set.

How to Obtain Each Value

Semantic Layer Host URL

  1. Log in to dbt Cloud
  2. Navigate to Account settingsSemantic Layer
  3. Copy the host URL shown in the configuration panel

The host varies by region:

RegionExample host
US (multi-tenant)semantic-layer.cloud.getdbt.com
EMEAsemantic-layer.emea.dbt.com
APACsemantic-layer.au.dbt.com
Single-tenant (e.g. pe571.us1.dbt.com)pe571.semantic-layer.us1.dbt.com

You can paste the full /api/graphql URL as-is — Squadbase will strip the path automatically.

Environment ID

  1. In dbt Cloud, navigate to OrchestrationEnvironments
  2. Click the environment where Semantic Layer is enabled
  3. The environment ID is the numeric value in the URL: https://cloud.getdbt.com/accounts/{account_id}/environments/{environment_id}/...

Alternatively, the ID is shown directly on the Semantic Layer settings page.

Service Token

  1. In dbt Cloud, go to Account settingsService tokens
  2. Click + New token
  3. Select the Semantic Layer Only permission set
  4. Copy the generated token and store it in a safe place

A personal access token can also be used in place of a service token.