---
title: "List spec versions"
method: GET
path: "/v1/automations/{automationId}/versions"
tags: ["Automations"]
---

# List spec versions

`GET /v1/automations/{automationId}/versions`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/automations/{automationId}/versions`
- Auth: HTTP bearer

Every `workflow_spec` the automation has had, newest first. Version 1 is the
spec it was created with; every update that changes the spec publishes the
next one. Runs record the version they executed.

## Path parameters

- `automationId` string, uuid, required

## Response `200`

Versions

- AutomationVersionListResponse
  - `current_version` integer, required
  - `versions` AutomationVersionResponse[], required
    - `version` integer, required
    - `spec_hash` string, required: SHA-256 of the canonical (sorted-key) JSON of the spec.
    - `workflow_spec` union, required
      - object[]
      - object
    - `created_by_type` string, required
    - `note` string, nullable
    - `created_at` string, date-time, required
    - `current` boolean, required

## Other responses

- `401`: Authentication required or invalid
- `404`: Resource not found

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/5fa0918f3b41?raw)
