---
title: "Get Sync History"
method: GET
path: "/api/v1/dbt/cloud/connections/{connection_id}/sync-history"
tags: ["DBT_CLOUD", "dbt_cloud"]
---

# Get Sync History

`GET /api/v1/dbt/cloud/connections/{connection_id}/sync-history`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/api/v1/dbt/cloud/connections/{connection_id}/sync-history`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Get sync history for a connection with pagination.

## Path parameters

- `connection_id` integer, required

## Query parameters

- `page` integer
- `size` integer
- `navigationSource` string, nullable

## Response `200`

Successful Response

- DbtCloudSyncHistoryResponse: Sync history for a connection with pagination.
  - `connection_id` integer, required
  - `environments` DbtCloudEnvironmentResponse[], required
    - `id` integer, required
    - `external_environment_id` string, required
    - `environment_name` string, nullable, required
    - `environment_type` string, nullable, required
    - `dbt_core_integration_environment_id` integer, required
    - `is_enabled` boolean, required
    - `last_processed_run_finished_at` string, date-time, nullable, required
    - `created_at` string, date-time, required
    - `last_modified_at` string, date-time, required
    - `processed_runs_count` integer, nullable
  - `recent_runs` DbtCloudProcessedRunResponse[], required
    - `id` integer, required
    - `dbt_cloud_run_id` string, required
    - `project_name` string, nullable
    - `environment_name` string, nullable
    - `run_finished_at` string, date-time, required
    - `processed_at` string, date-time, required
    - `artifacts_downloaded` string[], required
    - `status` string, required
    - `error_message` string, nullable
    - `sync_details` DbtCloudSyncDetails: Detailed sync information for a processed run.
      - `synced_files` string[]
      - `failed_files` object[]
      - `missing_artifacts` string[]
      - `errors` string[]
      - `ingestion_error` string, nullable
  - `page` integer, required
  - `pages` integer, required
  - `size` integer, required
  - `total` integer, required

## Other responses

- `400`: Bad request
- `403`: Forbidden
- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
