---
title: "List script lib versions"
method: GET
path: "/api/scripts/{handle}/{host}/lib/versions"
---

# List script lib versions

`GET /api/scripts/{handle}/{host}/lib/versions`

## Request

- Base URL: `https://reduck.ai`
- URL: `https://reduck.ai/api/scripts/{handle}/{host}/lib/versions`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

List a host's lib versions, newest first, with their notes. Read a version on its own to get its code.

## Path parameters

- `handle` string, required: The owner a resource is addressed under: "@username" for a personal scope, or a bare slug for a project.
- `host` string, required: The site whose lib it is; scripts import it as `lib:<host>`.

## Query parameters

- `page` integer
- `pageSize` integer

## Response `200`

OK

- PaginatedResponseScriptLibVersionSummary
  - `data` ScriptLibVersionSummary[], required
    - `version_number` number, required
    - `note` string, nullable, required
    - `created_at` string, required
    - `latest` boolean, required
  - `hasNextPage` boolean, required
  - `totalCount` number

## Other responses

- `401`: Not authenticated
- `403`: Forbidden
- `404`: Not found

---

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