dbt Cloud
Inspect a dbt Cloud job run
Retrieve a dbt Cloud run to check its status and timings. Use the run page to inspect the artifacts produced by that specific execution.
Documentation reviewed · 2 methods with sources
Ways to do it
API
GET /api/v2/accounts/{account_id}/runs/{run_id}/
Read the run status and timing. Request include_related=["run_steps"] when you need individual step outcomes.
Read source: dbt Admin API run retrieval example- Requirements
- Your dbt account’s access URL, a token with run read access, an account ID, and the run ID.
- Limitations
- Runs are asynchronous. Poll with a bounded interval and inspect the terminal status before treating the run as successful.
Example shell
curl --fail --get "$DBT_ACCESS_URL/api/v2/accounts/$DBT_ACCOUNT_ID/runs/$DBT_RUN_ID/" \
-H "Authorization: Token $DBT_API_TOKEN" \
--data-urlencode 'include_related=["run_steps"]'Interface
Job run artifacts
Open a specific job run to see which artifacts it generated or updated.
Read source: dbt job artifacts- Requirements
- Access to the project’s job and run in the dbt platform.
- Limitations
- Artifact availability depends on the commands in the job and the artifact settings. For example, a source freshness job can generate sources.json.
Example text
dbt platform → Deploy → Jobs → select a job and run → Artifacts