Overview
For every fingerprint lookup, Device Fingerprinting recommends a specific verdict action. You can override the default action to customize the recommendations based on your application and traffic.- This is most useful for customizing Protected Auth decisioning.
- If you are directly integrating with the Device Fingerprinting API, you can also use verdict reason overrides to change decisioning logic without needing to write and deploy new backend code.
Example
TheVIRTUAL_MACHINE warning flag results in a CHALLENGE by default,
but you might expect many legitimate users to be using an enterprise browser (that runs in a virtual machine). You can override verdict reasons so that VIRTUAL_MACHINE maps to an ALLOW verdict instead.
See Reference guides for a full list of all verdict reasons or use the Get Verdict Reasons endpoint.
Prerequisites
- An existing Stytch project in the Dashboard.
- The
project_idandsecretfor your project’s Test environment. These can be found under your project’s Project ID & API keys section in the Dashboard. - Device Fingerprinting enabled for your project.
- If you don’t have Device Fingerprinting enabled, you can request access here.
Steps
Select which verdict reason to override
You will need the verdict reason and action to associate with it.
- See Reference guides for warning flags (verdict reasons).
- Or use the Get Verdict Reasons endpoint.
ALLOW, BLOCK, or CHALLENGE.Call Set Verdict Reason Override
Call the Set Verdict Reason Override endpoint:This example sets
VIRTUAL_MACHINE to ALLOW instead of the default reason.Review the new override
You can use the Get Verdict Reasons endpoint to confirm your change:The resulting list will contain an entry showing the override for
VIRTUAL_MACHINE:The response also includes
verdict.verdict_reason_overrides that contains information about overrides applied to a specific lookup.Delete the override
To delete the override, call the Set Verdict Reason Override endpoint with an action of
NONE: