Docs / Assess response

Assess response

Every successful POST /v1/assess returns full JSON. There is no separate “action-only” API — you decide in your code how much of the payload to use.

Allow-only vs full use Minimum path: read action (and optionally raw_action in Shadow) and branch allow / challenge / block. Full path: also store reasons, support, dossier, timeline, profile for ops and CS. Credits are billed on the assess call itself — not on reading extra fields.

Core fields (always)

FieldMeaning
oktrue on success
score0–100 · higher = cleaner
actionWhat you should enforce: allow · challenge · block
raw_actionPolicy recommendation (differs from action when Shadow is on)
reasonsList of codes + messages that drove the score
billingcheck_kind, whether a credit was charged, plain text
supportPaste-ready card for your CS / risk team
email / networkSub-scores and details

Memory fields (when you pass user_id)

Credits warning Dossier / timeline / profile are how we remember the user. Building and refreshing them happens on billable deep assesses. Light / trusted reuse is 0 credits — see dossier & credits. Turn on continuous watch only where ATO matters; use First-sync for signup-only products.
FieldForWhen
dossier Chaptered risk story (network, device, velocity, …) Most assesses; richer after deep checks
timeline Human-readable ordered story for review Always when scoring ran
profile Baseline + ATO flags + watch mode state Requires user_id
memory Device graph, velocity, presence, remote-access, model soft nudge Deep path

Optional: you can ignore these fields in production automation and still use them in admin / webhooks.

Compact example

{
  "ok": true,
  "score": 42,
  "action": "challenge",
  "raw_action": "challenge",
  "shadow_mode": false,
  "reasons": [
    { "code": "hosting_or_vpn", "message": "Exit looks VPN/hosting", "weight": "medium" }
  ],
  "billing": { "check_kind": "always_on_deep", "charged": 1, "plain": "…" },
  "support": {
    "headline": "Would challenge · score 42/100 · …",
    "story": "…",
    "customer_safe_line": "…",
    "support_decision_guide": "…",
    "findings": [ { "code": "…", "title": "…", "plain": "…" } ]
  },
  "dossier": { "…": "chapters" },
  "timeline": [ "…" ],
  "profile": {
    "watch_mode": "continuous",
    "dossier": "complete",
    "ato_suspicion": false,
    "flags": []
  }
}

Suggested branching

if (res.action === "allow") {
  // proceed
} else if (res.action === "challenge") {
  // MFA / captcha / manual review queue
  // show res.support.customer_line to the user if you want
} else {
  // block or hold — store res.support for CS
}

Bands and rules that produce action: Decision policy · How CS sees it: Support & lookup.