Skip to main content

Credit Card Loans (/api/v1/credit-card-loans)

Endpoints specific to credit card application decisioning and limit predictions.

All endpoints require authentication via X-API-Key.

1. Predict Credit Card Loan

Execute a risk and limit prediction for a credit card application based on user profile and financial history. Consumes credits (CREDIT_CARD_PREDICTION).

  • Method: POST
  • Endpoint: /api/v1/credit-card-loans/predict
  • Authentication: Required

Request Body

ParameterTypeDescription
Total_Good_DebtNumberThe applicant's total existing good debt
Applicant_Gender_MNumber1 if male, 0 otherwise
Income_Type_WorkingNumber1 if standard working class, 0 otherwise
Job_Title_LaborersNumber1 if laborer role, 0 otherwise
Family_Status_MarriedNumber1 if married, 0 otherwise
Total_IncomeNumberThe applicant's annual gross income
Total_ChildrenNumberThe number of children the applicant has
Years_of_WorkingNumberTotal years of employment
Applicant_AgeNumberApplicant's current age
Income_Type_State_servantNumber1 if state servant, 0 otherwise
{
"Total_Good_Debt": 15000,
"Applicant_Gender_M": 1,
"Income_Type_Working": 1,
"Job_Title_Laborers": 0,
"Family_Status_Married": 1,
"Total_Income": 95000,
"Total_Children": 2,
"Years_of_Working": 10,
"Applicant_Age": 35,
"Income_Type_State_servant": 0
}
curl -X POST https://api.riskinmind.ai/api/v1/credit-card-loans/predict \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"Total_Good_Debt": 15000,
"Applicant_Gender_M": 1,
"Income_Type_Working": 1,
"Job_Title_Laborers": 0,
"Family_Status_Married": 1,
"Total_Income": 95000,
"Total_Children": 2,
"Years_of_Working": 10,
"Applicant_Age": 35,
"Income_Type_State_servant": 0
}'

Response

{
"predictions": [
{
"probability": 0.85,
"rejection_probability": 0.15
}
]
}
FieldTypeDescription
predictions[0].probabilityNumberLikelihood of application approval (0-1)
predictions[0].rejection_probabilityNumberLikelihood of application rejection (0-1)