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

# Read a session file

> Returns the live object, base64 encoded in body.data, with its content type. The reply carries the object's current digest in a header.



## OpenAPI

````yaml /api-reference/endpoint/storage/openapi.json get /storage/agent-sessions/{session_id}/files/{key}
openapi: 3.1.0
info:
  title: quiva.ai Gateway
  description: >-
    A comprehensive interface for managing key-value stores, object stores,
    streams
  contact:
    name: quiva.ai Support
    url: https://quiva.ai/help-center/
  version: 1.0.0
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
paths:
  /storage/agent-sessions/{session_id}/files/{key}:
    get:
      tags:
        - Agent Sessions
      summary: Read a session file
      description: >-
        Returns the live object, base64 encoded in body.data, with its content
        type. The reply carries the object's current digest in a header.
      operationId: getAgentSessionFile
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
        - name: key
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Request refused or invalid
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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