---
title: "Lists a feature's copy of the data"
method: GET
path: "/lambdas/{privateKey}/features/{feature}/data"
tags: ["Features"]
---

# Lists a feature's copy of the data

`GET /lambdas/{privateKey}/features/{feature}/data`

## Request

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

Which kinds are switched on is the lambda's to decide; the feature has a copy of what the lambda had when the
feature was started or its data was last refreshed. What is in the copies is under `…/features/{feature}/database`,
`…/workspace` and `…/secrets`.

## Path parameters

- `privateKey` string, required
- `feature` string, required

## Response `200`

Every kind of data, as the feature's copy of it is

- DataStoreResponse[]
  - `Kind` string: Which kind: `database`, the SQLite database it keeps its records in; `workspace`, the files it reads and writes; or `secrets`, the API keys and passwords it reads and nobody sees
  - `Enabled` boolean: Whether the lambda has it switched on
  - `Default` boolean: Whether a lambda has it until its owner decides otherwise: the workspace does, the others do not
  - `Changed` string, date-time, nullable: When it was last switched on or off; absent while it is as it came
  - `Items` integer: What it holds: tables, for the database; files, for the workspace; values, for the secrets
  - `UsedBytes` integer: The room that takes, as the allowance counts it; zero for the secrets, which are counted in values
  - `QuotaBytes` integer: The room it may take: for the database and the workspace, the data allowance of the tier less what the other takes; zero for the secrets
  - `MaxItems` integer, nullable: How many it may hold, for a kind counted in values rather than bytes - the secrets

## Other responses

- `204`: A response containing no body
- `404`: No lambda has this editor key, or the lambda has no feature with this key: it never existed, or it was merged or deleted.

---

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