---
title: "GET Get a specific secret"
description: "Get a specific secret (value is decrypted)"
last_updated: "2026-05-06T07:33:58.17341+00:00"
canonical_url: "https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/api/secrets/getsecret"
---

<APIEndpoint
  method={"GET"}
  path={"/api/secrets/:id"}
  summary={"Get a specific secret"}
  description={"Get a specific secret (value is decrypted)"}
  deprecated={false}
  baseUrl={""}
/>

## Parameters

<APIParameters parameters={[{"name":"id","in":"path","required":true,"description":"ID of the secret to retrieve","schema":{"type":"string"}},{"name":"organizationId","in":"query","required":true,"description":"Organization ID","schema":{"type":"string"}}]} />

## Responses

<APIResponse
  statusCode={"200"}
  description={"Secret retrieved successfully"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"400"}
  description={"Organization ID is required"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"401"}
  description={"Unauthorized"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"404"}
  description={"Secret not found"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"500"}
  description={"Failed to fetch secret"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

## Try It

<APIPlayground
  method={"GET"}
  path={"/api/secrets/:id"}
  parameters={[{"name":"id","in":"path","required":true,"description":"ID of the secret to retrieve","schema":{"type":"string"}},{"name":"organizationId","in":"query","required":true,"description":"Organization ID","schema":{"type":"string"}}]}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/llms.txt) for all pages in this wiki.
