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

# Get a document by ID

> Get a document by its ID



## OpenAPI

````yaml https://api.arcsolutionsteam.workers.dev/openapi get /api/v1/documents/{id}
openapi: 3.1.0
info:
  title: IntelliQ API
  description: API for IntelliQ
  version: 2.0.0
servers:
  - url: http://localhost:8787
    description: Local server
  - url: https://app.intelliq.dev
    description: Production server
security: []
paths:
  /api/v1/documents/{id}:
    get:
      tags:
        - Documents
      summary: Get a document by ID
      description: Get a document by its ID
      operationId: getApiV1DocumentsById
      parameters:
        - in: path
          name: id
          schema:
            type: number
          required: true
      responses:
        '200':
          description: Document retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: number
                  userId:
                    type: string
                    format: uuid
                  fileUrl:
                    type: string
                  content:
                    type: string
                  metadata:
                    type: object
                    properties:
                      originalName:
                        type: string
                      contentType:
                        type: string
                      extension:
                        type: string
                      uploadTimestamp:
                        type: string
                      size:
                        type: number
                      sizeInKb:
                        type: number
                      lastModified:
                        type: string
                      storagePath:
                        type: string
                      mimeType:
                        type: string
                      uploadedBy:
                        type: string
                      processingStatus:
                        type: string
                      signedUrlExpiry:
                        type: string
                    required:
                      - originalName
                      - contentType
                      - extension
                      - uploadTimestamp
                      - size
                      - sizeInKb
                      - lastModified
                      - storagePath
                      - mimeType
                      - uploadedBy
                      - processingStatus
                      - signedUrlExpiry
                  createdAt:
                    type: string
                  fileName:
                    type: string
                  fileType:
                    type: string
                  fileSize:
                    type: number
                  pageCount:
                    type: number
                  processingStatus:
                    type: string
                  lastAccessed:
                    type: string
                  quizCount:
                    type: number
                  embedding:
                    type:
                      - array
                      - 'null'
                    items:
                      type: number
                  documentId:
                    type: string
                    format: uuid
                required:
                  - id
                  - userId
                  - fileUrl
                  - content
                  - metadata
                  - createdAt
                  - fileName
                  - fileType
                  - fileSize
                  - pageCount
                  - processingStatus
                  - lastAccessed
                  - quizCount
                  - embedding
                  - documentId

````