Find a secret
Retrieves a secret by name for the current account and environment. The response contains metadata by default.
Set reveal=true only when your server needs the stored value. Do not send revealed values to a browser, log them, or return them from your application.
Query Parameters
- Type: stringnamemin length:1max length:255required
Exact name of the secret to retrieve.
- Type: booleanreveal
When
true, includes the stored value inpayload. Defaults tofalse. - enumscope[type]const:account
Account scope for the operation. Omit this parameter to use the current account.
The account boundary for the secret.
values- account
The secret is available only within the selected Paypercut account and environment.
- account
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for get/v1/secrets/find
curl 'https://api.paypercut.io/v1/secrets/find?name=&reveal=false' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"id": "secret_01J7H7D4SK8W1Q9K0Y3M6P2T4V",
"object": "secret",
"created": "2026-11-13T07:04:16.885Z",
"updated": "2026-11-13T07:04:16.885Z",
"name": "string",
"livemode": true,
"expires_at": "2026-11-13T07:04:16.885Z",
"scope": {
"type": "account"
},
"payload": "string"
}
