Overview
CreditNexus provides comprehensive API endpoints for three AI agent workflows:- LangAlpha: Quantitative financial analysis with multi-agent orchestration
- DeepResearch: Iterative web research with knowledge accumulation
- PeopleHub: Business intelligence and psychometric analysis
Authorization header.
LangAlpha: Quantitative Analysis
Analyze Company
Perform comprehensive quantitative analysis of a company.Company name (e.g., “Apple Inc.”)
Stock ticker symbol (e.g., “AAPL”). Optional if company_name is provided.
Analysis type:
"comprehensive", "financial", "market", or "risk". Default: "comprehensive"Optional deal ID to link analysis results to a deal
Enable Server-Sent Events (SSE) for real-time progress updates. Default:
falseResponse status:
"success" or "error"Unique analysis ID for retrieving results
Analysis results including:
summary: Executive summaryfindings: Key findingsmetrics: Financial metrics and ratiosdata: Raw analysis data
Array of FINOS CDM-compliant events generated during analysis
stream=true):
Server-Sent Events with the following event types:
-
started: Analysis has begun -
progress: Progress update -
completed: Analysis completed
app/api/routes.py (line ~1169), app/services/quantitative_analysis_service.py
Analyze Market
Perform market analysis for sectors, trends, or economic indicators.Market analysis query (e.g., “Technology sector trends”, “S&P 500 performance”)
Time range for analysis:
"1M", "3M", "6M", "1Y", or "5Y". Default: "3M"Optional deal ID to link analysis results to a deal
Enable Server-Sent Events (SSE) for real-time progress updates. Default:
falseapp/api/routes.py (line ~1310), app/services/quantitative_analysis_service.py
Analyze Loan Application
Evaluate loan applications with quantitative metrics.Borrower company name
Loan amount in USD
Loan type:
"term_loan", "revolving", "bridge", or "other". Default: "term_loan"Optional deal ID to link analysis results to a deal
Enable Server-Sent Events (SSE) for real-time progress updates. Default:
falseapp/api/routes.py (line ~1361), app/services/quantitative_analysis_service.py
Get Analysis Results
Retrieve completed analysis results by analysis ID.Analysis ID returned from analysis endpoint
Analysis status:
"pending", "running", "completed", or "failed"Full analysis results (same as analysis endpoint response)
ISO 8601 timestamp of analysis creation
ISO 8601 timestamp of analysis completion (if completed)
app/api/routes.py (line ~1489), app/services/quantitative_analysis_service.py
DeepResearch: Iterative Web Research
Submit Research Query
Submit a research query for iterative web research.Research query/question
Optional deal ID to link research results to a deal
Maximum number of research iterations. Default:
5Response status:
"success" or "error"Unique research ID for retrieving results
Status message
Array of FINOS CDM-compliant events generated during research
app/api/routes.py (line ~708), app/services/deep_research_service.py
Get Research Results
Retrieve completed research results by research ID.Research ID returned from query endpoint
Research status:
"pending", "running", "completed", or "failed"Comprehensive research answer
Array of knowledge items with:
title: Knowledge item titlecontent: Knowledge item contentsources: Array of source citations
Array of source URLs and metadata
Research statistics:
sources_used: Number of sources consultediterations: Number of research iterationstime_taken_seconds: Research duration
ISO 8601 timestamp of research creation
ISO 8601 timestamp of research completion (if completed)
app/api/routes.py (line ~793), app/services/deep_research_service.py
PeopleHub: Business Intelligence
Launch PeopleHub Workflow
Launch a PeopleHub research workflow via the digitizer chatbot API.Workflow type:
"peoplehub", "deepresearch", or "langalpha"Chatbot session ID
Workflow-specific parameters:
- For
peoplehub:{"person_name": "John Doe"} - For
deepresearch:{"query": "research query"} - For
langalpha:{"analysis_type": "company", "company_name": "Apple Inc."}
Optional deal ID to link workflow results to a deal
Response status:
"success" or "error"Workflow type that was launched
Status message
Workflow result object with:
- For
peoplehub: Psychometric profile, research summary, credit assessment - For
deepresearch: Research ID and status - For
langalpha: Analysis ID and status
Array of FINOS CDM-compliant events generated during workflow
app/api/routes.py (line ~3903), app/services/digitizer_chatbot_service.py
Chatbot Integration
Chat with Digitizer Chatbot
Send a message to the digitizer chatbot, which can automatically launch agent workflows.User message (can include workflow launch requests)
Chatbot session ID
Optional deal ID for context
Optional document ID for context
Previous conversation messages (last 10 messages)
Document context (extracted CDM data)
Response status:
"success" or "error"Chatbot response message
Workflow type that was launched (if any):
"langalpha", "deepresearch", or "peoplehub"Workflow result object (if workflow was launched)
Array of FINOS CDM-compliant events
app/api/routes.py (line ~3835), app/services/digitizer_chatbot_service.py
Error Responses
All endpoints return standard error responses:Error status:
"error"Error message describing what went wrong
Additional error details (if available)
400 Bad Request: Invalid request parameters401 Unauthorized: Missing or invalid JWT token403 Forbidden: Insufficient permissions404 Not Found: Analysis/research ID not found500 Internal Server Error: Server error during processing
Rate Limiting
All agent workflow endpoints are rate-limited:- Default: 60 requests per minute per user
- Streaming endpoints: Same rate limit applies
- Rate limit headers:
X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset
Authentication
All endpoints require JWT authentication:- Login to get JWT token:
POST /api/auth/login - Include token in
Authorizationheader:Authorization: Bearer {jwt_token} - Token expiration: Tokens expire after configured TTL (default: 24 hours)
app/auth/jwt_auth.py
Next Steps
- Agent Workflows Feature Documentation - Complete feature overview
- Configuration Guide - Setup instructions
- Agent Tools Documentation - Available tools and capabilities
Last Updated: 2025-01-14
API Version: 1.0