Skip to main content

Read File

GET 

/files/read

Read a file's UTF-8 contents through the fail-closed guarded reader.

The path must resolve inside one of the approved roots (sessions/, archive/, proposed-changes/). Any escape — .., absolute path, symlink/junction pointing outside — is a 400.

Side effects: None (read-only). Raises: SecurityError → 400 on any escape; FileNotFoundError → 404 when a contained file is absent.

Request

Responses

Successful Response