---
title: "GET /api/v1/{context_id}/documents/{id}/raw"
method: GET
path: "/api/v1/{context_id}/documents/{id}/raw"
---

# GET /api/v1/{context_id}/documents/{id}/raw

`GET /api/v1/{context_id}/documents/{id}/raw`

Streams the raw bytes of a document

## Path parameters

- `context_id` string, required
- `id` string, required

## Response `200`

Raw bytes

## Other responses

- `401` — Unauthorized
- `404` — Document not found
- `422` — Invalid context id
- `500` — Unexpected error

---

[API](https://skmtc.net/surrealdb/apis/spectron.md) · [All operations](https://skmtc.net/surrealdb/apis/spectron/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/surrealdb/spectron/versions/52b41ab517b6/schema)
