---
title: "Read a session file"
method: GET
path: "/storage/agent-sessions/{session_id}/files/{key}"
tags: ["Agent Sessions"]
---

# Read a session file

`GET /storage/agent-sessions/{session_id}/files/{key}`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/storage/agent-sessions/{session_id}/files/{key}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/docs/storage/agent-sessions/:session_id/files/:key/get.ts> (a function with typed inputs; its response is checked against the schema)

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

## Path parameters

- `session_id` string, required
- `key` string, required

## Response `200`

Success

- object

## Other responses

- `400`: Request refused or invalid

## Changes

- **2026-11-12** `104591eadd10`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/changes/storage/agent-sessions/:session_id/files/:key/get.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/revisions/104591eadd10?raw)
