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.string
required
Company name (e.g., “Apple Inc.”)
string
Stock ticker symbol (e.g., “AAPL”). Optional if company_name is provided.
string
Analysis type:
"comprehensive", "financial", "market", or "risk". Default: "comprehensive"integer
Optional deal ID to link analysis results to a deal
boolean
Enable Server-Sent Events (SSE) for real-time progress updates. Default:
falsestring
Response status:
"success" or "error"string
Unique analysis ID for retrieving results
object
Analysis results including:
summary: Executive summaryfindings: Key findingsmetrics: Financial metrics and ratiosdata: Raw analysis data
array
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.string
required
Market analysis query (e.g., “Technology sector trends”, “S&P 500 performance”)
string
Time range for analysis:
"1M", "3M", "6M", "1Y", or "5Y". Default: "3M"integer
Optional deal ID to link analysis results to a deal
boolean
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.string
required
Borrower company name
number
required
Loan amount in USD
string
Loan type:
"term_loan", "revolving", "bridge", or "other". Default: "term_loan"integer
Optional deal ID to link analysis results to a deal
boolean
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.string
required
Analysis ID returned from analysis endpoint
string
Analysis status:
"pending", "running", "completed", or "failed"object
Full analysis results (same as analysis endpoint response)
string
ISO 8601 timestamp of analysis creation
string
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.string
required
Research query/question
integer
Optional deal ID to link research results to a deal
integer
Maximum number of research iterations. Default:
5string
Response status:
"success" or "error"string
Unique research ID for retrieving results
string
Status message
array
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.string
required
Research ID returned from query endpoint
string
Research status:
"pending", "running", "completed", or "failed"string
Comprehensive research answer
array
Array of knowledge items with:
title: Knowledge item titlecontent: Knowledge item contentsources: Array of source citations
array
Array of source URLs and metadata
object
Research statistics:
sources_used: Number of sources consultediterations: Number of research iterationstime_taken_seconds: Research duration
string
ISO 8601 timestamp of research creation
string
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.string
required
Workflow type:
"peoplehub", "deepresearch", or "langalpha"string
required
Chatbot session ID
object
required
Workflow-specific parameters:
- For
peoplehub:{"person_name": "John Doe"} - For
deepresearch:{"query": "research query"} - For
langalpha:{"analysis_type": "company", "company_name": "Apple Inc."}
integer
Optional deal ID to link workflow results to a deal
string
Response status:
"success" or "error"string
Workflow type that was launched
string
Status message
object
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
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.string
required
User message (can include workflow launch requests)
string
required
Chatbot session ID
integer
Optional deal ID for context
integer
Optional document ID for context
array
Previous conversation messages (last 10 messages)
object
Document context (extracted CDM data)
string
Response status:
"success" or "error"string
Chatbot response message
string
Workflow type that was launched (if any):
"langalpha", "deepresearch", or "peoplehub"object
Workflow result object (if workflow was launched)
array
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:string
Error status:
"error"string
Error message describing what went wrong
object
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