---
title: "Get sync logs"
method: GET
path: "/datasource/{id}/logs"
tags: ["DataSource"]
---

# Get sync logs

`GET /datasource/{id}/logs`

Retrieve sync history for a data source

## Path parameters

- `id` string, required

## Query parameters

- `limit` integer
- `offset` integer

## Response `200`

OK

- GithubComTencentWeKnoraInternalTypesSyncLog[]
  - `created_at` string — Creation timestamp (usually same as StartedAt)
  - `data_source_id` string — Reference to the data source
  - `error_message` string — Error details if status is "failed"
  - `finished_at` string — Sync completion time
  - `id` string — Unique identifier
  - `items_created` integer — New items created in knowledge base
  - `items_deleted` integer — Items deleted from knowledge base
  - `items_failed` integer — Items that failed to sync
  - `items_skipped` integer — Items skipped (no changes detected)
  - `items_total` integer — Total items fetched from source
  - `items_updated` integer — Existing items updated
  - `result` integer[] — Detailed sync result (JSON-encoded)
  - `started_at` string — Sync start time
  - `status` string — Sync status: running, success, partial, failed, canceled
  - `tenant_id` integer — Workspace ID
  - `updated_at` string — Last update timestamp

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.net/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/versions/d6921ae22ce0/schema)
