Skip to Content
Xeonr Developer Docs
API SpecificationFiles

List files

POST
/xeonr.functions.v2.FilesService/ListFiles

Lists the entries under path in the function's workspace, sorted by path, with size, SHA-256 and modification time. An empty path or . is the root, and recursive walks the whole subtree. With versionId, the version's frozen snapshot is listed instead. Pages default to 50 entries and are capped at 500 (limit); pass nextCursor back as cursor until it comes back empty. A path that escapes the root, or a version of another function, is INVALID_ARGUMENT; a missing directory is NOT_FOUND.

Needs the viewer role in the owning team. A function with no workspace yet gets an empty one. Callable with a console session or a team API key (Authorization: Bearer xk_…).

Required scopes: functions:functions:read

Authorization

BearerAuth
AuthorizationBearer <token>

A team API key, created by a team admin in the console and presented as Authorization: Bearer xk_…. Xeonr Auth issues and verifies it; the secret is shown once at creation and stored only as a hash, and a revoked key stops working within 30 seconds. An existing fnt_… token is accepted the same way.

In: header

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

functionId?string
Match^[A-Za-z0-9_-]+$
Length1 <= length <= 64
path?string

path is workspace-relative; anything escaping the root is refused. Empty is the root.

Lengthlength <= 4096
recursive?boolean

validate:skip a boolean has no bounds to state

versionId?string

version_id reads a version's frozen snapshot instead of the live workspace.

Match^[A-Za-z0-9_-]*$
Lengthlength <= 64
cursor?string

cursor is a previous response's next_cursor; empty for the first page.

limit?integer

limit is the page size: 0 means the default of 50, at most 500.

Rangevalue <= 500
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://functions.xeonr.io/xeonr.functions.v2.FilesService/ListFiles" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "files": [
    "map[isDir:false modifiedAt:2026-10-22T09:30:00Z path:src/server.js sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 size:1842]"
  ],
  "nextCursor": "50"
}