Skip to main content
POST
/
v1
/
settings
/
risk
/
preset
Apply risk preset
curl --request POST \
  --url https://api.ledger.so/v1/settings/risk/preset \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "preset": "permissive",
  "dryRun": true
}
'
{
  "object": "riskConfig",
  "preset": "permissive",
  "dryRun": true,
  "duplicateDetection": {
    "enabled": true,
    "windowMinutes": 123,
    "action": "alert"
  },
  "velocityLimit": {
    "enabled": true,
    "maxPerHour": 123,
    "maxPerDay": 123,
    "action": "alert"
  },
  "spendSpike": {
    "enabled": true,
    "multiplier": 123,
    "windowMinutes": 123,
    "baselineDays": 123,
    "action": "alert"
  },
  "unattestedSpend": {
    "enabled": true,
    "action": "alert"
  },
  "intentMismatch": {
    "enabled": true,
    "action": "alert"
  },
  "cooldownViolation": {
    "enabled": true,
    "action": "alert"
  },
  "merchantDrift": {
    "enabled": true,
    "action": "alert"
  }
}

Authorizations

Api-Key
string
header
required

API key for authentication. Get your key from the Dashboard.

Body

application/json
preset
enum<string>
required

Preset to apply

Available options:
permissive,
moderate,
strict,
paranoid
dryRun
boolean

Override dry-run setting when applying preset

Response

Updated risk configuration

object
enum<string>
Available options:
riskConfig
preset
enum<string>

Risk policy preset

Available options:
permissive,
moderate,
strict,
paranoid,
custom
dryRun
boolean

If true, detect anomalies but don't take action

duplicateDetection
object
velocityLimit
object
spendSpike
object
unattestedSpend
object
intentMismatch
object
cooldownViolation
object
merchantDrift
object