> ## 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.

# Download a file a chat saved in its workspace

> Downloads one file a chat saved in its workspace, such as a report, chart or CSV file. List the chat's workspace first to find the file's path.

Operation ID: downloadChatWorkspaceFile.



## OpenAPI

````yaml /openapi/itoflow-public.openapi.json get /chat-runtime/chats/{chatId}/downloads/workspace/{relativePath}
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}/downloads/workspace/{relativePath}:
    get:
      tags:
        - Chat
      summary: Download a file a chat saved in its workspace
      description: >-
        Downloads one file a chat saved in its workspace, such as a report,
        chart or CSV file. List the chat's workspace first to find the file's
        path.


        Operation ID: downloadChatWorkspaceFile.
      operationId: downloadChatWorkspaceFile
      parameters:
        - in: path
          name: chatId
          required: true
          schema:
            type: string
        - description: Slash-delimited path below the chat workspace root.
          in: path
          name: relativePath
          required: true
          schema:
            type: string
        - in: query
          name: token
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/octet-stream:
              schema:
                format: binary
                type: string
          description: Streamed file attachment
          headers:
            Content-Disposition:
              schema:
                type: string
            Content-Length:
              schema:
                type: integer
        '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_ErrorResponse:
      properties:
        error:
          type: string
      required:
        - error
      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.