Business
List business documents
Changed onThis GET endpoint lists the documents on file for a business, oldest first: those sent with POST /business and those uploaded through POST /business/{business_token}/documents. <br> You must specify the business_token in the URL path. The caller must be the account that created the business, or the business itself using its own API key. <br> The response carries each document's token, type, file name, size and upload time, not the file itself.
get/business/{business_token}/documents
Request
- Base URLhttps://api.masspay.io/v1.0.0
- Auth
- API key in header Authorization
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
OK
Example response
{
"business_token": "0b9f5c2e-4a1d-4c7e-9f3a-2d8e6b1c4f57",
"documents": [
{
"document_token": "doc_8c5f1d2a-7b3e-4f9a-a1c6-3e2d9b8f7a10",
"document_type": "kyb_report",
"file_name": "kyb-report-apple-inc.pdf",
"size_bytes": 184322,
"description": "KYB report from Middesk, run 2026-10-01",
"time_uploaded": "2026-10-21T18:42:07"
}
]
}Changes
- info
endpoint added
- info