Authorization: Bearer ********************
{
"name": "Loan Approval Checklist",
"description": "Checklist to verify all steps before final loan approval.",
"flow": "efacaecc-3511-4e34-86e9-895ca74b2d66",
"stage": "init",
"company_id": "115b2953-e78a-45d6-bafa-58658a4580d5",
"items": [
{
"title": "Verify PAN card",
"description": "Check if PAN is verified via API",
"required": true,
"order_index": 1,
"auto_check_condition": {
"type": "api_validation",
"condition": {
"endpoint": "/verify/pan",
"method": "GET",
"expected_status": 200
}
},
"node_trigger": "KYC_Completed"
},
{
"title": "Credit Score Check",
"description": "Ensure credit score is fetched and is above threshold",
"required": true,
"order_index": 2,
"auto_check_condition": {
"type": "system_check",
"condition": {
"min_score": 650,
"source": "cibil"
}
},
"node_trigger": "Credit_Analysis_Completed"
},
{
"title": "Manual Document Approval",
"description": "Manually verify submitted documents",
"required": false,
"order_index": 3,
"node_trigger": "Document_Uploaded"
}
]
}
curl --location --request POST 'https://preprod.api.crego.io/v1/rego/checklist-templates/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Loan Approval Checklist",
"description": "Checklist to verify all steps before final loan approval.",
"flow": "efacaecc-3511-4e34-86e9-895ca74b2d66",
"stage": "init",
"company_id": "115b2953-e78a-45d6-bafa-58658a4580d5",
"items": [
{
"title": "Verify PAN card",
"description": "Check if PAN is verified via API",
"required": true,
"order_index": 1,
"auto_check_condition": {
"type": "api_validation",
"condition": {
"endpoint": "/verify/pan",
"method": "GET",
"expected_status": 200
}
},
"node_trigger": "KYC_Completed"
},
{
"title": "Credit Score Check",
"description": "Ensure credit score is fetched and is above threshold",
"required": true,
"order_index": 2,
"auto_check_condition": {
"type": "system_check",
"condition": {
"min_score": 650,
"source": "cibil"
}
},
"node_trigger": "Credit_Analysis_Completed"
},
{
"title": "Manual Document Approval",
"description": "Manually verify submitted documents",
"required": false,
"order_index": 3,
"node_trigger": "Document_Uploaded"
}
]
}'
{
"id": "string",
"created_at": "string",
"created_by": "string",
"name": "string",
"description": "string",
"flow": "string",
"stage": "string",
"company_id": "string",
"items": [
{
"title": "string",
"description": "string",
"required": true,
"order_index": 0,
"auto_check_condition": {
"type": "string",
"condition": {
"endpoint": "string",
"method": "string",
"expected_status": 0,
"min_score": 0,
"source": "string"
}
},
"node_trigger": "string"
}
]
}