---
title: "List organization secrets"
method: GET
path: "/v1/orgs/{orgId}/secrets"
tags: ["Secrets"]
---

# List organization secrets

`GET /v1/orgs/{orgId}/secrets`

## Request

- Base URL: `https://api.spice.ai`
- URL: `https://api.spice.ai/v1/orgs/{orgId}/secrets`
- Auth: HTTP bearer

Returns the organization's secrets. Values are always masked. Platform-managed secrets are not listed. An organization secret reaches a project only through a link (see /v1/projects/{projectId}/org-secrets).

## Path parameters

- `orgId` integer, required

## Headers

- `X-Org-Name` string

## Response `200`

The organization's secrets, masked

- object
  - `secrets` Secret[]
    - `id` integer: Unique identifier for the secret
    - `name` string: Name of the secret
    - `value` string: Always masked with asterisks
    - `created_at` string, date-time: Timestamp when the secret was created
    - `updated_at` string, date-time: Timestamp when the secret was last updated

## Other responses

- `400`: orgId is not a valid org id (`invalid_org_id`), or X-Org-Name does not name that org (`org_path_mismatch`)
- `401`: Unauthorized
- `403`: Insufficient scope (requires secrets:read), the viewer role, or the caller is not a member of the organization (`org_forbidden`), a machine credential named an organization other than its own (`org_assertion_mismatch`), or the organization a machine credential is bound to has been deleted (`org_deleted`)
- `500`: Internal server error

---

[API](https://skmtc.dev/spice/apis/spice-cloud-control-plane-api.md) - [All operations](https://skmtc.dev/spice/apis/spice-cloud-control-plane-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spice/apis/spice-cloud-control-plane-api/revisions/5f3b75dd847d?raw)
