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

> Get the 5 most recent documents from the database



## OpenAPI

````yaml https://api.arcsolutionsteam.workers.dev/openapi get /api/v1/documents/recent
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/recent:
    get:
      tags:
        - Documents
      summary: Get recent documents
      description: Get the 5 most recent documents from the database
      operationId: getApiV1DocumentsRecent
      parameters:
        - in: query
          name: limit
          schema:
            type: number
            default: 5
      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
                required:
                  - data

````