{"session_id":"sess_abc123","status":"completed","regeneration_count":0,"insights":[{"id":"ins_001","category":"financial_health","category_display":"Financial Health","title":"Portfolio concentration risk increasing","summary":"Top 5 obligors now represent 32% of total par, up from 28% last quarter.","confidence":0.92,"priority":1,"is_taster":false},{"id":"ins_002","category":"risk_compliance","category_display":"Risk & Compliance","title":"CCC bucket approaching covenant threshold","summary":"CCC rated assets at 6.8% of portfolio, within 0.7% of the 7.5% limit.","confidence":0.95,"priority":2,"is_taster":false},{"id":"ins_003","category":"trends_forecasts","category_display":"Trends & Forecasts","title":"Weighted average spread compression trend","summary":"WAS has declined 15bps over the past 3 months, potentially impacting IC test cushion.","confidence":0.87,"priority":3,"is_taster":false}],"created_at":"2026-01-25T10:30:00Z"}
{"id":"ins_001","category":"financial_health","category_display":"Financial Health","title":"Portfolio concentration risk increasing","summary":"Top 5 obligors now represent 32% of total par, up from 28% last quarter.","confidence":0.92,"priority":1,"is_taster":false,"methodology":"Statistical analysis of obligor exposure trends over trailing 4 quarters using Herfindahl-Hirschman Index (HHI) decomposition.","supporting_data":{"top_5_exposure_current":0.32,"top_5_exposure_previous":0.28,"top_5_exposure_2q_ago":0.26,"threshold":0.35,"hhi_current":0.045,"hhi_previous":0.038},"created_at":"2026-01-25T10:30:00Z","recent_questions":[]}
curl-XPOST"https://api.calcbridge.io/api/v1/insights/ins_001/ask"\-H"Authorization: Bearer $TOKEN"\-H"Content-Type: application/json"\-d'{"question": "Which obligors are driving the concentration increase?"}'
importrequestsresponse=requests.post(f"https://api.calcbridge.io/api/v1/insights/{insight_id}/ask",headers={"Authorization":f"Bearer {token}"},json={"question":"Which obligors are driving the concentration increase?"})qa=response.json()print(f"Q: {qa['question']}")print(f"A: {qa['answer']}")
constresponse=awaitfetch(`https://api.calcbridge.io/api/v1/insights/${insightId}/ask`,{method:'POST',headers:{'Authorization':`Bearer ${token}`,'Content-Type':'application/json'},body:JSON.stringify({question:'Which obligors are driving the concentration increase?'})});constqa=awaitresponse.json();console.log('Answer:',qa.answer);
{"question":"Which obligors are driving the concentration increase?","answer":"The concentration increase is primarily driven by three obligors: Acme Corp (increased from 7.2% to 8.5%), Tech Industries (6.1% to 7.3%), and Global Services (5.8% to 6.4%). The combined increase of 3.1 percentage points accounts for the majority of the shift from 28% to 32%.","insight_id":"ins_001","asked_at":"2026-01-25T11:00:00Z"}
curl-XPOST"https://api.calcbridge.io/api/v1/insights/ask"\-H"Authorization: Bearer $TOKEN"\-H"Content-Type: application/json"\-d'{"question": "What is my current OC test cushion?"}'
importrequestsresponse=requests.post("https://api.calcbridge.io/api/v1/insights/ask",headers={"Authorization":f"Bearer {token}"},json={"question":"What is my current OC test cushion?"})qa=response.json()print(f"A: {qa['answer']}")
constresponse=awaitfetch('https://api.calcbridge.io/api/v1/insights/ask',{method:'POST',headers:{'Authorization':`Bearer ${token}`,'Content-Type':'application/json'},body:JSON.stringify({question:'What is my current OC test cushion?'})});constqa=awaitresponse.json();console.log('Answer:',qa.answer);
{"question":"What is my current OC test cushion?","answer":"Your Senior OC test currently has a cushion of 3.2% above the trigger level of 120.0%, with a current ratio of 123.2%. The Subordinate OC test has a cushion of 1.8% above its 108.0% trigger, at 109.8%.","insight_id":null,"asked_at":"2026-01-25T11:05:00Z"}
[{"question":"Which obligors are driving the concentration increase?","answer":"The concentration increase is primarily driven by three obligors...","insight_id":"ins_001","asked_at":"2026-01-25T11:00:00Z"},{"question":"What is my current OC test cushion?","answer":"Your Senior OC test currently has a cushion of 3.2%...","insight_id":null,"asked_at":"2026-01-25T11:05:00Z"}]