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

# List a session's captured files

> Returns the files this session captured off its phone, newest first — the direct answer to "what did this session capture". Every row is source=capture. Rows appear at detection, before the bytes finish moving, so a caller waiting on a file watches its capture state progress rather than an empty list.



## OpenAPI

````yaml /api-reference/openapi-backend.json get /phones/sessions/{session_id}/files
openapi: 3.1.0
info:
  description: Axilio backend HTTP API.
  title: Axilio API
  version: 0.85.0
servers:
  - url: https://api.axilio.ai/api/v1
    description: Production
security: []
tags:
  - name: API Keys
  - name: Billing
  - name: Files
  - name: Organization
  - name: Phones
  - name: Runs
  - name: Skill
  - name: Usage
  - name: Workflows
paths:
  /phones/sessions/{session_id}/files:
    get:
      tags:
        - Files
      summary: List a session's captured files
      description: >-
        Returns the files this session captured off its phone, newest first —
        the direct answer to "what did this session capture". Every row is
        source=capture. Rows appear at detection, before the bytes finish
        moving, so a caller waiting on a file watches its capture state progress
        rather than an empty list.
      operationId: phones_session_files
      parameters:
        - description: session whose captures to list
          in: path
          name: session_id
          required: true
          schema:
            description: session whose captures to list
            format: uuid
            type: string
        - description: max items per page
          explode: false
          in: query
          name: limit
          schema:
            default: 50
            description: max items per page
            format: int64
            maximum: 100
            minimum: 1
            type: integer
        - description: pagination offset
          explode: false
          in: query
          name: offset
          schema:
            default: 0
            description: pagination offset
            format: int64
            minimum: 0
            type: integer
        - description: filter by filename, case-insensitive substring match
          explode: false
          in: query
          name: q
          schema:
            description: filter by filename, case-insensitive substring match
            type: string
        - description: only files of exactly this media type
          explode: false
          in: query
          name: mime_type
          schema:
            description: only files of exactly this media type
            type: string
        - description: only files at least this many bytes (0 = no bound)
          explode: false
          in: query
          name: min_size_bytes
          schema:
            default: 0
            description: only files at least this many bytes (0 = no bound)
            format: int64
            minimum: 0
            type: integer
        - description: only files at most this many bytes (0 = no bound)
          explode: false
          in: query
          name: max_size_bytes
          schema:
            default: 0
            description: only files at most this many bytes (0 = no bound)
            format: int64
            minimum: 0
            type: integer
        - description: only files registered at or after this time (RFC 3339)
          explode: false
          in: query
          name: created_after
          schema:
            description: only files registered at or after this time (RFC 3339)
            format: date-time
            type: string
        - description: only files registered at or before this time (RFC 3339)
          explode: false
          in: query
          name: created_before
          schema:
            description: only files registered at or before this time (RFC 3339)
            format: date-time
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileListResponse'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/V2ErrorModel'
          description: Error
      security:
        - apiKeyAuth: []
components:
  schemas:
    FileListResponse:
      additionalProperties: false
      description: One page of the org's file library.
      properties:
        files:
          description: Library entries, newest first.
          items:
            $ref: '#/components/schemas/FileSummary'
          type:
            - array
            - 'null'
        total:
          description: Total files matching the query.
          format: int64
          type: integer
        usage:
          $ref: '#/components/schemas/FileUsage'
          description: The org's standing library usage against its quota.
      required:
        - files
        - total
        - usage
      type: object
    V2ErrorModel:
      additionalProperties: false
      description: >-
        Error response, following RFC 9457 (Problem Details for HTTP APIs).
        Returned with a application/problem+json content type.
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/V2ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    FileSummary:
      additionalProperties: false
      description: One file in the org's library.
      properties:
        attachment_url:
          description: >-
            Short-lived signed URL that downloads the file as an attachment
            under its name. Present only for ready files.
          type: string
        bytes_transferred:
          description: >-
            Bytes moved so far for an in-flight phone transfer. Absent until the
            phone reports progress.
          format: int64
          type: integer
        capture_error:
          description: Reason the capture failed, when it did. Present only for captures.
          type: string
        capture_state:
          description: >-
            Capture lifecycle: detected/uploading while in flight, ready when
            usable, or a terminal skip/failure with its reason. Present only for
            captures.
          enum:
            - detected
            - uploading
            - ready
            - skipped_size
            - skipped_quota
            - skipped_type
            - dropped_teardown
            - failed
          type: string
        checksum:
          description: >-
            SHA-256 of the bytes, computed on the phone during a capture upload.
            Present only for captures.
          type: string
        created_at:
          description: >-
            When the file was registered: upload registration, or capture
            detection.
          format: date-time
          type: string
        download_url:
          description: >-
            Short-lived signed URL to read the file's bytes. Present only for
            ready files; re-list to refresh an expired one.
          type: string
        duration_seconds:
          description: Video duration in seconds.
          format: int64
          type: integer
        filename:
          description: >-
            Original filename; used as the display name when the file lands on a
            phone.
          type: string
        height:
          description: Intrinsic pixel height of the source.
          format: int64
          type: integer
        id:
          description: >-
            File identifier. Unique across the whole library; deliverable to a
            phone regardless of source.
          type: string
        mime_type:
          description: Declared MIME type, pinned by the presigned upload.
          type: string
        on_phone_count:
          description: >-
            Distinct phones currently holding or receiving a copy. Deleting the
            file recalls these.
          format: int64
          type: integer
        preview_state:
          description: >-
            Whether the preview exists, is still being generated, or will never
            be available for this format.
          enum:
            - processing
            - ready
            - unavailable
          type: string
        reel_url:
          description: >-
            Short-lived signed URL for the animated hover preview. Videos only;
            absent until generated.
          type: string
        session_id:
          description: Session that produced the file. Present only for captures.
          type: string
        size_bytes:
          description: Declared size in bytes, pinned by the presigned upload.
          format: int64
          type: integer
        source:
          description: >-
            How the file entered the library: upload (put in directly) or
            capture (lifted off a session).
          enum:
            - upload
            - capture
          type: string
        status:
          description: >-
            uploading until the object is verified in storage, then ready. For a
            capture, read capture_state for the fuller lifecycle.
          enum:
            - uploading
            - ready
          type: string
        surface:
          description: >-
            Which surface a capture came off (phone today). Absent for a direct
            upload.
          enum:
            - phone
          type: string
        thumbnail_url:
          description: >-
            Short-lived signed URL for the generated preview image. Absent while
            generation is pending, and permanently absent for formats without a
            preview.
          type: string
        width:
          description: Intrinsic pixel width of the source.
          format: int64
          type: integer
      required:
        - id
        - source
        - filename
        - mime_type
        - size_bytes
        - status
        - created_at
        - on_phone_count
        - preview_state
      type: object
    FileUsage:
      additionalProperties: false
      description: The org's standing library usage against its quota.
      properties:
        byte_limit:
          description: Storage quota in bytes.
          format: int64
          type: integer
        file_count:
          description: Files currently in the library.
          format: int64
          type: integer
        file_limit:
          description: Maximum files the library will hold.
          format: int64
          type: integer
        total_bytes:
          description: Total bytes currently stored.
          format: int64
          type: integer
      required:
        - file_count
        - file_limit
        - total_bytes
        - byte_limit
      type: object
    V2ErrorDetail:
      additionalProperties: false
      description: >-
        One specific problem within an error response, locating the offending
        part of the request.
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    apiKeyAuth:
      description: Customer API key (axl_ prefix).
      in: header
      name: X-Axilio-Api-Key
      type: apiKey

````

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