---
title: "Diff Tool Versions"
method: GET
path: "/v1/tools/{id}/versions/diff"
tags: ["Tool Versions"]
---

# Diff Tool Versions

`GET /v1/tools/{id}/versions/diff`

Compares the schemas of two tool versions and returns a unified diff.

## Path parameters

- `id` string, required

## Query parameters

- `from` string, required
- `to` string, required

## Response `200`

Versions compared successfully

- object
  - `from_version` integer
  - `to_version` integer
  - `diff` string

## Other responses

- `400` — Missing or invalid parameters
- `401` — Unauthorized
- `404` — Tool or version not found

---

[API](https://skmtc.net/px0-ai/apis/px0-api.md) · [All operations](https://skmtc.net/px0-ai/apis/px0-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/px0-ai/px0-api/revisions/3ed72443989d/schema)
