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

# Get secret through ownership authority

`GET /orgs/{orgID}/secrets/{secretID}`

## Request

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

Returns a secret's owner, kind, name, and current version; the secret value is never returned.

## Path parameters

- `orgID` string, required
- `secretID` string, required

## Response `200`

Secret.

- Secret
  - `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.

## 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
  - added the new `github_app_credentials` enum value to the `kind` response property for the response status `200`
- **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/:secretID/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)
