---
title: "Get Git sync configuration"
method: GET
path: "/sync/config"
tags: ["sync"]
---

# Get Git sync configuration

`GET /sync/config`

Returns the current Git sync configuration

## Query parameters

- `remoteNode` string

## Response `200`

Configuration retrieved successfully

- SyncConfigResponse — Git sync configuration
  - `enabled` boolean, required
  - `repository` string
  - `branch` string
  - `path` string
  - `auth` SyncAuthConfig — Git authentication configuration
    - `type` 'token' | 'ssh', required
    - `token` string — Personal access token (write-only)
    - `sshKeyPath` string — Path to SSH private key
  - `autoSync` SyncAutoSyncConfig — Auto-sync configuration
    - `enabled` boolean, required
    - `onStartup` boolean, required
    - `interval` integer, required — Sync interval in seconds
  - `pushEnabled` boolean
  - `commit` SyncCommitConfig — Commit configuration
    - `authorName` string
    - `authorEmail` string

## Other responses

- `default` — Unexpected error

## Changes

- **2026-05-24** (v1) `8a2d5d3e9608` — 1 warning
  - added the new `rate_limited` enum value to the `code` response property for the response status `default`
- **2026-04-30** (v1) `50e1d517afc1` — 1 info
  - 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/config/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/8a2d5d3e9608/schema)
