---
title: "Exports the lambda as a .NET project"
method: GET
path: "/lambdas/{privateKey}/export"
tags: ["Lambdas"]
---

# Exports the lambda as a .NET project

`GET /lambdas/{privateKey}/export`

## Request

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

A zip of the **newest** version - not necessarily the one online - as a .NET 10 project on GenHTTP: a `Program.cs`
that hosts the snippet, stand-ins for what the platform provides in `Platform/`, and a `Dockerfile`. `dotnet run` or
`docker build` it, and it serves what the lambda serves.

The database comes along as `database/database.db`, a copy taken while the request is answered, which the project
opens as the lambda opened it here. The workspace does not come along, and neither do the values of the secrets: the
project reads them from environment variables of the same names, which `Program.cs` lists. A published source
carries its `LICENSE`. Exporting changes nothing about the lambda.

## Path parameters

- `privateKey` string, required

## Response `200`

The project, as a zip archive

## Other responses

- `404`: No lambda has this editor key, or it has no version to export.

---

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