---
title: "Lists the kinds of data"
method: GET
path: "/lambdas/{privateKey}/data"
tags: ["Data"]
---

# Lists the kinds of data

`GET /lambdas/{privateKey}/data`

## Request

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

## Path parameters

- `privateKey` string, required

## Response `200`

Every kind of data

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