---
title: "Get the log of a dbt sync"
method: GET
path: "/api/v1/deployments/{deploymentId}/dbt-sync/{syncJobId}/logs"
tags: ["dbt Sync"]
---

# Get the log of a dbt sync

`GET /api/v1/deployments/{deploymentId}/dbt-sync/{syncJobId}/logs`

## Path parameters

- `deploymentId` integer, required
- `syncJobId` string, required

## Response `200`

- DbtSyncLogEntriesListResponse
  - `items` DbtSyncLogEntry[], required
    - `durationMs` integer, nullable — For a phase line, how long the phase took, in milliseconds.
    - `level` string, required — info or error.
    - `message` string, required
    - `phase` string, nullable — The phase this line belongs to, e.g. dbt-compile.
    - `stream` string, required — Always "system" in this version. "stdout" and "stderr" join it once dbt’s own output is captured, so treat this as an open set.
    - `timestamp` string, required — When the line was produced, as an ISO 8601 timestamp.
  - `pageInfo` PageInfo, required
    - `endCursor` string, nullable
    - `hasNextPage` boolean, required
    - `hasPreviousPage` boolean, required
    - `startCursor` string, nullable

---

[API](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api.md) · [All operations](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cube-js/cube-cloud-rest-api/revisions/97e151460143/schema)
