KintsugiKintsugi

Preview a compliance document file

GET/compliance-documents/files/{document_id}/preview

Return a stored file's bytes for display in a viewer. The response is the file itself, not JSON: Content-Type is the stored file's type and Content-Disposition is inline, so a browser renders it rather than saving it. Returns 404 if the file does not exist or belongs to an organization your credential cannot access. Requires an Owner user credential.

Authorization

AuthorizationstringRequired

A signed-in user's session token, sent as Authorization: Bearer <token>. It authorizes the organizations that user can reach. Operations that manage people accept only this credential; operations on data also accept an API key.

Headers

Api-Versiondate

Release date, as YYYY-MM-DD. Defaults to 2026-07-21.

Organization-Idstring

Narrow the request to one organization (Organization-Id selector).

Connection-Idstring

Target connection id; resolves to its organization.

Entity-Idstring

Platform entity id; resolves to a connection's organization.

Entity-Sourcestring

Optional source to disambiguate an Entity-Id.

Path parameters

document_idstringRequired

The unique identifier of the stored file.

Response

200

The stored file's bytes.

400

The request was invalid.

401

Authentication failed or was missing.

403

The credential is not permitted for this request.

404

The requested resource was not found.

409

The request conflicts with existing state.

422

Validation Error

503

A service this request depends on was unavailable. Retry the request.

cURL
GET /compliance-documents/files/{document_id}/preview
-H "Authorization: Bearer ***"
-H "Api-Version: 2026-07-21"
Example request
https://api.trykintsugi.com/compliance-documents/files/{document_id}/preview
Response
"string"
Preview a compliance document file (2026-07-21) | Kintsugi API Reference