API SpecificationFunctions
List files
Lists the function's workspace, or a version's frozen snapshot.
Authorization
BearerAuth AuthorizationBearer <token>
A team API token, created by a team owner and presented as
Authorization: Bearer fnt_…. The secret is shown once at creation and
stored only as a hash.
In: header
Header Parameters
Connect-Protocol-Version*number
Define the version of the Connect protocol
Value in
1Connect-Timeout-Ms?number
Define the timeout, in ms
Request Body
application/json
functionId?string
path?string
path is workspace-relative; anything escaping the root is refused.
recursive?boolean
versionId?string
version_id reads a version's frozen snapshot instead of the live workspace.
[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://functions.xeonr.io/xeonr.functions.v1.FunctionService/ListFiles" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"files": [
{
"path": "string",
"size": 0,
"isDir": true,
"sha256": "string",
"mtimeUnix": 0
}
]
}{
"code": "not_found",
"message": "string",
"details": [
{
"type": "string",
"value": "string",
"debug": {}
}
]
}