---
title: "Export the knowledge base as a markdown bundle"
method: GET
path: "/v1/default/banks/{bank_id}/knowledge-base/export"
tags: ["Knowledge Base"]
---

# Export the knowledge base as a markdown bundle

`GET /v1/default/banks/{bank_id}/knowledge-base/export`

## Request

- Base URL: `https://hindsight.vectorize.io` (the document declares no server; this is the origin it was published from)
- URL: `https://hindsight.vectorize.io/v1/default/banks/{bank_id}/knowledge-base/export`
- Auth: none declared
- TypeScript: <https://skmtc.dev/vectorize/apis/hindsight-http-api/docs/v1/default/banks/:bank_id/knowledge-base/export/get.ts> (a function with typed inputs; its response is checked against the schema)

Return a portable markdown bundle: a nested index.md, one <id>.md per page, and history logs.

## Path parameters

- `bank_id` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- KnowledgePageBundleResponse: A portable markdown bundle — a flat set of markdown files (index + pages + logs).
  - `files` KnowledgePageBundleFile[], required
    - `path` string, required
    - `content` string, required

## Other responses

- `404`: The bank does not exist.
- `422`: Validation Error

## Changes

- **2026-10-04** `4fda98b75f63`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vectorize/apis/hindsight-http-api/changes/v1/default/banks/:bank_id/knowledge-base/export/get.md)

---

[API](https://skmtc.dev/vectorize/apis/hindsight-http-api.md) - [All operations](https://skmtc.dev/vectorize/apis/hindsight-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vectorize/apis/hindsight-http-api/revisions/45e711cd0897?raw)
