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

# Get file details

> Returns full details for a single file, including the collections it has been added to via file instances.



## OpenAPI

````yaml https://staging.aigmented.io/api/v1/openapi.json get /api/v1/files/{id}
openapi: 3.1.0
info:
  title: Aigmented API
  version: 1.0.0
  description: >-
    REST API for Aigmented — manage knowledge collections, upload files, search
    knowledge cards, and ask questions with LLM-powered answers.
  contact:
    name: Aigmented Support
    url: https://aigmented.com
servers:
  - url: https://aigmented.io
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Collections
    description: Create and manage knowledge collections
  - name: Files
    description: Upload and manage source documents
  - name: Search
    description: Semantic search over knowledge cards in a collection
  - name: Ask
    description: LLM-powered question answering over a collection
paths:
  /api/v1/files/{id}:
    get:
      tags:
        - Files
      summary: Get file details
      description: >-
        Returns full details for a single file, including the collections it has
        been added to via file instances.
      operationId: getFile
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
          description: File ID
      responses:
        '200':
          description: File details
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: File
                  data:
                    allOf:
                      - $ref: '#/components/schemas/File'
                      - type: object
                        properties:
                          fileInstances:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: integer
                                name:
                                  type: string
                                status:
                                  type: string
                                collection:
                                  type: object
                                  properties:
                                    id:
                                      type: integer
                                    name:
                                      type: string
        '400':
          description: Invalid file ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: File not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    File:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        sourceName:
          type: string
        type:
          type: string
          description: MIME type
        status:
          type: string
          enum:
            - new
            - processing
            - verified
            - error
        uploaded_at:
          type: string
          format: date-time
        user:
          type: object
          properties:
            id:
              type: string
            email:
              type: string
            name:
              type: string
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
      required:
        - error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key (sk-...)
      description: >-
        Pass your API key as a Bearer token. Example: `Authorization: Bearer
        sk-xxxxxxxxxxxx`

````