## Download

- Load the product ownership record for the requested session and file.
- Fetch HarnessRouter `/content` server-side with the Bearer key.
- Set a safe `Content-Disposition` filename based on sanitized file path.
- Use `/files/archive` for Download all.

## Preview

- Render Markdown, PDF, images, code, data tables, and Office previews with type-specific components.
- Use the `/pdf` preview for supported Office files.
- Render generated HTML in an isolated sandboxed iframe or equivalent containment.

**Open standard**

Relaying /content bytes and the /pdf preview through authenticated product routes builds on the container-scoped artifact download endpoints that UHP's Files chapter specifies. See [artifact download in UHP's Files chapter](https://unifiedharnessprotocol.org/spec/files).

[Create API Key →](https://app.harnessrouter.ai/quickstart?ref=docs-create-api-key)

Ready to run this against a live workspace? Keys take under a minute.
