---
title: "Get secret"
method: GET
path: "/api/v1/orgs/{orgId}/secrets/{secretId}"
tags: ["secrets"]
---

# Get secret

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

## Request

- Base URL: `http://localhost:9090`
- URL: `http://localhost:9090/api/v1/orgs/{orgId}/secrets/{secretId}`
- Auth: HTTP bearer

Get secret

## Path parameters

- `orgId` integer, required
- `secretId` string, required

## Response `200`

Secret returned successfully

- SecretItem
  - `id` string
  - `name` string
  - `type` string
  - `updatedAt` string, date-time
  - `updatedBy` string
  - `tags` string[]
  - `values` object

## Other responses

- `default`: Internal server error

---

[API](https://skmtc.dev/banzaicloud/apis/pipeline-api.md) · [All operations](https://skmtc.dev/banzaicloud/apis/pipeline-api/llms.txt) · [OpenAPI document](https://skmtc.dev/banzaicloud/apis/pipeline-api/revisions/a2e35c430378?raw)
