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

# Attach Files

> Attach one or more files to a case. This creates a link between existing files and a specific case, enabling contextual review, redaction, or reporting. Requires authentication and org scope.



## OpenAPI

````yaml POST /files/attach
openapi: 3.0.1
info:
  title: Indora Labs API
  description: >-
    Comprehensive API for search, ingestion, file ops, redaction, detections,
    audit trail, and case management. All endpoints return strongly-typed JSON
    with explicit field descriptions and examples.
  version: 1.0.0
  license:
    name: Proprietary
servers:
  - url: https://api.indoralabs.com
security:
  - apiKeyAuth: []
tags:
  - name: Search
  - name: Uploads
  - name: Files
  - name: Redactions
  - name: Detections
  - name: Cases
  - name: Audit
  - name: Auth
  - name: Embeddings
  - name: Policy
paths:
  /files/attach:
    post:
      tags:
        - Files
      summary: POST /files/attach
      description: >-
        Attach one or more files to a case. This creates a link between existing
        files and a specific case, enabling contextual review, redaction, or
        reporting. Requires authentication and org scope.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                caseId:
                  type: string
                  format: uuid
                  description: The case ID to attach files to.
                fileIds:
                  type: array
                  items:
                    type: string
                    format: uuid
                  description: List of file IDs to attach.
              required:
                - caseId
                - fileIds
      responses:
        '200':
          description: Files successfully attached to case.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
        '400':
          description: Invalid payload or missing fields.
        '401':
          description: Unauthorized (missing or invalid token).
        '404':
          description: One or more file IDs not found.
        '500':
          description: Internal server error.
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````