Files
Text-bytes preview for small text/code files
Returns the raw text bytes for files ≤256 KB with a text-like MIME (text/*, application/json, yaml, xml, js, ts, sh). Used by the in-browser code preview. Returns { id, name, mimeType, size, text }.
get/api/workspaces/{slug}/files/{fileId}/preview
Request
- Base URLhttps://trydock.ai
- AuthHTTP bearer
Path parameters
slugstring required
fileIdstring required
Response
Text payload
Changes
No recorded changes to this operation across all 2 revisions of this API.