> ## 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.

# List Files

> Return files/folders in a OneDrive directory (root by default).



## OpenAPI

````yaml /api-reference/openapi.json get /api/onedrivebrowser/list
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/onedrivebrowser/list:
    get:
      tags:
        - onedrive-browser
      summary: List Files
      description: Return files/folders in a OneDrive directory (root by default).
      operationId: list_files_api_onedrivebrowser_list_get
      parameters:
        - name: folder_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Folder Id
        - name: folder_path
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Folder Path
        - name: file_type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: File Type
        - name: top
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 100
            title: Top
      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:
    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

- [List Files](/api-reference/files/list-files.md)
- [Upload File](/api-reference/files/upload-file.md)
- [Download File](/api-reference/files/download-file.md)
- [Index Files](/api-reference/rag/index-files.md)
