Borrowers
API key in the format: cc_xxx_yyy (for customer API routes)
Borrower organization ID. Example: 550e8400-e29b-41d4-a716-446655440000
Default Response
Borrower organization ID
550e8400-e29b-41d4-a716-446655440000Organization name
CAIP-2 network identifiers for blockchain networks this borrower has credit facilities on
eip155:1Default Response
Default Response
const es = new EventSource('/v3/borrowers/{id}/logs?format=event-stream', {
headers: { 'x-api-key': 'cc_...' },
});
es.addEventListener('log', (e) => console.log(JSON.parse(e.data)));
es.addEventListener('done', (e) => { console.log('total:', JSON.parse(e.data).total); es.close(); });API key in the format: cc_xxx_yyy (for customer API routes)
Borrower organization ID. Example: 550e8400-e29b-41d4-a716-446655440000
Response format. "json" returns paginated JSON (default 20, max 1000). "csv" returns a streamed CSV file download. "event-stream" returns Server-Sent Events with each log as a named "log" event and a final "done" event. Event types: AddCredit, RepayPrincipal, RepayInterest, IncreaseCredit, ReservesChanged, Borrow, WithdrawDeposit, WithdrawProfit, PayServicingFee, TransferOriginationFee.
jsonPossible values: Filter logs by CAIP-2 network identifier. Example: eip155:8453
Start date (YYYY-MM-DD). Example: 2025-01-15
End date, inclusive (YYYY-MM-DD). Example: 2025-01-15
Maximum number of results. For json: default 20, max 1000. For csv/event-stream: default 1000000, max 1000000.
0Borrower credit line logs. Response format depends on the format query parameter.
Borrower organization ID
550e8400-e29b-41d4-a716-446655440000Default Response
Default Response
Default Response
Default Response
API key in the format: cc_xxx_yyy (for customer API routes)
Borrower organization ID
Start date (YYYY-MM-DD). Defaults to auto-detected loan start.
End date, inclusive (YYYY-MM-DD). Defaults to today.
Comma-separated trailing periods in days (e.g. "14,30,120"). Max: 365. Defaults to org config or "30".
Comma-separated stage filter for cashflow (e.g. "secured,settled"). Valid values: external, in_transit, secured, settled. Normally you do not need to specify this parameter. Defaults to org config or "secured".
Cash flow direction. "inflow" counts only inflows. "net" computes net flow (inflows - outflows). Defaults to org config or "inflow".
Response format. "json" (default) or "csv" file download.
jsonPossible values: Default Response
Default Response
Default Response
Default Response
Default Response
Last updated
Was this helpful?