---
title: "Read Document"
method: GET
path: "/api/storage/read-document"
tags: ["storage"]
---

# Read Document

`GET /api/storage/read-document`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/storage/read-document`
- Auth: HTTP bearer

Read a text document's content from storage.

## Query parameters

- `agent_id` string, uuid, nullable
- `filename` string, nullable
- `file_id` string, uuid, nullable

## Response `200`

Successful Response

- ReadDocumentResponse
  - `file_id` string, uuid, required
  - `filename` string, required
  - `content` string, nullable
  - `content_type` string, required
  - `size_bytes` integer, required
  - `too_large` boolean
  - `download_url` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
