> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-openapi-sync-dataflows.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Query Files

> Performs a text-based search for content within files in a FileSet.



## OpenAPI

````yaml /openapi/product/filesets.yaml post /api/files/v1/filesets/{filesetId}/query
openapi: 3.0.0
info:
  title: FileSets API (BETA) (Product)
  version: v1
  description: >
    <Note>

    BETA: This API is currently in BETA and is subject to change. 

    Endpoints, request/response formats, and functionality may change without
    notice.

    <Note>

    API for managing FileSets and Files in Domo.
servers:
  - url: https://{instance}.domo.com
    description: Domo Instance
    variables:
      instance:
        default: api
        description: Your specific Domo instance name (e.g., mycompany)
security:
  - developerToken: []
tags:
  - name: File
    description: Operations for managing individual files within a FileSet.
  - name: FileSet
    description: Operations for managing FileSets (collections of files).
paths:
  /api/files/v1/filesets/{filesetId}/query:
    post:
      tags:
        - FileSets API (BETA) (Product)
      summary: Query Files
      description: Performs a text-based search for content within files in a FileSet.
      parameters:
        - name: filesetId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueryFilesRequest'
      responses:
        '200':
          description: A list of matching files with relevance scores.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryFilesResponse'
        '401':
          description: Unauthorized
        '404':
          description: FileSet Not Found
components:
  schemas:
    QueryFilesRequest:
      type: object
      required:
        - query
      properties:
        query:
          type: string
          description: Text to search for in Files.
        directoryPath:
          type: string
          nullable: true
          description: Limit search to a specific directory.
        topK:
          type: integer
          nullable: true
          description: Maximum number of results to return.
    QueryFilesResponse:
      type: object
      properties:
        matches:
          type: array
          items:
            $ref: '#/components/schemas/QueryMatch'
    QueryMatch:
      type: object
      properties:
        id:
          type: string
          format: uuid
        node:
          $ref: '#/components/schemas/QueryNode'
        score:
          type: number
          format: float
    QueryNode:
      type: object
      properties:
        id:
          type: string
          format: uuid
        path:
          type: string
        name:
          type: string
        fileType:
          type: string
        contentType:
          type: string
        size:
          type: integer
          format: int64
        created:
          type: integer
          format: int64
        type:
          type: string
  securitySchemes:
    developerToken:
      type: apiKey
      in: header
      name: X-DOMO-Developer-Token
      description: Domo Developer Token for authentication.

````