Stream a stored verification document for a business.
Gated by the documents visibility group: a client whose config does not
grant it gets 403. Scoped to the caller's client; an unknown business,
missing record, missing file, or cross-tenant subject all return 404.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Download a stored verification document for a business customer. The endpoint locates the business's most recent verification record, fetches the stored file matching the requested file_role, records a client-visible audit entry, and streams the file back as a download.
Authentication & access
- Requires a client API token:
Authorization: Bearer <token>. - The caller must hold the
kyb.businesses.readpermission and have the OWNER or OPERATIONS role. - Document download must be enabled for your client. If your client's verification-detail configuration does not grant the document-visibility group, the request returns
403.
Path parameters
| Parameter | Description |
|---|---|
business_id | The business customer whose verification document you want. Must belong to your client. |
file_role | Which stored document to download. An unrecognized value returns 404. |
Document lookup
The endpoint reads from the business customer's most recent verification record (ordered by decision time, then fetch time) under your client. The requested file_role must correspond to a file attached to that record.
- An unrecognized
file_rolereturns404. - A business with no verification record returns
404. - A record that has no file for the requested
file_rolereturns404. - A
business_idthat does not belong to your client returns404.
Response
200 returns the raw document as a file download (not JSON). The response carries:
Content-Typeset to the stored file's content type (falls back toapplication/octet-stream).Content-Disposition: attachmentwith the original filename.X-Content-Type-Options: nosniff.
Error responses
| Status | When |
|---|---|
403 | Document download is not enabled for this client |
404 | Unrecognized file_role; no verification record for this business; no file for the requested role; business not found under this client |
Standard 401 (authentication), 403 (insufficient permission or role), and 429 (rate limit) responses apply to every endpoint and are documented in the Error reference.