putty
API ReferenceLedger

Which projects a secret is usable from

Reports the projects a secret is usable from. A user-scoped secret is usable from every one of the caller's projects; a project-scoped secret is usable from exactly its own. Metadata only.

GET
/secrets/usage/{name}

Reports the projects a secret is usable from. A user-scoped secret is usable from every one of the caller's projects; a project-scoped secret is usable from exactly its own. 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}$

Query Parameters

projectId?string

Read the project-scoped secret of this name.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/secrets/usage/string"
{  "name": "string",  "scope": "user",  "usableInProjects": [    {      "projectId": "string",      "projectName": "string"    }  ]}