Auditvec
Getting Started

Quickstart Guide

The Auditvec Risk API sits at the edge. It normalizes inputs, runs your model via the specified profile, and applies governance policies before returning a decision.

Base URL https://risk.auditvec.com

Request Schema

Understanding the input fields and comments.

{
  "include_precedent": true,         
  "panel_size": 11,                  
  "data": {
    "duration": 24,                  // model feature – months
    "duration_months": 36,           // policy field – months (min 36 to PASS in demo)
    "credit_amount": 2500,
    "age": 35,
    "installment_rate": 2,
    "residence_since": 3,
    "existing_credits_count": 1,
    "dependents": 1,
    "status": "A12",
    "credit_history": "A32",
    "purpose": "A43",
    "savings": "A62",
    "employment_length": "A74",
    "personal_status_sex": "A92",
    "other_debtors": "A101",
    "property": "A122",
    "other_plans": "A143",
    "housing": "A152",
    "job": "A172",
    "telephone": "A191",
    "foreign_worker": "A201"
  }
}
Note on Duration Fields The Worker normalizes duration and duration_months so either can be provided. If both are present they must match. The Demo policy requires duration_months >= 36. If not met, the router returns REVIEW regardless of score.

Make a Request

curl -s -X POST "https://risk.auditvec.com/classify?explain=plain" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_DEMO_KEY" \
  -H "X-Config-Id: homecredit" \
  -d '{
    "include_precedent": true,
    "panel_size": 11,
    "data": {
      "duration": 24,
      "duration_months": 36,
      "credit_amount": 2500,
      "age": 35,
      "installment_rate": 2,
      "residence_since": 3,
      "existing_credits_count": 1,
      "dependents": 1,
      "status": "A12",
      "credit_history": "A32",
      "purpose": "A43",
      "savings": "A62",
      "employment_length": "A74",
      "personal_status_sex": "A92",
      "other_debtors": "A101",
      "property": "A122",
      "other_plans": "A143",
      "housing": "A152",
      "job": "A172",
      "telephone": "A191",
      "foreign_worker": "A201"
    }
  }'

Typical Response

JSON
{
  "p_raw_gbdt": 0.23,
  "p_bad_calibrated": 0.14,
  "coverage_pct": 100.0,
  "router": {
    "gate_policy": "PASS|FAIL",
    "gate_cov": "OK|LOW",
    "gate_gray": "CLEAR|GRAY",
    "final_decision": "APPROVE|REVIEW|DENY"
  },
  "precedent_panel": {
    "label": "good|bad",
    "confidence": 0.92,
    "coverage": 1.0
  },
  "plain_summary": {
    "decision": "APPROVE|REVIEW|DENY",
    "reason_lines": ["...", "..."]
  },
  "policy": {
    "status": "PASS|FAIL",
    "violations": ["min_duration_not_met"],
    "flags": []
  },
  "audit_id": "abcdef123456"
}

Policy Snapshot

Inspect the active policy logic and thresholds.

GET /policy
{
  "profile": "homecredit",
  "policy": {
    "min_duration_months": 36,
    "final_mode": "triage",
    "gray_band": 0,
    "coverage_review_pct": 0,
    "bad_thresh_source": "cal"
  },
  "source": "edge"
}
Note: Demo plan may be rate limited. Production plans define daily/per-minute quotas.