Skip to main content

dbt Cloud API Configuration

This guide shows you how to integrate dbt Cloud with OpenMetadata using the dbt Cloud API.
This guide is ONLY for dbt Cloud users. If you’re using dbt Core, see dbt Core Configuration for storage setup options.

Prerequisites Checklist

Step 1: Get dbt Cloud API Token

1.1 Create API Token

  1. Log in to dbt Cloud (cloud.getdbt.com)
  2. Click your profile icon (top right)
  3. Go to Account Settings
  4. Click API Access in the left sidebar
  5. Click + Create Token
  6. Configure the token:
    • Description: OpenMetadata Integration
    • Permission: Account Viewer
  7. Click Save
  8. Copy the token immediately - you won’t see it again!
Expected token format:
Save this token securely. You’ll need it for OpenMetadata configuration.

1.2 Find Your Account ID

Method A: From URL (Easiest) When logged into dbt Cloud, look at the browser URL:
Method B: Via API

1.3 Identify Your dbt Cloud Region

dbt Cloud has regional deployments: How to check: Look at your dbt Cloud login URL.

1.4 (Optional) Get Project/Job IDs

By default, OpenMetadata will use the most recent successful run from any project/job. To filter to a specific project or job, you’ll need their IDs. Get IDs from dbt Cloud UI:
  • Account ID: In URL: https://cloud.getdbt.com/#/accounts/{ACCOUNT_ID}/...
  • Project ID: Go to Account Settings → Projects, click a project, ID is in the URL
  • Job ID: Go to Deploy → Jobs, click a job, ID is in the URL
Or retrieve via API: List Projects:
Example output:
List Jobs:
Example output:

Step 2: Configure OpenMetadata

Configuration

  1. Go to Settings → Services → Database Services
  2. Click on your database service (e.g., “production-snowflake”)
    • Important: Must match the database dbt connects to
  3. Go to the Ingestion tab
  4. Click Add Ingestion
  5. Select dbt from the dropdown
Configure dbt Source (dbt Cloud): How filtering works:
  • Both empty: Uses most recent successful run from any job in the account
  • Project ID provided: Uses most recent run from that specific project
  • Both provided: Uses most recent run from that specific job
Configure dbt Options:
Match your schedule to dbt Cloud job frequency. If jobs run every 6 hours, schedule OpenMetadata ingestion every 6 hours.
Test & Deploy:
  1. Click Test Connection
    • Should show: ✓ API connectivity, ✓ Account access, ✓ Recent run found
  2. If successful, click Deploy
  3. Click Run to trigger immediately

Verification

Verification Checklist

Best Practices

Ensure Jobs Generate All Artifacts

Your dbt Cloud job must include these commands:
How to verify:
  1. Go to dbt Cloud → Jobs
  2. Click on your job
  3. Go to Settings → Commands
  4. Confirm all three commands are present

Schedule Alignment

API Rate Limits

dbt Cloud API has rate limits:
  • 100 requests per minute per API token
OpenMetadata makes ~3-5 API calls per ingestion. Don’t schedule more frequently than every 15 minutes.

Troubleshooting

Debug Commands

Next Steps

Questions? See the main dbt Overview or visit our documentation.