---
title: "Get diff for a sync item"
method: GET
path: "/sync/items/{itemId}/diff"
tags: ["sync"]
---

# Get diff for a sync item

`GET /sync/items/{itemId}/diff`

Returns the diff between local and remote versions of a sync item

## Path parameters

- `itemId` string, required

## Query parameters

- `remoteNode` string

## Response `200`

Diff retrieved successfully

- SyncItemDiffResponse — Diff between local and remote versions of a sync item
  - `itemId` string, required — The item identifier
  - `filePath` string, required — Relative file path with extension
  - `status` 'synced' | 'modified' | 'untracked' | 'conflict' | 'missing', required — Sync status of a DAG
  - `localContent` string, required — Current local file content
  - `remoteContent` string — Content from remote repository
  - `remoteCommit` string — Commit hash being compared against
  - `remoteAuthor` string — Author of the remote commit
  - `remoteMessage` string — Commit message of the remote version

## Other responses

- `404` — Item not found
- `default` — Unexpected error

## Changes

- **2026-04-30** (v1) `50e1d517afc1` — 2 info
  - removed the `rate_limited` enum value from the `code` response property for the response status `404`
  - removed the `rate_limited` enum value from the `code` response property for the response status `default`

[Change history](https://skmtc.dev/dagucloud/apis/dagu/changes/sync/items/:itemId/diff/get.md)

---

[API](https://skmtc.dev/dagucloud/apis/dagu.md) · [All operations](https://skmtc.dev/dagucloud/apis/dagu/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dagucloud/dagu/revisions/0cce8472f3ba/schema)
