Read File
Reads a File's contents, up to 256 KiB at a time: text and JSON as UTF-8, other files as base64. Read longer text in pages: pass offset and max_bytes, then next_offset while has_more is true. Larger non-text files need download_file or download_room_file.
Signed-in user's Supabase access token. Workspace-scoped operations also require SMB-Workspace-Id.
In: header
Path Parameters
Stable File ID.
^fil_[0-7][0-9A-HJKMNP-TV-Z]{25}$Header Parameters
Workspace where this operation runs. Required for user tokens and Workspace API keys.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/files/string/content" \ -H "SMB-Workspace-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{ "file_content": { "file_id": "string", "file_version_id": "string", "file_name": "string", "content_type": "string", "encoding": "utf8", "content": "string", "size_bytes": 0, "total_bytes": 0, "offset": 0, "next_offset": 0, "has_more": true }, "request_id": "string"}