> ## 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 all documents

> Get all documents from the database



## OpenAPI

````yaml https://api.arcsolutionsteam.workers.dev/openapi get /api/v1/documents
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:
    get:
      tags:
        - Documents
      summary: Get all documents
      description: Get all documents from the database
      operationId: getApiV1Documents
      parameters:
        - in: query
          name: page
          schema:
            type: number
            default: 1
        - in: query
          name: limit
          schema:
            type: number
            default: 10
      responses:
        '200':
          description: Documents fetched successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: number
                        title:
                          type: string
                        type:
                          type: string
                        uploadDate:
                          type: string
                        size:
                          type: string
                        quizCount:
                          type: number
                        processingStatus:
                          type: string
                          enum:
                            - pending
                            - extracting_text
                            - chunking
                            - embedding
                            - completed
                            - failed
                      required:
                        - id
                        - title
                        - type
                        - uploadDate
                        - size
                        - quizCount
                        - processingStatus
                  pagination:
                    type: object
                    properties:
                      page:
                        type: number
                      limit:
                        type: number
                      totalItems:
                        type: number
                      totalPages:
                        type: number
                      hasNextPage:
                        type: boolean
                      hasPreviousPage:
                        type: boolean
                    required:
                      - page
                      - limit
                      - totalItems
                      - totalPages
                      - hasNextPage
                      - hasPreviousPage
                required:
                  - data
                  - pagination

````