files_get_content
Reads a stored file as base64 after verifying its SHA-256 hash matches the recorded checksum. Returns an integrity_mismatch error with both hashes and no content if verification fails.
Instructions
Read a stored file back as base64, having re-hashed the bytes and compared them against the stored sha256 first. A mismatch returns integrity_mismatch with both hashes and NO bytes, because serving content the checksum disowns is worse than refusing; a missing blob returns content_not_found. This is the OR 958f Abs. 3 readability half. Needs the file-content right on top of the master-data read: a read-only role may list the filing and not download it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | ||
| workspaceId | Yes |