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 URL
    https://trydock.ai
  • Auth
    HTTP bearer

Path parameters

slugstring required
fileIdstring required

Response

Text payload

idstring required
namestring required
mimeTypestring required
sizeinteger required
textstring required

Changes

No recorded changes to this operation across all 2 revisions of this API.