List a loan's documents
GET
/v1/loans/{ref}/documents
const url = 'http://localhost:8080/v1/loans/example/documents';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/v1/loans/example/documentsReturns every document of the latest package version: classified type, original name, SHA-256, size, page count, whether it is scanned, and whether it is the LAR (with the profile version that parsed it). Any staff role or an API key with status:read. 404 for an unknown reference.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ref
required
string
Responses
Section titled “Responses”OK
Media typeapplication/json
Array<object>
object
id
required
string format: uuid
loanId
required
string format: uuid
docType
required
string
originalName
required
string
sha256
required
string
byteSize
required
integer | string format: int64
pageCount
required
null | integer | string format: int32
isScanned
required
null | boolean
isLar
required
boolean
larProfileId
required
null | string format: uuid
uploadedAt
required
string format: date-time
Examplegenerated
[ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "loanId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "docType": "example", "originalName": "example", "sha256": "example", "byteSize": 1, "pageCount": 1, "isScanned": true, "isLar": true, "larProfileId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "uploadedAt": "2026-04-15T12:00:00Z" }]