---
title: "Fetches a direktiv secret"
method: GET
path: "/api/v2/namespaces/{namespace}/secrets/{secretName}"
tags: ["secrets"]
---

# Fetches a direktiv secret

`GET /api/v2/namespaces/{namespace}/secrets/{secretName}`

## Path parameters

- `namespace` string, required
- `secretName` string, required — name of the secret

## Response `200`

data of the direktiv  secret

- object
  - `data` object
    - `name` string — a unique name string of the secret
    - `createdAt` string — timestamp of creation date
    - `updatedAt` string — timestamp of last updating date

---

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