Skip to content

List Customer Documents

Required scope: customer_file:read

Use this endpoint to read the documents currently attached to a customer, newest first. Without pageSize (1 to 100) the first 100 return; when nextCursor is set, send it back as cursor with the same filters for the next page.

Generated Reference
POST /public-api/publicapi.v1.Customer/ListCustomerDocuments

Lists customer documents, newest first. Without page_size the first 100 return with a next_cursor when more exist.

Request ListCustomerDocumentsRequest
Response ListCustomerDocumentsResponse

ListCustomerDocumentsRequest

Field Type Description
customer_id string
visibility CustomerFileVisibility
page_size int32 Rows per page, 1 to 100. Zero uses 100. Without page_size the first 100 return with a next_cursor when more exist.
cursor string Opaque next_cursor from the previous page; keep the other filters the same. The preferred way to read every row.

ListCustomerDocumentsResponse

Field Type Description
documents repeated CustomerDocument
next_cursor string Pass as cursor to read the next page. Empty on the last page.
{
"customerId": "be85f4d1-b680-4964-bf62-9828fdf4ce04",
"visibility": "PUBLIC_CUSTOMER_FILE_VISIBILITY_CUSTOMER"
}
{
"documents": [
{
"id": "cba8fef4-4fd2-4be6-af77-326e716ef130",
"customerId": "be85f4d1-b680-4964-bf62-9828fdf4ce04",
"visibility": "PUBLIC_CUSTOMER_FILE_VISIBILITY_CUSTOMER",
"originalFilename": "quote.pdf",
"contentType": "application/pdf",
"sizeBytes": 124991
}
]
}