Skip to main content

Commercial Real Estate (CRE) Loans (/api/v1/cre-loans)

Endpoints specific to Commercial Real Estate loan applications. These differ from standard consumer loans by relying on metrics like NOI (Net Operating Income), Cap Rates, and DSCR (Debt Service Coverage Ratio).

1. Predict CRE Loan Risk (JSON)

Run a risk assessment tailored to Commercial Real Estate properties based on a JSON data payload.

  • Method: POST
  • Endpoint: /api/v1/cre-loans/predict/:propertyType
  • Authentication: Required (API Key)
  • Headers:
    • X-API-Key: <your_api_key>
    • Content-Type: application/json
  • Path Param: propertyType (e.g., OFFICE, RETAIL, MULTIFAMILY, INDUSTRIAL)

Request Body

ParameterTypeDescription
PROP_VALNumberProperty Value.
NOINumberNet Operating Income.
OBALNumberOutstanding Balance.
ORIG_AMTNumberOrigination Amount.
RATENumberInterest Rate.
TTANumberTime to Amortization.
AMORT_MNumberAmortization period.
GRNTRStringGuarantor name.
MAT_DEFNumberMaturity Default indicator.
PD_INDNumberProbability of Default Indicator.
DPVA_PVNumberDPVA Present Value.
DPVA_LTVNumberDPVA Loan to Value.
{
"PROP_VAL": 1000000,
"NOI": 150000,
"OBAL": 750000,
"ORIG_AMT": 800000,
"RATE": 4.5,
"TTA": 12,
"AMORT_M": 360,
"GRNTR": "John Doe",
"MAT_DEF": 0,
"PD_IND": 0,
"DPVA_PV": 1000000,
"DPVA_LTV": 75.0
}

Response

  • Content-Type: application/json
{
"probability": 0.05,
"risk": "Low",
"threshold_used": 0.15
}
FieldTypeDescription
probabilityNumberThe calculated probability of default.
riskStringCategorized risk level (e.g., Low, High).
threshold_usedNumberThreshold used to classify risk.

2. Generate CRE Risk Report (PDF)

Submit the CRE financial data as JSON to generate a risk prediction and immediately download a structured PDF report containing the prediction and summary details.

  • Method: POST
  • Endpoint: /api/v1/cre-loans/predict/pdf/:propertyType
  • Authentication: Required (API Key)
  • Headers:
    • X-API-Key: <your_api_key>
    • Content-Type: application/json
  • Path Param: propertyType (e.g., OFFICE, RETAIL, MULTIFAMILY, INDUSTRIAL)

Request Body

Same JSON payload structure as the Predict CRE Loan Risk endpoint (PROP_VAL, NOI, OBAL, etc.).

curl -X POST https://api.riskinmind.ai/api/v1/cre-loans/predict/pdf/OFFICE \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"PROP_VAL": 1000000,
"NOI": 150000,
"OBAL": 750000,
"ORIG_AMT": 800000,
"RATE": 4.5,
"TTA": 12,
"AMORT_M": 360,
"GRNTR": "John Doe",
"MAT_DEF": 0,
"PD_IND": 0,
"DPVA_PV": 1000000,
"DPVA_LTV": 75.0
}' --output report.pdf

Response

  • Content-Type: application/pdf
  • Returns: A binary PDF stream representing the generated CRE loan risk report.