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

# Get Contact Files

> Retrieve all files for this contact, including chat files and direct uploads.



## OpenAPI

````yaml https://api.useinvent.com/openapi.json get /orgs/{org_id}/contacts/{contact_id}/files
openapi: 3.1.0
info:
  version: 1.0.0
  title: Invent API
servers:
  - url: https://api.useinvent.com
security:
  - bearerAuth: []
paths:
  /orgs/{org_id}/contacts/{contact_id}/files:
    get:
      tags:
        - Orgs Contacts
      summary: Get Contact Files
      description: >-
        Retrieve all files for this contact, including chat files and direct
        uploads.
      parameters:
        - schema:
            type: string
          required: true
          description: Org ID
          name: org_id
          in: path
        - schema:
            type: string
          required: true
          description: Contact ID
          name: contact_id
          in: path
        - schema:
            type: string
            maxLength: 256
            description: Search files by filename
            example: document.pdf
          required: false
          description: Search files by filename
          name: search
          in: query
        - schema:
            type: string
            maxLength: 1024
            description: Filter by MIME type (prefix match)
            example: image/
          required: false
          description: Filter by MIME type (prefix match)
          name: mimetype
          in: query
        - schema:
            type: number
          required: false
          description: Page number
          name: page
          in: query
        - schema:
            type: number
          required: false
          description: Number of items to take
          name: take
          in: query
        - schema:
            type: string
          required: false
          description: Next page token (Only used on special endpoints)
          name: next
          in: query
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ContactFileSchema'
components:
  schemas:
    ContactFileSchema:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the file
        file_path:
          type: string
          maxLength: 2048
          description: Path to the file in the storage system
        file_filename:
          type: string
          maxLength: 255
          description: Name of the file
          example: document.pdf
        file_size:
          type: number
          description: Size of the file in bytes
          example: 1024
        file_mimetype:
          type: string
          maxLength: 255
          description: MIME type of the file
          example: application/pdf
        file_url:
          type: string
          maxLength: 2048
          description: URL to access the file
        created_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Timestamp when the file was created
        source:
          $ref: '#/components/schemas/ContactFileSourceSchema'
        user:
          allOf:
            - $ref: '#/components/schemas/UserLimitedSchema'
            - description: >-
                Staff member who linked the file to the contact. Null when the
                file came from the contact themselves or was generated by the
                assistant.
      required:
        - id
        - file_path
        - file_filename
        - file_size
        - file_mimetype
        - file_url
        - created_at
        - source
      description: A file in a contact collection, with its origin metadata
    ContactFileSourceSchema:
      type: string
      enum:
        - direct
        - comment
        - chat
      description: >-
        Where the file came from in the contact: a direct upload, attached to a
        comment, or sent in a chat
    UserLimitedSchema:
      type: object
      properties:
        id:
          type: string
        name:
          type:
            - string
            - 'null'
        email:
          type: string
          format: email
        avatar:
          type:
            - string
            - 'null'
        seen_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - name
        - email
        - avatar
        - seen_at
      description: The assigned user for the conversation
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Bearer token authentication using your API key

````