---
title: "Get a secret by ID or name"
method: GET
path: "/deployments/secrets/{id}"
tags: ["Secrets"]
---

# Get a secret by ID or name

`GET /deployments/secrets/{id}`

Retrieve details of a specific secret by its ID or name

## Path parameters

- `id` string, required — Secret ID or name

## Response `200`

Secret details

- SecretResponseItem
  - `created_at` string — CreatedAt is the ISO8601 timestamp when this secret was created
  - `created_by` string — CreatedBy is the identifier of who created this secret.
  - `description` string — Description is a human-readable description of the secret's purpose
  - `id` string — ID is the unique identifier for this secret
  - `last_updated_by` string — LastUpdatedBy is the identifier of who last updated this secret.
  - `name` string — Name is the name/key of the secret
  - `object` 'secret' — The object type, which is always `secret`.
  - `updated_at` string — UpdatedAt is the ISO8601 timestamp when this secret was last updated

## Other responses

- `404` — Secret not found
- `500` — Internal server error

---

[API](https://skmtc.net/together/apis/together-apis.md) · [All operations](https://skmtc.net/together/apis/together-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/together/together-apis/revisions/468edbdc879c/schema)
