> ## Documentation Index
> Fetch the complete documentation index at: https://docs.itoflow.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List files a chat saved in its workspace

> Lists the files and folders a chat saved in its workspace, such as reports, charts and data files. Pass path to list a folder below the workspace root. List your chats to find an earlier chat, then download a file from it.

Operation ID: listChatWorkspaceDirectory.



## OpenAPI

````yaml /openapi/itoflow-public.openapi.json get /chat-runtime/chats/{chatId}/workspace
openapi: 3.1.0
info:
  description: >-
    All Itoflow APIs are experimental and may change without notice. Read-only
    operations marked interactive can be tried from the documentation; the
    others are reference-only.
  title: Itoflow Developer API
  version: 1.0.0
servers:
  - description: Itoflow API
    url: https://api.itoflow.ai
security: []
tags:
  - name: Account
  - name: Billing
  - name: Brokers
  - name: Chat
  - name: Connected MCP servers
  - name: GitHub
  - name: Market data
  - name: Monitors
  - name: Notifications
  - name: Portfolios
  - name: Risk runs
  - name: Sharing and data
  - name: Strategies
paths:
  /chat-runtime/chats/{chatId}/workspace:
    get:
      tags:
        - Chat
      summary: List files a chat saved in its workspace
      description: >-
        Lists the files and folders a chat saved in its workspace, such as
        reports, charts and data files. Pass path to list a folder below the
        workspace root. List your chats to find an earlier chat, then download a
        file from it.


        Operation ID: listChatWorkspaceDirectory.
      operationId: listChatWorkspaceDirectory
      parameters:
        - in: path
          name: chatId
          required: true
          schema:
            type: string
        - description: Folder below the workspace root. Leave empty for the root.
          in: query
          name: path
          required: false
          schema:
            default: ''
            type: string
        - in: query
          name: cursor
          required: false
          schema:
            type: string
        - in: query
          name: limit
          required: false
          schema:
            default: 100
            maximum: 500
            minimum: 1
            type: integer
        - in: query
          name: token
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gateway_ChatWorkspaceListResponse'
          description: JSON response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gateway_ErrorResponse'
          description: 400 error response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gateway_ErrorResponse'
          description: 401 error response
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gateway_ErrorResponse'
          description: 403 error response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gateway_ErrorResponse'
          description: 404 error response
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gateway_ErrorResponse'
          description: 409 error response
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gateway_ErrorResponse'
          description: 410 error response
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gateway_ErrorResponse'
          description: 500 error response
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gateway_ErrorResponse'
          description: 503 error response
      security:
        - bearerAuth: []
components:
  schemas:
    Gateway_ChatWorkspaceListResponse:
      additionalProperties: false
      properties:
        entries:
          items:
            $ref: '#/components/schemas/Gateway_ChatWorkspaceEntry'
          type: array
        nextCursor:
          type:
            - string
            - 'null'
        path:
          type: string
      required:
        - entries
        - nextCursor
        - path
      type: object
    Gateway_ErrorResponse:
      properties:
        error:
          type: string
      required:
        - error
      type: object
    Gateway_ChatWorkspaceEntry:
      additionalProperties: false
      properties:
        kind:
          enum:
            - directory
            - file
          type: string
        modifiedAt:
          format: date-time
          type:
            - string
            - 'null'
        name:
          type: string
        path:
          type: string
        sizeBytes:
          minimum: 0
          type:
            - integer
            - 'null'
      required:
        - kind
        - modifiedAt
        - name
        - path
        - sizeBytes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: Itoflow access token issued for the Itoflow API.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.