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

# GET /settings/secrets

`GET /settings/secrets`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/settings/secrets`
- Auth: HTTP bearer

## Response `200`

Agent secrets in every scope (instance-wide and per project)

- ListSecretsResponse
  - `items` SecretResponse[], required
    - `created_at` string, required
    - `description` string, nullable
    - `id` integer, required
    - `mount_path` string, nullable
    - `name` string, required
    - `project_id` integer, nullable: Project the secret is scoped to; `null` means instance-wide.
    - `secret_type` string, required
    - `updated_at` string, required
    - `value` string, required: Always masked in responses
  - `total` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions

## Changes

- **2026-10-23** `fdfa2df06ae7`: 1 info
  - added the optional property `items/items/project_id` to the response with the `200` status
- **2026-10-23** `24af93ff5379`: 1 warning
  - removed the optional property `items/items/project_id` from the response with the `200` status
- **2026-10-22** `add7f7b41ae2`: 1 info
  - added the optional property `items/items/project_id` to the response with the `200` status
- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/settings/secrets/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
