---
title: "Lists the versions that are kept, newest first"
method: GET
path: "/lambdas/{privateKey}/versions"
tags: ["Versions"]
---

# Lists the versions that are kept, newest first

`GET /lambdas/{privateKey}/versions`

## Request

- Base URL: `https://genhttp.dev/api/v1`
- URL: `https://genhttp.dev/api/v1/lambdas/{privateKey}/versions`
- Auth: none declared

Without their files. `GET …/versions/{version}` reads one with them.

## Path parameters

- `privateKey` string, required

## Response `200`

The versions, newest first

- VersionResponse[]
  - `Version` integer: Its number, counting from 1
  - `Created` string, date-time: When it was saved
  - `Specification` string, nullable: What the user wanted and why, where whoever saved it said
  - `Change` string, nullable: What it changed, where whoever saved it said
  - `Origin` string, nullable: How it was saved: `template` (what the lambda started as), `api`, `agent`, `git`, `admin` or `system`

## Other responses

- `204`: A response containing no body
- `404`: No lambda has this editor key. A key that never existed and the key of a deleted lambda are answered alike.

---

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