---
title: "Get Secret"
method: GET
path: "/api/v1/secrets/{secret_id}"
tags: ["Secrets"]
---

# Get Secret

`GET /api/v1/secrets/{secret_id}`

Get a specific secret by ID.

Note: The secret value is not returned, only metadata.

## Path parameters

- `secret_id` string, required

## Query parameters

- `teamId` string, nullable — Team ID for team secrets

## Response `200`

Successful Response

- GenericResponseSecretResponse
  - `data` SecretResponse
    - `id` string, required — Unique identifier of the secret
    - `name` string, required — Name of the secret
    - `description` string, nullable — Description of the secret
    - `isFile` boolean — Whether this secret is a file
    - `userId` string, nullable — ID of the owning user
    - `teamId` string, nullable — ID of the owning team
    - `createdAt` string, date-time, required — When the secret was created
    - `updatedAt` string, date-time, required — When the secret was last updated
  - `status` string, nullable — Response status

## Other responses

- `401` — Authorization failed
- `422` — Invalid request data

---

[API](https://skmtc.net/primeintellect/apis/pi-api.md) · [All operations](https://skmtc.net/primeintellect/apis/pi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/primeintellect/pi-api/revisions/3d3868828a78/schema)
