---
title: "POST /api/secrets/keys"
method: POST
path: "/api/secrets/keys"
---

# POST /api/secrets/keys

`POST /api/secrets/keys`

## Headers

- `Marimo-Session-Id` string, required

## Request body

- ListSecretKeysRequest
  - `requestId` string, request-id, required

## Response `200`

List all secret keys

- ListSecretKeysResponse
  - `keys` SecretKeysWithProvider[], required
    - `keys` string[], required
    - `name` string, required
    - `provider` 'dotenv' | 'env', required

## Changes

> 60 revisions in range; 2 could not be searched.

- **2026-03-31** `41bba414df27` — 1 breaking
  - the `requestId` request property type/format changed from `string`/`` to `string`/`request-id`
- **2026-03-18** `f29fa637d35b` — 1 info
  - the `requestId` request property type/format was generalized from `string`/`request-id` to `string`/``

[Change history](https://skmtc.dev/marimo-team/apis/marimo-api/changes/api/secrets/keys/post.md)

---

[API](https://skmtc.dev/marimo-team/apis/marimo-api.md) · [All operations](https://skmtc.dev/marimo-team/apis/marimo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/marimo-team/marimo-api/revisions/a39082aac3ce/schema)
