putty
API ReferenceLedger

Read one secret's metadata

Returns one secret's metadata. There is no endpoint anywhere in the API that returns a value; this is the closest thing to one, and it stops at `lastUsedAt`. Pass `?projectId=` to read the project-scoped secret of that name rather than the user-scoped one.

GET
/secrets/{name}

Returns one secret's metadata. There is no endpoint anywhere in the API that returns a value; this is the closest thing to one, and it stops at lastUsedAt. Pass ?projectId= to read the project-scoped secret of that name rather than the user-scoped one.

Authorization

bearerAuth
AuthorizationBearer <token>

A bearer token. The Account routes accept a Privy access token; the MCP transport accepts an sk- API key issued by POST /account/api-keys.

In: header

Path Parameters

name*string

The environment-variable-shaped name of the secret. PRIVATE_KEY, MNEMONIC, and SEED_PHRASE are refused.

Match^[A-Z][A-Z0-9_]{0,63}$

Query Parameters

projectId?string

Read the project-scoped secret of this name instead of the user-scoped one.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/secrets/string"
{  "id": "string",  "name": "string",  "scope": "user",  "projectId": "string",  "description": "string",  "usage": "sandbox",  "status": "string",  "createdAt": "string",  "updatedAt": "string",  "lastUsedAt": "string"}