Risk weights decide what each signal adds to the suspect score, and the threshold decides where high begins. Keep them in version control and apply them from code. See risk weights for how profiles are chosen. Any management key can read weights; only admin keys can change them.
Path parameters
organization_idstringrequiredYour organization, from Describe the key. A path naming any other organization answers404.platformstringweb,androidorios, where a path has it.sdk_key_idstringThe SDK key, where a path has it.
List signals
/api/v1/management/signals/catalogue Management keyEvery signal group and the signals in it, with the platforms each applies to and its default weights, the default threshold and the maximum weight. The same for every organization. Weights are set against the signal names listed here.
Read the organization's weights
/api/v1/management/organizations/{organization_id}/risk-weights Management keyResponse
scopestringorganization.max_weightintegerThe largest weight accepted,10000.platformsPlatformWeights[]One entry per platform.11 child fields
platformstringweb,androidorios.scopestringorganization, ordefaultwhen nothing has been saved.storedbooleanWhether this scope has its own saved configuration.revisionintegerSend it back to detect concurrent edits.suspect_thresholdintegerThe threshold.weightsobjectSignal name to weight.defaultsobjectThe shipped default for each signal.signalsstring[]The signals this platform can weight.vpn_weights_modestringmethodorconfidence.residential_proxy_weights_modestringmethodorconfidence.updated_atstringWhen the configuration was last saved.
Save the organization's weights
/api/v1/management/organizations/{organization_id}/risk-weights/{platform} Management keyBody
weightsobjectSignal name to weight, from0to10000. Replaces the stored weights. A signal left out uses its default;0turns it off.suspect_thresholdintegerThe score at which the level becomeshigh, from1to1000000.vpn_weights_modestringmethodorconfidence.residential_proxy_weights_modestringmethodorconfidence.revisionintegerTherevisiona read returned. The save is refused with409andweights_staleif the weights changed since. Omit it to overwrite.
Every field is optional. Answers with the platform's configuration, which scores the next identification.
Restore the default weights
/api/v1/management/organizations/{organization_id}/risk-weights/{platform} Management keySaves the shipped defaults for the platform and answers with them.
Read an SDK key's weights
/api/v1/management/organizations/{organization_id}/sdk-keys/{sdk_key_id}/risk-weights Management keyThe same shape as the organization's, with scope set to key. A platform the key has not overridden answers with the organization's values and stored set to false.
Save an SDK key's weights
/api/v1/management/organizations/{organization_id}/sdk-keys/{sdk_key_id}/risk-weights/{platform} Management keyBody
weightsobjectSignal name to weight, from0to10000. Replaces the stored weights. A signal left out uses its default;0turns it off.suspect_thresholdintegerThe score at which the level becomeshigh, from1to1000000.vpn_weights_modestringmethodorconfidence.residential_proxy_weights_modestringmethodorconfidence.revisionintegerTherevisiona read returned. The save is refused with409andweights_staleif the weights changed since. Omit it to overwrite.
Overrides the organization's profile for this key alone. Because a key belongs to one environment, this is how a new policy is tried on staging keys before it reaches production.
Remove an SDK key's weights
/api/v1/management/organizations/{organization_id}/sdk-keys/{sdk_key_id}/risk-weights/{platform} Management keyDeletes the key's own configuration, so the key follows the organization's profile again, and answers with what the key is scored under now.