Factories
List the indexed codebase's files
Returns one page of the files in the deployment’s indexed codebase, in path order, each once with its whole chunk count. Requires permission factories:read, held at the deployment root.
GET
List the indexed codebase's files
The reference panel describes the current v3 operation. The notes below describe its v2 compatibility API. Follow the v3 request schema for current calls: v3 can move identifiers from the body or query into the URL. Keep the v2 method, path, and payload together when using the compatibility API.
v2 compatibility notes
GET /api/v2/factories/listCodebaseFiles returns one page of the files in the deployment’s indexed codebase, in path order, each as a CodebaseFile: its path and how many chunks it holds. It takes only limit (1 to 100, default 100) and cursor.
Every file is listed once, with its whole chunk count: follow meta.nextCursor while meta.hasMore is true. A page reads at most 500 index entries, so a file with more chunks than that answers pages with no files, and meta.hasMore: true, until its count is complete. A malformed limit or cursor is 400 bad_request.
Deployment-root read. The indexed codebase has no home org unit, so your role grants must hold factories:read at the deployment root. Holding it only below the root, or at a partner organization’s root, is refused with 403 and requiredPermission: "factories:read".
Search chunk text with Search the codebase.Authorizations
Query Parameters
Response
Indexed file page

