Download Kyb Verification Document

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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.read permission 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

ParameterDescription
business_idThe business customer whose verification document you want. Must belong to your client.
file_roleWhich 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_role returns 404.
  • A business with no verification record returns 404.
  • A record that has no file for the requested file_role returns 404.
  • A business_id that does not belong to your client returns 404.

Response

200 returns the raw document as a file download (not JSON). The response carries:

  • Content-Type set to the stored file's content type (falls back to application/octet-stream).
  • Content-Disposition: attachment with the original filename.
  • X-Content-Type-Options: nosniff.

Error responses

StatusWhen
403Document download is not enabled for this client
404Unrecognized 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.

Path Params
string
required
string
required
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json