List reason codes
GET
/v1/reason-codes
const url = 'https://api.localhost/v1/reason-codes';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.localhost/v1/reason-codesEvery reason code a decision can return, with a plain description. Codes are stable; descriptions may be reworded. An unknown code is new, not an error.
Responses
Section titled “Responses”The reason code catalog.
Media typeapplication/json
object
reason_codes
required
Array<object>
object
code
required
string
category
required
string
effect
required
Risk adds to the risk score, trust to the trust score; detail is evidence behind another reason.
string
title
required
string
description
required
string
Example
{ "reason_codes": [ { "effect": "risk" } ]}