Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

Read file

Serve one file relative to the requested location.

GET/api/fs/read/*
Query parameters
locationobject | any
Responses
200Success
string<binary>
400InvalidRequestError
_tagstringrequired
Allowed:InvalidRequestError
messagestringrequired
kindstring | any
Show properties
Any of:
string
string
any
any
fieldstring | any
Show properties
Any of:
string
string
any
any
401UnauthorizedError
_tagstringrequired
Allowed:UnauthorizedError
messagestringrequired
Request
curl -X GET "/api/fs/read/*"
Response
"<binary>"