Reason codes
Every decision lists reason codes in reasons, strongest first, and the bot verdict lists its own in bot.reasons. Codes are stable: build rules, alerts, and reports on them. Descriptions may be reworded.
The full catalog, with a plain description of each code, is one call away and needs no key:
curl https://api.opencontext.com/v1/reason-codes{ "reason_codes": [ { "code": "BOT_AI_AGENT", "category": "Agents and bots", "effect": "risk", "title": "AI agent", "description": "An AI agent is acting in the browser, such as a browsing assistant working for someone. …" } ]}Cache it (it changes rarely; the response allows an hour), and treat an unknown code as new rather than as an error.
Categories
Section titled “Categories”| Prefix | Category | Examples |
|---|---|---|
BOT_ |
Agents and bots | BOT_AI_AGENT, BOT_AGENT_VERIFIED, BOT_AGENT_SPOOFED, BOT_AUTOMATION, BOT_GOOD_BOT |
DEV_ |
Device | DEV_NEW, DEV_NOT_COLLECTED, DEV_REQUEST_INVALID, DEV_REQUEST_REUSED, DEV_COLLECTION_EXPECTED, DEV_COLLECTION_MISMATCH, DEV_TOKEN_MISMATCH, DEV_SPOOFED_PLATFORM, DEV_TIMEZONE_SPOOFED, DEV_LANGUAGE_MISMATCH, DEV_OTHER_BROWSER_BLOCKED |
NET_ |
Network | NET_HOSTING_IP, NET_TIMEZONE_MISMATCH, NET_TOR_EXIT, NET_VPN, NET_PUBLIC_PROXY, NET_HIJACKED_RANGE |
VEL_, ACCT_ |
Velocity | VEL_DEVICE_ACCOUNTS, VEL_ACCOUNT_DEVICES, ACCT_NEW_DEVICE |
HIST_ |
History from your outcomes | HIST_DEVICE_BAD_ACTOR, HIST_ACCOUNT_BAD_ACTOR, HIST_BLOCKED_OTHER_DEVICE |
POS_ |
Trust | POS_LONG_TENURE, POS_KNOWN_GOOD_DEVICE, POS_STEP_UP_PASSED |
B001 and up |
Your rules | B004 (starter: AI agent we could not verify), B100 and up for rules you write |
Effects
Section titled “Effects”Each code has an effect:
riskadds to the risk score.trustadds to the trust score.detailis evidence behind another reason and adds no points by itself, for exampleBOT_AGENT_DECLAREDexplaining how we knew aBOT_AI_AGENTwas an agent.
The console shows each decision’s codes with their titles and the points each one added.