---
title: "Get Hub Secrets"
method: GET
path: "/v1/hub/{hub_id}/secrets"
tags: ["Hub"]
---

# Get Hub Secrets

`GET /v1/hub/{hub_id}/secrets`

Retrieve all secrets for a specified hub

## Path parameters

- `hub_id` string, uuid, required

## Response `200`

Successfully retrieved hub secrets

- object
  - `metadata` object
  - `data` HubSecret[]
    - `publicId` string, uuid
    - `name` string
    - `value` string
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `403` — Not authorized to access this hub's secrets
- `404` — Hub not found

---

[API](https://skmtc.net/morta-technology/apis/morta-api-reference.md) · [All operations](https://skmtc.net/morta-technology/apis/morta-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/morta-technology/morta-api-reference/versions/9c58c1c1e7e8/schema)
