---
title: "Read Credential Secret"
method: GET
path: "/api/system/credentials/{name}/secret"
tags: ["system"]
---

# Read Credential Secret

`GET /api/system/credentials/{name}/secret`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/system/credentials/{name}/secret`
- Auth: none declared

The key itself. FOR SERVICES ONLY.

Rooster calls this at boot to get the Moonshot key, which is the whole
point of moving credentials out of environment variables: pasting a new
key into the System page has to actually reach the thing that uses it.

Gated on `system:credentials:read`, which migration 0091 binds to no human
role. If a person can reach this endpoint, someone has granted them the
function on purpose.

## Path parameters

- `name` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
