---
title: "List secrets visible through ownership authority"
method: GET
path: "/orgs/{orgID}/secrets"
tags: ["Secrets"]
---

# List secrets visible through ownership authority

`GET /orgs/{orgID}/secrets`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/orgs/{orgID}/secrets`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-omnara_session`

Items are ordered by created_at descending, then id descending. Without an owner filter, returns the deduplicated union of organization secrets the caller may list, project secrets the caller may list, and the caller's own user secrets.

## Path parameters

- `orgID` string, required

## Query parameters

- `name` string
- `kind` 'generic' | 'oauth_token_set' | 'slack_app_credentials' | 'aws_credentials' | 'github_app_credentials'
- `owner_kind` 'org' | 'project' | 'user'
- `owner_project_id` string: Project ID (proj_...).
- `mcp_oauth_flow_id` string
- `metadata` object
- `sort` 'name' | '-name' | '-updated_at' | 'updated_at' | '-created_at' | 'created_at': Field to sort by; prefix with - for descending order. Defaults to -created_at (newest first).
- `limit` integer
- `cursor` string

## Response `200`

Secrets visible through ownership authority.

- ListSecretsResponse
  - `data` Secret[], required
    - `id` string, required: Identifies the secret; other resources reference it by this ID instead of storing the value.
    - `org_id` string, required: Organization the secret belongs to.
    - `management_kind` 'tenant' | 'cluster', required: Whether the organization manages this secret or the Omnara installation provisions and manages it.
    - `owner` union, required: Who owns the secret; a project can use it without a grant only if the project owns it.
      - OrgSecretOwner
        - `kind` 'org', required: org: the organization owns the secret.
      - ProjectSecretOwner
        - `kind` 'project', required: project: a single project owns the secret.
        - `project_id` string, required: Project that owns the secret.
      - UserSecretOwner
        - `kind` 'user', required: user: a user owns the secret.
        - `user_id` string, required: User who owns the secret.
    - `name` string, required: Display name of the secret.
    - `kind` 'generic' | 'oauth_token_set' | 'slack_app_credentials' | 'aws_credentials' | 'github_app_credentials', required: What type of credential the secret holds, which determines its payload fields.
    - `metadata` Metadata, required: Caller-supplied key-value labels on the secret.
    - `current_version_number` integer, required: Version of the value currently in use; each rotation increments it.
    - `payload_keys` string[], required: Names of the fields stored in the current value, such as value or access_token; values are never returned.
    - `created_at` string, date-time, required: When the secret was created.
    - `updated_at` string, date-time, required: When the secret's name, metadata, or current version last changed.
  - `next_cursor` string, nullable, required

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required or invalid.
- `403`: The authenticated principal is not authorized.
- `404`: The requested resource was not found or is not visible.
- `500`: An unexpected internal server error occurred.
- `503`: The service dependency required to satisfy the request is unavailable.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-10-07** `680248a0ba72`: 1 warning, 1 info
  - added the new `github_app_credentials` enum value to the `data/items/kind` response property for the response status `200`
  - added the new enum value `github_app_credentials` to the `query` request parameter `kind`
- **2026-10-05** `3d9e2cf46e07`: 159 info
  - added the optional property `current_digest` to the response with the `400` status
  - added the optional property `current_digest` to the response with the `401` status
  - added the optional property `current_digest` to the response with the `403` status
  - added the optional property `current_digest` to the response with the `404` status
  - …155 more
  - …this revision’s changelog is incomplete
- **2026-09-28** `acddeb8fc6a5`: 7 warning, 7 info
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `400`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `401`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `403`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `404`
  - …10 more
- **2026-09-01** `e4978b047d7a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/secrets/get.md)

---

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