Files

Get a file's content

Fetch a source file's content for inspecting raw instrument output.

Returns a presigned download URL plus a best-effort UTF-8 text preview of the start of the file. Large files return a URL only (no inline preview); fetch the full bytes via the URL when needed.

Requires an API key with the read scope.

get/api/v1/files/{file_id}/content

Request

  • Base URL: https://platform.labric.co
  • URL: https://platform.labric.co/api/v1/files/{file_id}/content
  • Auth: HTTP bearer

Path parameters

file_idstring required

Response

OK

file_idstring required
file_namestring nullable required
size_kilobytesinteger nullable required
download_urlstring required

Presigned URL to fetch the full file (e.g. via the SDK).

text_previewstring nullable required

Best-effort UTF-8 decode of the start of the file, or null if skipped.

preview_truncatedboolean required

True if the file is longer than the inlined preview.

preview_skipped_reasonstring nullable required

Why an inline preview was not returned (e.g. file too large).

Changes

No recorded changes to this operation across all 1 revision of this API.