---
title: "Fetch stored file bytes"
method: GET
path: "/api/files/{space_id}/{file}"
tags: ["attachments"]
---

# Fetch stored file bytes

`GET /api/files/{space_id}/{file}`

## Request

- Base URL: `https://telawiki.com`
- URL: `https://telawiki.com/api/files/{space_id}/{file}`
- Auth: none required

**Public and unauthenticated** — knowing the content hash is the authorization, which is why hashes are not enumerable and error responses never distinguish "absent" from "not yours". Immutable and cacheable for a year; supports `If-None-Match`. Only common raster image types are served `inline`; everything else, SVG included, is `attachment`.

## Response `200`

The bytes.

## Other responses

- `304`: Not modified.
- `404`: `not_found`.
- `500`: `internal` — server error.

---

[API](https://skmtc.dev/telawiki/apis/tela-rest-api.md) · [All operations](https://skmtc.dev/telawiki/apis/tela-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/telawiki/apis/tela-rest-api/revisions/f316f31f6fcb?raw)
