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

# Get the result of a completed dbt sync

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

## Path parameters

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

## Response `200`

- DbtSyncResultResponse
  - `completedAt` string, required — When the sync finished, as an ISO 8601 timestamp.
  - `cubeCount` integer, required — How many cubes the sync generated from the dbt manifest.
  - `durationMs` integer, required — End-to-end sync duration in milliseconds.
  - `generatedFiles` DbtSyncGeneratedFile[], required — The cube files this sync generated and committed to the branch it created.
    - `path` string, required — Path of the generated file within the data model project.
  - `manifestStats` DbtSyncManifestStats, required
    - `macros` integer, required
    - `models` integer, required
    - `sources` integer, required
  - `syncJobId` string, required

---

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