Skip to main content
GET
/
filesystems
/
{filesystem_id}
/
files
/
{file_path}
Get File
curl --request GET \
  --url https://api.example.com/filesystems/{filesystem_id}/files/{file_path}
{
  "modified_at": "2023-11-07T05:31:56Z",
  "path": "<string>",
  "synced_at": "2023-11-07T05:31:56Z",
  "checksum": "<string>",
  "content": "<string>",
  "content_truncated": false,
  "is_binary": false,
  "is_directory": false,
  "mime_type": "<string>",
  "size_bytes": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.terminaluse.com/llms.txt

Use this file to discover all available pages before exploring further.

Retrieve a specific file (or directory) from the filesystem manifest.

Path Parameters

filesystem_id
string
required
file_path
string
required

Query Parameters

include_content
boolean
default:true

Include file content in response

Response

Successful Response

File metadata response - adds server-side fields.

modified_at
string<date-time>
required

File's last modification time.

path
string
required

Relative path within filesystem (e.g., 'src/index.ts').

synced_at
string<date-time>
required

When this entry was last synced.

checksum
string | null

SHA256 checksum (None for directories).

content
string | null

File contents (None for binary/large files).

content_truncated
boolean
default:false

True if content was truncated due to size.

is_binary
boolean
default:false

True if file is binary.

is_directory
boolean
default:false

Whether this entry is a directory.

mime_type
string | null

MIME type (None for directories).

size_bytes
integer | null

File size in bytes (None for directories).