---
title: "Get draft diff"
method: GET
path: "/agent/{id}/drafts/{draftId}/diff"
tags: ["Agent Versioning - Drafts"]
deprecated: true
---

# Get draft diff

`GET /agent/{id}/drafts/{draftId}/diff`

> **Deprecated.**

**Deprecated.** Kept working during the v1 coexistence window (~1 month). Migrate to `GET /agent/{id}/diff?a=<branchId>:draft&b=<revisionId>`. Will be removed at the sunset date.

Compare a draft against its source version or another specified version.

## Path parameters

- `id` string, required
- `draftId` string, required

## Query parameters

- `compareTo` string

## Response `200`

Diff returned successfully

- object
  - `status` boolean
  - `data` object
    - `sections` object — Keyed by config section name. Each entry shows the before/after state of that section.
    - `hasChanges` boolean — True if at least one section differs

## Other responses

- `400` — Invalid input
- `401` — Unauthorized access
- `403` — Forbidden access
- `404` — Agent or draft not found
- `500` — Internal server error

---

[API](https://skmtc.net/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.net/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/versions/6d1036a76fbc/schema)
