putty
API ReferenceLedger

Decline a secret request

Records that the user declined to provide the value. The model is told `declined` and nothing else, and the request stops appearing in the dashboard's pending banner. Answering a request with a value is a `PUT /secrets/{name}`, which is where the value goes.

POST
/secrets/requests/requests/{id}/decline

Records that the user declined to provide the value. The model is told declined and nothing else, and the request stops appearing in the dashboard's pending banner. Answering a request with a value is a PUT /secrets/{name}, which is where the value goes.

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

id*string

The request to decline.

Length1 <= length

Request Body

application/json

An optional note about why the request was declined.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/secrets/requests/requests/string/decline" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "name": "string",  "description": "string",  "scope": "user",  "projectId": "string",  "status": "pending",  "createdAt": "string"}