---
title: "Lists when the lambda was online"
method: GET
path: "/lambdas/{privateKey}/deployment/history"
tags: ["Deployment"]
---

# Lists when the lambda was online

`GET /lambdas/{privateKey}/deployment/history`

## Request

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

Which version, who put it online, how long it stayed and what ended it: the next deployment, its owner, the
platform because nobody used it, or the operator. The newest entry has no end while it is online. The last 200
are kept.

## Path parameters

- `privateKey` string, required

## Response `200`

The stretches, newest first

- ActivationResponse[]
  - `Version` integer: The version that was online
  - `Started` string, date-time: When it went online
  - `Origin` string, nullable: Who put it online: `api`, `agent`, `git`, `admin` (the operator) or `system`
  - `Ended` string, date-time, nullable: When it went offline; absent while it is still online
  - `EndedBy` string, nullable: Why it went offline: `replaced` by another deployment, `stopped` by its owner, `expired` because nobody used it, or taken down by the operator (`admin`)
  - `Seconds` integer: How long it was online, or has been so far, in seconds

## 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)
