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

  • Exact name of the secret to retrieve.

  • When true, includes the stored value in payload. Defaults to false.

  • 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.

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"
}