---
title: "Lists the files of a published version"
method: GET
path: "/sources/{publicKey}/versions/{version}"
tags: ["Open source"]
---

# Lists the files of a published version

`GET /sources/{publicKey}/versions/{version}`

## Request

- Base URL: `https://genhttp.dev/api/v1`
- URL: `https://genhttp.dev/api/v1/sources/{publicKey}/versions/{version}`
- Auth: none declared

As the project it is packed into has them - the export of that version, without its data. Packed on the first
request for the version and kept, so the first answer may take a moment for a large lambda.

## Path parameters

- `publicKey` string, required
- `version` integer, required

## Response `200`

The files of the version

- SourceTreeResponse: The files of a published version, as the project it is packed into has them.
  - `PublicKey` string: The public key of the lambda
  - `Version` integer: The number of the version
  - `Root` string: The folder the project is in, inside the zip
  - `Bytes` integer: How large the zip is, in bytes
  - `Files` SourceFileResponse[]: Every file, by its path below the project's folder
    - `Path` string: Its path below the project's folder
    - `Size` integer: How large it is, in bytes
    - `Kind` string: What it is: `code`, `resource`, `docs`, `tests`, `platform` (what stands in for the platform) or `project` (what makes it a project)
  - `ZipPath` string: Where the zip is downloaded

## Other responses

- `204`: A response containing no body
- `404`: There is no published source at this public key, or it has no such version.

---

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