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
| Method | Path | Purpose | Scope / permission |
|---|---|---|---|
| POST | /v1/auth/signup | Create user + sandbox organisation | public |
| POST | /v1/auth/signin | Sign in (sets session cookie) | public |
| POST | /v1/auth/mfa/verify | Complete TOTP step | session |
| POST | /v1/auth/forgot-password | Request reset link | public |
| GET | /v1/me | Current user, organisation, permissions | session |
Borrowers & consent
| Method | Path | Purpose | Scope / permission |
|---|---|---|---|
| POST | /v1/borrowers | Create borrower | borrowers:write |
| GET | /v1/borrowers | List / search (cursor) | borrowers:read |
| GET | /v1/borrowers/{borrower_id} | Borrower detail | borrowers:read |
| PATCH | /v1/borrowers/{borrower_id} | Update profile | borrowers:write |
| POST | /v1/borrowers/{borrower_id}/consents | Record consent (human) | consent:write |
Applications
| Method | Path | Purpose | Scope / permission |
|---|---|---|---|
| POST | /v1/applications | Create (optionally submit) | applications:write |
| GET | /v1/applications | List with status filter | applications:read |
| GET | /v1/applications/{application_id} | Detail with checklist & reviews | applications:read |
| POST | /v1/applications/{application_id}/transition | Status change (validated) | applications:write |
| POST | /v1/applications/{application_id}/reviews | Note / flag / doc request / recommendation (human) | review:write |
| POST | /v1/applications/{application_id}/decision | Record lender decision (human only) | decision:record |
Documents & bank analysis
| Method | Path | Purpose | Scope / permission |
|---|---|---|---|
| POST | /v1/documents/upload | Upload (multipart) → 202 | documents:write |
| GET | /v1/documents/{document_id}/status | Processing status | documents:write |
| GET | /v1/documents/{document_id}/transactions | Transactions with filters | analysis:run |
| PATCH | /v1/transactions/{transaction_id} | Recategorise (recalculates) | human |
| PATCH | /v1/documents/{document_id}/extraction | Correct extracted fields (new version) | human |
Analysis & risk
| Method | Path | Purpose | Scope / permission |
|---|---|---|---|
| POST | /v1/financial-analysis | Run fhe-1.0 indicators | analysis:run |
| GET | /v1/financial-analysis/{analysis_id} | Indicators + monthly series | analysis:run |
| GET | /v1/financial-analysis/{analysis_id}/evidence?metric= | Transactions/inputs behind a metric | analysis:run |
| POST | /v1/risk-assessments | Five separate signals + reasons | analysis:run |
| GET | /v1/risk-assessments/{assessment_id} | Assessment detail | risk:read |
Credit policies
| Method | Path | Purpose | Scope / permission |
|---|---|---|---|
| POST | /v1/credit-policies | Create policy | policies:write |
| GET | /v1/credit-policies | List + rule grammar | policies:read |
| POST | /v1/credit-policies/{policy_id}/versions | New draft version (human) | policy:write |
| POST | /v1/credit-policies/{policy_id}/test | Test vs synthetic cases / applications | policies:read |
| POST | /v1/policy-versions/{id}/submit · /approve · /rollback · /retire | Workflow (human; maker-checker) | policy:publish |
Portfolio, reports, audit
| Method | Path | Purpose | Scope / permission |
|---|---|---|---|
| GET | /v1/portfolio/analytics | Indicator-based portfolio view | portfolio:read |
| GET | /v1/dashboard/summary | Overview KPIs | session |
| POST | /v1/reports | Generate PDF/CSV report | session |
| GET | /v1/reports/{report_id}/download | Download (authorised stream) | session |
| GET | /v1/audit-logs | Hash-chained audit log | audit:read |
| GET | /v1/audit-logs/verify | Verify chain integrity | audit:read |
Developer platform
| Method | Path | Purpose | Scope / permission |
|---|---|---|---|
| POST | /v1/api-keys | Create key (secret shown once) | human |
| POST | /v1/api-keys/{id}/rotate | Rotate with grace period | human |
| POST | /v1/api-keys/{id}/revoke | Revoke | human |
| GET | /v1/usage | Usage this period | session |
| POST | /v1/webhooks | Register webhook (signing secret shown once) | webhooks:manage |
| POST | /v1/webhooks/{id}/test | Send test event | webhooks:manage |