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

# Download a file

> Download a file by its object ID with optional raw format and custom filename



## OpenAPI

````yaml /nemesis-docs/docs/nemesis-api.json get /files/{object_id}
openapi: 3.1.0
info:
  title: Enrichment API
  description: API for file enrichment services
  version: 0.1.0
servers:
  - url: /api
security: []
tags:
  - name: files
    description: File management operations
  - name: workflows
    description: Workflow management operations
  - name: enrichments
    description: Enrichment management operations
  - name: system
    description: System and health check endpoints
paths:
  /files/{object_id}:
    get:
      tags:
        - files
      summary: Download a file
      description: >-
        Download a file by its object ID with optional raw format and custom
        filename
      operationId: download_file_files__object_id__get
      parameters:
        - name: object_id
          in: path
          required: true
          schema:
            type: string
            description: Unique identifier of the file to download
            title: Object Id
          description: Unique identifier of the file to download
        - name: raw
          in: query
          required: false
          schema:
            type: boolean
            description: Whether to return the file in raw format
            default: false
            title: Raw
          description: Whether to return the file in raw format
        - name: name
          in: query
          required: false
          schema:
            type: string
            description: Custom filename for the downloaded file
            default: ''
            title: Name
          description: Custom filename for the downloaded file
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Error message details
      type: object
      required:
        - detail
      title: ErrorResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````