---
title: "Stream record content"
method: GET
path: "/knowledgeBase/stream/record/{recordId}"
tags: ["Knowledge Base"]
---

# Stream record content

`GET /knowledgeBase/stream/record/{recordId}`

Stream the binary content of a record's file.

**Overview:**

Returns the raw file content with appropriate `Content-Type` and `Content-Disposition` headers for download or inline viewing.

**Use cases:**

- File downloads
- Inline document preview
- Content extraction pipelines

**Format conversion:**

Use the `convertTo` parameter to convert between formats (e.g. DOCX to PDF).

## Path parameters

- `recordId` string, required

## Query parameters

- `convertTo` string

## Response `200`

File content stream

## Other responses

- `400` — Invalid record ID or query parameters
- `401` — Missing, invalid, expired, or revoked authentication
- `403` — Forbidden. Returned either when the OAuth token is missing the required `kb:read` scope or when the authenticated user does not have access to the record.
- `404` — Record, organization, or backing connector not found
- `409` — Conflict - the connector instance for this record is disabled. Enable it from Connector Settings and try again.
- `500` — Internal streaming failure, downstream conversion failure, or connector/backend error proxied by the gateway.

## Changes

- **2026-06-30** `1ed39bc659c9` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/pipeshub-ai/apis/pipeshub-api/changes/knowledgeBase/stream/record/:recordId/get.md)

---

[API](https://skmtc.dev/pipeshub-ai/apis/pipeshub-api.md) · [All operations](https://skmtc.dev/pipeshub-ai/apis/pipeshub-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pipeshub-ai/pipeshub-api/revisions/64bfe76b130e/schema)
