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

# Get Chat Session Project Files

> Return user files for the project linked to the given chat session.

If the chat session has no project, returns an empty list.
Only returns files owned by the current user and not FAILED.



## OpenAPI

````yaml GET /user/projects/session/{chat_session_id}/files
openapi: 3.1.0
info:
  title: Onyx API
  description: Onyx API for AI-powered enterprise search and chat
  version: Development
servers:
  - url: https://cloud.onyx.app/api
security: []
paths:
  /user/projects/session/{chat_session_id}/files:
    get:
      tags:
        - public
      summary: Get Chat Session Project Files
      description: |-
        Return user files for the project linked to the given chat session.

        If the chat session has no project, returns an empty list.
        Only returns files owned by the current user and not FAILED.
      operationId: get_chat_session_project_files
      parameters:
        - name: chat_session_id
          in: path
          required: true
          schema:
            type: string
            title: Chat Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UserFileSnapshot'
                title: >-
                  Response Get Chat Session Project Files User Projects Session 
                  Chat Session Id  Files Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    UserFileSnapshot:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        temp_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Temp Id
        name:
          type: string
          title: Name
        project_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Project Id
        user_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: User Id
        file_id:
          type: string
          title: File Id
        created_at:
          type: string
          format: date-time
          title: Created At
        status:
          $ref: '#/components/schemas/UserFileStatus'
        last_accessed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Accessed At
        file_type:
          anyOf:
            - type: string
            - type: 'null'
          title: File Type
        chat_file_type:
          $ref: '#/components/schemas/ChatFileType'
        token_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Token Count
        chunk_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Chunk Count
      type: object
      required:
        - id
        - name
        - user_id
        - file_id
        - created_at
        - status
        - last_accessed_at
        - file_type
        - chat_file_type
        - token_count
        - chunk_count
      title: UserFileSnapshot
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UserFileStatus:
      type: string
      enum:
        - PROCESSING
        - COMPLETED
        - FAILED
        - CANCELED
        - DELETING
      title: UserFileStatus
    ChatFileType:
      type: string
      enum:
        - image
        - document
        - plain_text
        - csv
      title: ChatFileType
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Authorization header with Bearer token

````