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

# List files

> Returns a list of files that belong to the user.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/files
openapi: 3.1.0
info:
  title: Neosantara AI API
  description: OpenAI-compatible LLM Gateway
  version: 1.0.0
servers:
  - url: https://api.neosantara.xyz
    description: Neosantara Production Gateway
security:
  - bearerAuth: []
paths:
  /v1/files:
    get:
      tags:
        - Files
      summary: List files
      description: Returns a list of files that belong to the user.
      operationId: getV1Files
      responses:
        '200':
          description: List of files
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    const: list
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        object:
                          type: string
                          const: file
                        bytes:
                          type: number
                        created_at:
                          type: number
                        filename:
                          type: string
                        purpose:
                          type: string
                        status:
                          type: string
                      required:
                        - id
                        - object
                        - bytes
                        - created_at
                        - filename
                        - purpose
                        - status
                  has_more:
                    type: boolean
                required:
                  - object
                  - data
                  - has_more
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.