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

# List files

> Lists your files, newest first, optionally filtered by kind.



## OpenAPI

````yaml /hub/openapi/hub.json get /api/v1/hub/files
openapi: 3.0.1
info:
  title: Fanify Hub API
  description: Generate media and text with Fanify credits. All prices use EUR.
  version: v1
servers:
  - url: https://fanifyai.com
security: []
paths:
  /api/v1/hub/files:
    get:
      tags:
        - Files
      summary: List files
      description: Lists your files, newest first, optionally filtered by kind.
      parameters:
        - name: kind
          in: query
          description: >-
            Optional filter: upload, output, lora or dataset. Omit it to list
            every kind.
          schema:
            type: string
      responses:
        '200':
          description: >-
            Your files, newest first, optionally one kind (upload, output, lora,
            dataset).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HubFileListDto'
              example:
                files:
                  - sha256: >-
                      e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
                    kind: lora
                    family: sdxl
                    size: 194640349
                    created_at: '2026-09-17T14:22:05Z'
                    duration_seconds: null
        '400':
          description: Invalid input
          content:
            application/problem+json:
              schema:
                required:
                  - type
                  - title
                  - status
                  - code
                type: object
                properties:
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    format: int32
                  detail:
                    type: string
                    nullable: true
                  instance:
                    type: string
                  code:
                    enum:
                      - invalid_input
                    type: string
                  errors:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                  unrepresentable:
                    type: array
                    items:
                      type: string
                  missing:
                    type: array
                    items:
                      required:
                        - sha256
                      type: object
                      properties:
                        sha256:
                          type: string
                        kind:
                          type: string
                          nullable: true
              example:
                type: https://fanifyai.com/docs/hub/errors#invalid_input
                title: Invalid input
                status: 400
                code: invalid_input
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                required:
                  - type
                  - title
                  - status
                  - code
                type: object
                properties:
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    format: int32
                  detail:
                    type: string
                    nullable: true
                  instance:
                    type: string
                  code:
                    enum:
                      - unauthorized
                    type: string
                  errors:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                  unrepresentable:
                    type: array
                    items:
                      type: string
                  missing:
                    type: array
                    items:
                      required:
                        - sha256
                      type: object
                      properties:
                        sha256:
                          type: string
                        kind:
                          type: string
                          nullable: true
              example:
                type: https://fanifyai.com/docs/hub/errors#unauthorized
                title: Unauthorized
                status: 401
                code: unauthorized
        '429':
          description: Rate limit reached
          headers:
            Retry-After:
              description: Seconds before retrying.
              schema:
                type: string
          content:
            application/problem+json:
              schema:
                required:
                  - type
                  - title
                  - status
                  - code
                type: object
                properties:
                  type:
                    type: string
                    format: uri
                  title:
                    type: string
                  status:
                    type: integer
                    format: int32
                  detail:
                    type: string
                    nullable: true
                  instance:
                    type: string
                  code:
                    enum:
                      - rate_limited
                    type: string
                  errors:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                  unrepresentable:
                    type: array
                    items:
                      type: string
                  missing:
                    type: array
                    items:
                      required:
                        - sha256
                      type: object
                      properties:
                        sha256:
                          type: string
                        kind:
                          type: string
                          nullable: true
              example:
                type: https://fanifyai.com/docs/hub/errors#rate_limited
                title: Rate limit reached
                status: 429
                code: rate_limited
      security:
        - Bearer: []
components:
  schemas:
    HubFileListDto:
      required:
        - files
      type: object
      properties:
        files:
          type: array
          items:
            $ref: '#/components/schemas/HubFileListItemDto'
      additionalProperties: false
    HubFileListItemDto:
      required:
        - created_at
        - duration_seconds
        - kind
        - sha256
        - size
      type: object
      properties:
        sha256:
          type: string
        kind:
          type: string
        family:
          type: string
          nullable: true
        size:
          type: integer
          format: int64
        created_at:
          type: string
          format: date-time
        duration_seconds:
          type: number
          description: >-
            Duration in seconds measured by the Hub from the file headers (MP4,
            MOV, WebM with a duration, WAV, MP3), 3 decimals. null for an image
            or a container whose duration cannot be read; omitted instead of
            null on a generation output.
          format: double
          nullable: true
      additionalProperties: false
  securitySchemes:
    Bearer:
      type: http
      description: Fanify API key.
      scheme: bearer
      bearerFormat: fanify_sk_...

````

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