---
title: "Get all versions for an automation"
method: GET
path: "/v1/tasks/{taskId}/automations/{automationId}/versions"
tags: ["Task Automations"]
---

# Get all versions for an automation

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

Get all versions for an automation in Comp AI. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.

## Path parameters

- `taskId` string, required
- `automationId` string, required

## Query parameters

- `limit` string, required
- `offset` string, required

## Response `200`

Versions retrieved successfully

- object
  - `success` boolean
  - `versions` object[]
    - `id` string
    - `version` number
    - `scriptKey` string
    - `changelog` string, nullable
    - `publishedBy` string, nullable
    - `createdAt` string, date-time

---

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