---
title: "Reads what a lambda may have and do, per tier"
method: GET
path: "/admin/limits"
tags: ["Administration"]
---

# Reads what a lambda may have and do, per tier

`GET /admin/limits`

## Request

- Base URL: `https://genhttp.dev/api/v1`
- URL: `https://genhttp.dev/api/v1/admin/limits`
- Auth: none declared. Required headers: `X-Admin-Token`

Where the operator has not saved them yet, these are the defaults - the built in ones, or what the environment variables that used to set them say.

## Headers

- `X-Admin-Token` string, required

## Response `200`

The limits of the installation

- LimitsModel: What a lambda may have and do, as the operator set it.
  - `Free` TierLimitsModel: What a lambda of one tier may have.
    - `BuildBytes` integer: What a version may come to, its code and its resources together, in bytes
    - `DataBytes` integer: The room its data may take, its database and its workspace together, in bytes
    - `Versions` integer: How many of its versions are kept
    - `Features` integer: How many features it may have open at once
    - `AnalyticsDays` integer: How many days of its analytics its owner is shown, of the year that is kept
  - `Premium` TierLimitsModel: What a lambda of one tier may have.
    - `BuildBytes` integer: What a version may come to, its code and its resources together, in bytes
    - `DataBytes` integer: The room its data may take, its database and its workspace together, in bytes
    - `Versions` integer: How many of its versions are kept
    - `Features` integer: How many features it may have open at once
    - `AnalyticsDays` integer: How many days of its analytics its owner is shown, of the year that is kept
  - `OfflineAfterHours` integer: How long a free lambda may go without a visit or an edit before it is taken offline, in hours
  - `RemovedAfterHours` integer: How long a free lambda may go without a visit or an edit before it is deleted, in hours
  - `ShowcaseImageBytes` integer: How large the picture of a showcase entry may be, in bytes
  - `RequestsPerSecond` integer: How many requests one client may send to the lambdas in a second
  - `BuildsPerDay` integer: How many builds and changes one address may ask the build agent for in a day

## Other responses

- `204`: A response containing no body
- `401`: The token is missing.
- `403`: The token is wrong.

---

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