---
title: "Get secret grant"
method: GET
path: "/orgs/{orgID}/secrets/{secretID}/grants/{grantID}"
tags: ["Secrets"]
---

# Get secret grant

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

## Request

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

Returns one project grant for the secret.

## Path parameters

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

## Response `200`

The secret grant.

- SecretGrant
  - `id` string, required: Identifies this grant; use it to revoke the project's access.
  - `org_id` string, required: Organization the grant and its secret belong to.
  - `secret_id` string, required: Secret shared by this grant.
  - `target_project_id` string, required: Project that can use the secret through this grant.
  - `created_at` string, date-time, required: When the secret was granted to the project.

## 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-11-06** `63a75cbc7e95`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/secrets/:secretID/grants/:grantID/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)
