---
title: "List the runtime key choices"
method: GET
path: "/functions/runtime-grant-presets"
tags: ["Functions"]
---

# List the runtime key choices

`GET /functions/runtime-grant-presets`

## Request

- Base URL: `https://api.primitive.dev/v1`
- URL: `https://api.primitive.dev/v1/functions/runtime-grant-presets`
- Auth: HTTP bearer

The keys a new or existing function can run with: the organization's shared function key, or a per-function key narrowed by a preset. Each preset says whether it is available now and, if not, why.

## Response `200`

List the runtime key choices

- object
  - `success` true, required
  - `data` ListFunctionRuntimeKeyPresetsResult, required
    - `enabled` boolean, required
    - `presets` object[], required
      - `id` string, required
      - `label` string, required
      - `description` string, required
      - `available` boolean, required
      - `reason` string, nullable, required
      - `differs_from_today` boolean, required

## Other responses

- `401`: Invalid or missing API key
- `403`: Authenticated caller lacks permission for the operation
- `429`: Rate limit exceeded. The `ratelimit-*` headers describe the limiter that rejected this request, with its own limit and window, not the API budget that successful responses report. A limiter that reports only a wait sends `Retry-After` alone.

---

[API](https://skmtc.dev/primitive/apis/primitive-api.md) - [All operations](https://skmtc.dev/primitive/apis/primitive-api/llms.txt) - [OpenAPI document](https://skmtc.dev/primitive/apis/primitive-api/revisions/bce409c97acb?raw)
