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

# List Files

> List the files you have uploaded, newest first.

Scoped to the authenticated caller — you only ever see your own files. Each entry
carries the same fields as `GET /v1/files/{file_id}`, including the embedding
status, so you can poll this instead of one file at a time.

Paginate with `limit` (1–200, default 50) and `offset`; `total` is the unpaginated
count.



## OpenAPI

````yaml /api/openapi.json get /v1/files
openapi: 3.1.0
info:
  title: MeshAPI
  description: One key, all AI models.
  version: 0.1.0
servers:
  - url: https://api.meshapi.ai
security:
  - BearerAuth: []
paths:
  /v1/files:
    get:
      tags:
        - RAG
      summary: List Files
      description: >-
        List the files you have uploaded, newest first.


        Scoped to the authenticated caller — you only ever see your own files.
        Each entry

        carries the same fields as `GET /v1/files/{file_id}`, including the
        embedding

        status, so you can poll this instead of one file at a time.


        Paginate with `limit` (1–200, default 50) and `offset`; `total` is the
        unpaginated

        count.
      operationId: list_files
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
        - in: header
          name: X-Mesh-Version
          required: false
          schema:
            type: string
            enum:
              - 2026-08
            default: 2026-08
          example: 2026-08
          description: >-
            Dated version of the API contract to pin this request to. Omit it
            and the request is served under `2026-08` — the oldest supported
            version, so an existing integration is never moved by a release. A
            malformed or unsupported value is rejected with `400
            invalid_api_version` rather than falling back silently. The version
            actually served is echoed as `X-Mesh-Version` on every response,
            including errors.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileListResponse'
              examples:
                default:
                  summary: Example response
                  value:
                    files:
                      - file_id: file_01JZ0S3N6M8ZQ8DGK9VY1R2H3T
                        upload_status: uploaded
                        file_name: project_proposal.pdf
                        file_type: pdf
                        mime_type: application/pdf
                        status: ready
                        size_bytes: 245760
                        asset_url: >-
                          gs://meshapi-uploads/file_01JZ0S3N6M8ZQ8DGK9VY1R2H3T/project_proposal.pdf
                        signed_url: null
                        signed_url_expires_at: null
                        embedding_status: completed
                        created_at: '2026-07-02T10:15:30Z'
                        updated_at: '2026-07-02T10:16:05Z'
                        total_tokens: 640
                        total_cost_usd: 0.00008
                        last_error_code: null
                    total: 1
                    limit: 20
                    offset: 0
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    FileListResponse:
      properties:
        files:
          items:
            $ref: '#/components/schemas/FileStatusResponse'
          type: array
          title: Files
        total:
          type: integer
          title: Total
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
        - files
        - total
        - limit
        - offset
      title: FileListResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FileStatusResponse:
      properties:
        file_id:
          type: string
          title: File Id
        upload_status:
          type: string
          title: Upload Status
        file_name:
          type: string
          title: File Name
        file_type:
          type: string
          title: File Type
        mime_type:
          type: string
          title: Mime Type
        size_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Size Bytes
        asset_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Asset Url
        signed_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Signed Url
        signed_url_expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Signed Url Expires At
        embedding_status:
          type: string
          title: Embedding Status
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        total_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Tokens
        total_cost_usd:
          anyOf:
            - type: number
            - type: 'null'
          title: Total Cost Usd
        last_error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Error Code
      type: object
      required:
        - file_id
        - upload_status
        - file_name
        - file_type
        - mime_type
        - size_bytes
        - asset_url
        - signed_url
        - signed_url_expires_at
        - embedding_status
        - created_at
        - updated_at
      title: FileStatusResponse
    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:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Enter your MeshAPI key (`rsk_...`) — sent as `Authorization: Bearer
        <key>`.

````