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

# Index S3

> Download files from S3 and index them into a RAG knowledge base.



## OpenAPI

````yaml /api-reference/openapi.json post /api/rag/index-s3
openapi: 3.1.0
info:
  title: apowerb API
  description: REST API of the apowerb agentic framework (open-source edition).
  version: 0.1.2
  license:
    name: MIT
    url: https://github.com/apowerb/apowerb/blob/main/LICENSE
servers:
  - url: https://api.example.com
    description: Your apowerb instance
  - url: http://localhost:8000
    description: Local stack
security: []
paths:
  /api/rag/index-s3:
    post:
      tags:
        - rag
      summary: Index S3
      description: Download files from S3 and index them into a RAG knowledge base.
      operationId: index_s3_api_rag_index_s3_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IndexS3Request'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    IndexS3Request:
      properties:
        agent_id:
          type: string
          title: Agent Id
        tool_config_id:
          type: string
          title: Tool Config Id
        s3_urls:
          items:
            type: string
          type: array
          title: S3 Urls
        name:
          type: string
          title: Name
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Id
      type: object
      required:
        - agent_id
        - tool_config_id
        - s3_urls
        - name
      title: IndexS3Request
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

## Related topics

- [RAG](/guides/rag.md)
- [Index Db](/api-reference/rag/index-db.md)
- [Index Files](/api-reference/rag/index-files.md)
- [Index Url](/api-reference/rag/index-url.md)
- [Introduction](/index.md)
