---
title: "Diff two versions"
method: GET
path: "/agent/{id}/versions/diff"
tags: ["Agent Versioning - Versions"]
---

# Diff two versions

`GET /agent/{id}/versions/diff`

Compare two published versions side-by-side by their IDs.

## Path parameters

- `id` string, required

## Query parameters

- `versionA` string, required
- `versionB` string, required

## Response `200`

Diff returned successfully

- object
  - `status` boolean
  - `data` object — Section-by-section diff between the two versions

## Other responses

- `400` — Invalid input
- `401` — Unauthorized access
- `500` — Internal server error

## Changes

- **2026-04-20** `801f1d220d57` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/smallest-inc/apis/agent-management-api/changes/agent/:id/versions/diff/get.md)

---

[API](https://skmtc.dev/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.dev/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/revisions/2bfbd089ccb3/schema)
