> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.livingbrain.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.livingbrain.com/_mcp/server.

# Files and documents

Two routes cover most documents. Text you can save as Markdown goes through the import script. Other
files go in by link: you give the brain a URL and it downloads the file and extracts the text itself.

| You have                                                            | Route                                                   |
| ------------------------------------------------------------------- | ------------------------------------------------------- |
| A folder of Markdown files                                          | [The import script](#folders-of-markdown)               |
| PDF, Word (`.docx`), PowerPoint (`.pptx`), HTML or plain text files | [A file link](#files-by-link)                           |
| A web page                                                          | [A file link](#files-by-link) with `kind: "url"`        |
| An audio recording                                                  | [A file link](#files-by-link) with `kind: "transcript"` |

## Folders of Markdown

The [Obsidian import script](/docs/importing/obsidian) works on any folder of `.md` files. Use it for a
Notion export saved as Markdown, or notes you keep in a plain folder.

The script reads only files ending in `.md`. Rename `.txt` notes to `.md` first, or send them by link.

## Files by link

Put the file somewhere the brain can download it, such as a temporary signed link from your file
storage. Then capture it with a `kind` and a `fetchUrl`:

| `kind`       | What the brain does with the link                                       |
| ------------ | ----------------------------------------------------------------------- |
| `file`       | Extracts the text from a PDF, Word, PowerPoint, HTML or UTF-8 text file |
| `url`        | Reads the web page                                                      |
| `transcript` | Transcribes the audio                                                   |

Older PowerPoint files (`.ppt`) and other binary formats aren't supported. Save them as `.pptx` or PDF
first.

This request sends two files in one batch:

```bash
curl https://api.livingbrain.com/v1/brains/YOUR_BRAIN_ID/captures/batch \
  -H "x-api-key: YOUR_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "items": [
      {
        "kind": "file",
        "fetchUrl": "https://files.example.com/signed/q3-roadmap.pdf",
        "label": "Roadmap/Q3 roadmap.pdf",
        "originRef": "drive:q3-roadmap.pdf:v4"
      },
      {
        "kind": "file",
        "fetchUrl": "https://files.example.com/signed/pricing-review.pptx",
        "label": "Sales/Pricing review.pptx",
        "originRef": "drive:pricing-review.pptx:v2"
      }
    ]
  }'
```

* **`label`** shows on each page's list of sources. A file's path or title works well.
* **`originRef`** stops the brain from compiling the same file twice. Include a version or modified date
  in it, so a new version of the file is captured again.
* **The link must still work when the brain gets to it.** Captures compile in the background, so give a
  signed link enough time, and [check the sources](/docs/capturing#tracking-ingestion) for any that
  failed.

The same request works from the SDKs. See [Capturing knowledge](/docs/capturing#batches).