---
title: "List Secrets"
method: GET
path: "/v1/secrets"
tags: ["Secrets"]
---

# List Secrets

`GET /v1/secrets`

List all secrets for the authenticated user's space.

This endpoint:
- Requires API key authentication
- Returns metadata only (id, name, type) - never returns decrypted values
- Results are ordered by creation date (newest first)

Args:
    service: Injected secrets service

Returns:
    Response with list of secret metadata

Raises:
    400 Bad Request: If user doesn't have an associated space

## Cookies

- `la_session` string

## Response `200`

Successful Response

- ResponseListSecretListItemSchema
  - `code` integer
  - `data` SecretListItemSchema[]
    - `id` string, required
    - `secret_name` string, required
    - `secret_type` 'OPENAI_API_KEY' | 'ELEVENLABS_API_KEY' | 'GEMINI_API_KEY', required — The type of secret.
    - `created_at` string, date-time
  - `message` string

## Other responses

- `422` — Validation Error

---

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