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

# Get Rag Docs

> Retrieves the list of documents and data chunks currently indexed under the specified RAG system ID.



## OpenAPI

````yaml get /rag/documents/{rag_id}/
openapi: 3.0.3
info:
  title: Lyzr RAG Documents
  version: 1.0.0
  description: API endpoint to retrieve documents associated with a specific RAG system ID.
servers:
  - url: https://rag-prod.studio.lyzr.ai/v3
security: []
paths:
  /rag/documents/{rag_id}/:
    get:
      summary: Get Rag Docs
      description: >-
        Retrieves the list of documents and data chunks currently indexed under
        the specified RAG system ID.
      operationId: getRagDocuments
      parameters:
        - name: rag_id
          in: path
          required: true
          description: >-
            The unique identifier (ID) of the RAG system to retrieve documents
            for (e.g., a 24-character hex string).
          schema:
            type: string
            example: 654c602a46c3b6d4e28741b0
      responses:
        '200':
          description: Documents successfully retrieved.
          content:
            application/json:
              schema:
                type: string
                description: >-
                  Placeholder for the returned document structure (typically a
                  list of document objects).
        '422':
          description: Validation Error (e.g., incorrect RAG ID format).
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: array
                    items:
                      type: object
                      properties:
                        loc:
                          type: array
                          items:
                            oneOf:
                              - type: string
                              - type: integer
                        msg:
                          type: string
                        type:
                          type: string
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````