Skip to main content

dbt Platform ExecModule

Overview​

DbtPlatformModule reads jobs and runs from the dbt platform Administrative API v2. Use it to find the job that prepares a reporting dataset, check the outcome of a specific run, or build a monitoring workflow around scheduled transformations. A successful step means that the lookup worked. Use the run's own status to decide whether its transformation succeeded.

Usage​

  1. Find the numeric account ID and API access hostname for your dbt platform account.
  2. Save a dbt Platform connection in the Integration Account Console.
  3. Add a dbt Platform step in Workflow Studio and select the saved account under General > Connection.
  4. Run List Jobs to identify a job, then pass its ID to List Runs. Use Get Run when the workflow needs to verify a specific execution by ID.

Inputs​

InputTypePurpose
operationstringlist_jobs (default), list_runs, or get_run.
projectIdintegerOptional positive project ID for either list operation.
jobIdintegerOptional positive job ID for list_runs.
runIdintegerPositive run ID required for get_run.
limitintegerPage size for either list operation, from 1 to 100. Defaults to 50.
offsetintegerNumber of rows to skip for either list operation, from 0 to 1,000,000. Defaults to 0.

Outputs​

OutputTypeMeaning
statusstringsuccess or error for the lookup.
httpStatusintegerProvider HTTP status when available.
jobsarrayJob summaries with id, name, and accountId, projectId, and environmentId when available.
runsarrayRun summaries with id, statusCode, normalized status, and available accountId, projectId, environmentId, jobId, and timestamps.
runobjectA single run summary for get_run.
count, totalCountintegerRows returned in this page and the total reported by dbt for the list.
nextOffsetintegerContinuation offset for a list when another page is indicated and the offset is within bounds.
errorobjectSanitized code, message, and retryable flag, with retryAfterSeconds when available.

Run statuses are QUEUED, STARTING, RUNNING, SUCCESS, ERROR, CANCELLED, or UNKNOWN. Timestamp fields are createdAt, startedAt, and finishedAt when dbt supplies them.

IntegrationAccount Requirements​

Use an authorized READY IntegrationAccount with provider DBT_PLATFORM. Set accountId to the positive numeric dbt account ID, username to the API access hostname, and protected apiKey to the dbt API token. Keep the token in the saved connection.

Choose a dedicated service account token with read access to the projects the workflow monitors, such as the project-level Job Viewer permission set when your plan supports it. A personal access token uses its owner's permissions. Confirm that the connection can list the intended jobs and runs before scheduling it. dbt service account tokens

Configuration​

Copy the hostname from the account's API access URL, for example abc123.us1.dbt.com. Enter the hostname alone. The connector accepts the documented dbt-hosted cell hostnames and legacy cloud.getdbt.com, emea.dbt.com, and au.dbt.com endpoints. Requests use HTTPS and the saved account ID. Custom vanity hosts and HTTP redirects are outside this connection contract. dbt access URLs and regions

Operations​

  • List Jobs returns one page of jobs the token can read, optionally narrowed to a project. Use the stable job ID in subsequent workflow steps.
  • List Runs returns one page of executions ordered by descending run ID. Filter by project or job to narrow the history and use the returned IDs to check specific executions.
  • Get Run reads the current state of a known execution. Use this operation to check that the expected execution reached the state required by a downstream step. dbt Administrative API v2

Errors and Failure Modes​

ConditionWhat to check
Invalid inputCheck operation-specific fields, positive IDs, and page bounds.
Connection unavailableSelect a ready DBT_PLATFORM connection and verify its account ID, hostname, and token.
HTTP 401 or 403Check whether the token is valid and has access to the selected account and project.
HTTP 404Check whether the run belongs to the configured account and is visible to the token.
HTTP 429 or transient provider errorCheck error.retryable and respect error.retryAfterSeconds when present.
Timeout or oversized responseEach request has a 20-second timeout and a 2 MiB decoded response bound. Use smaller pages or a more specific filter for a large list.

Example​

A finance workflow checks the dbt execution that prepares data for the monthly close. The team identifies its production job with list_jobs and obtains the expected execution ID from list_runs for that job. The readiness check reads that execution before allowing the report export to continue.

{
"operation": "get_run",
"runId": 105278
}

An example successful lookup returns the run's own result.

{
"status": "success",
"httpStatus": 200,
"run": {
"id": 105278,
"jobId": 6324,
"statusCode": 10,
"status": "SUCCESS",
"finishedAt": "2026-10-31T06:17:08Z"
}
}

Continue only when the lookup succeeds, the run belongs to the expected job, and run.status is SUCCESS. Route unfinished runs to a delayed check and failed runs to the team that owns the job.

Notes​

  • Pagination. Pass nextOffset as offset with the same filters and limit. New runs can move rows between pages. Deduplicate repeated rows by run ID when scanning changing history.
  • Rate limits. The module makes one request per step and surfaces retry guidance for the workflow to use. Space out polling, bound retries, and use backoff after throttling. dbt API rate limits
  • API limits. The connector reads job and run summaries from the hosted dbt Administrative API. Run logs, artifacts, transformation results, and self-managed dbt Core installations are outside its scope.
  • Idempotency and destructive behavior. All operations read metadata. They leave dbt jobs, schedules, runs, and data unchanged. A repeated lookup can reflect a newer run state.