---
title: "Read a file's raw contents. Use this for direct data download."
method: GET
path: "/file/read"
---

# Read a file's raw contents. Use this for direct data download.

`GET /file/read`

id option:
  - Specifies the item's system ID to read.

type option:
  - Specifies content disposition or not.
  - 0: No content disposition. Returns raw binary file.
  - 1: Content disposition. May fix line endings to CR LF for text files.

bucket option:
  - Bucket is required.

name option:
  - Specify the name to save the file as (e.g document.pdf).

## Query parameters

- `id` string, required
- `type` 0 | 1 | 2 | 3 | 4, required
- `name` string
- `size` integer
- `storageid` string, required
- `systemid` string, required

## Response `200`

OK

## Other responses

- `404` — item was not found
- `503` — no storage server was available

---

[API](https://skmtc.net/intelligencex/apis/intelx-io-search-api.md) · [All operations](https://skmtc.net/intelligencex/apis/intelx-io-search-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/intelligencex/intelx-io-search-api/versions/09fb9b26ddff/schema)
