---
title: "List versions of a saved script"
method: GET
path: "/api/scripts/{id}/versions"
tags: ["Scripts"]
---

# List versions of a saved script

`GET /api/scripts/{id}/versions`

Dashboard read: version history, newest first.

## Path parameters

- `id` string, uuid, required

## Response `200`

Script versions

- object
  - `versions` object[], required
    - `id` string, required
    - `scriptId` string, required
    - `version` number, required
    - `source` string, required
    - `description` string, required
    - `intent` string, required
    - `signatureJson` string, required
    - `contentHash` string, required
    - `changedByAgentId` string, nullable, required
    - `changedAt` string, required
    - `changeReason` string, nullable, required
    - `created_by` string, nullable
    - `updated_by` string, nullable

## Other responses

- `404` — Script not found

---

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