CreditLens AI is in development. Explore the interactive demo with synthetic dataOpen demo →
CreditLens AIby AiForge

Developers · API reference

Endpoints

Machine-readable OpenAPI 3.1 is served by the API at /v1/openapi.json, with interactive docs at /v1/docs in the development build. 'human' marks endpoints that require a signed-in person, not an API key.

Authentication & session

MethodPathPurposeScope / permission
POST/v1/auth/signupCreate user + sandbox organisationpublic
POST/v1/auth/signinSign in (sets session cookie)public
POST/v1/auth/mfa/verifyComplete TOTP stepsession
POST/v1/auth/forgot-passwordRequest reset linkpublic
GET/v1/meCurrent user, organisation, permissionssession

Borrowers & consent

MethodPathPurposeScope / permission
POST/v1/borrowersCreate borrowerborrowers:write
GET/v1/borrowersList / search (cursor)borrowers:read
GET/v1/borrowers/{borrower_id}Borrower detailborrowers:read
PATCH/v1/borrowers/{borrower_id}Update profileborrowers:write
POST/v1/borrowers/{borrower_id}/consentsRecord consent (human)consent:write

Applications

MethodPathPurposeScope / permission
POST/v1/applicationsCreate (optionally submit)applications:write
GET/v1/applicationsList with status filterapplications:read
GET/v1/applications/{application_id}Detail with checklist & reviewsapplications:read
POST/v1/applications/{application_id}/transitionStatus change (validated)applications:write
POST/v1/applications/{application_id}/reviewsNote / flag / doc request / recommendation (human)review:write
POST/v1/applications/{application_id}/decisionRecord lender decision (human only)decision:record

Documents & bank analysis

MethodPathPurposeScope / permission
POST/v1/documents/uploadUpload (multipart) → 202documents:write
GET/v1/documents/{document_id}/statusProcessing statusdocuments:write
GET/v1/documents/{document_id}/transactionsTransactions with filtersanalysis:run
PATCH/v1/transactions/{transaction_id}Recategorise (recalculates)human
PATCH/v1/documents/{document_id}/extractionCorrect extracted fields (new version)human

Analysis & risk

MethodPathPurposeScope / permission
POST/v1/financial-analysisRun fhe-1.0 indicatorsanalysis:run
GET/v1/financial-analysis/{analysis_id}Indicators + monthly seriesanalysis:run
GET/v1/financial-analysis/{analysis_id}/evidence?metric=Transactions/inputs behind a metricanalysis:run
POST/v1/risk-assessmentsFive separate signals + reasonsanalysis:run
GET/v1/risk-assessments/{assessment_id}Assessment detailrisk:read

Credit policies

MethodPathPurposeScope / permission
POST/v1/credit-policiesCreate policypolicies:write
GET/v1/credit-policiesList + rule grammarpolicies:read
POST/v1/credit-policies/{policy_id}/versionsNew draft version (human)policy:write
POST/v1/credit-policies/{policy_id}/testTest vs synthetic cases / applicationspolicies:read
POST/v1/policy-versions/{id}/submit · /approve · /rollback · /retireWorkflow (human; maker-checker)policy:publish

Portfolio, reports, audit

MethodPathPurposeScope / permission
GET/v1/portfolio/analyticsIndicator-based portfolio viewportfolio:read
GET/v1/dashboard/summaryOverview KPIssession
POST/v1/reportsGenerate PDF/CSV reportsession
GET/v1/reports/{report_id}/downloadDownload (authorised stream)session
GET/v1/audit-logsHash-chained audit logaudit:read
GET/v1/audit-logs/verifyVerify chain integrityaudit:read

Developer platform

MethodPathPurposeScope / permission
POST/v1/api-keysCreate key (secret shown once)human
POST/v1/api-keys/{id}/rotateRotate with grace periodhuman
POST/v1/api-keys/{id}/revokeRevokehuman
GET/v1/usageUsage this periodsession
POST/v1/webhooksRegister webhook (signing secret shown once)webhooks:manage
POST/v1/webhooks/{id}/testSend test eventwebhooks:manage