---
title: "Risk Assessment Agent"
method: POST
path: "/api/ai/risk-assessment"
---

# Risk Assessment Agent

`POST /api/ai/risk-assessment`

## Request

- Base URL: `https://api.kojiru.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kojiru.com/api/ai/risk-assessment`
- Auth: none declared

Agent 3: Risk Assessment — agent credit risk analysis for lenders.

## Request body

- RiskAssessmentRequest
  - `credit_line_amount` number, required: Requested credit line in USD
  - `agent_credit_score` integer, required: Agent Credit Score (ACS)
  - `task_completion_rate` number: Agent task completion %
  - `staking_amount` number: KOJIRU staked as collateral
  - `time_on_protocol_days` integer: Days active on protocol

## Response `200`

Successful Response

- RiskAssessmentResponse
  - `risk_grade` string, required
  - `default_probability_pct` number, required
  - `expected_annual_yield_pct` number, required
  - `expected_total_return` number, required
  - `risk_adjusted_return` number, required
  - `recommendation` string, required
  - `collateral_analysis` object, required
  - `ai_assessment` string, nullable
  - `x402_payment` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kojiru/apis/kojiru-api.md) · [All operations](https://skmtc.dev/kojiru/apis/kojiru-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kojiru/apis/kojiru-api/revisions/7974409f57cd?raw)
