putty
API ReferenceLedger

Which secret a name resolves to in a project

Reports which scope a name resolves to inside a project: `project` when a project secret shadows a user one, `user` when only the user-scoped secret exists, `none` when neither does. The `shadowed` flag says whether a user-scoped secret of the same name is present behind a project-scoped winner. Metadata only.

GET
/secrets/{name}/resolved/{projectId}

Reports which scope a name resolves to inside a project: project when a project secret shadows a user one, user when only the user-scoped secret exists, none when neither does. The shadowed flag says whether a user-scoped secret of the same name is present behind a project-scoped winner. Metadata only.

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}$
projectId*string

The project to scope the request to.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

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