Integration pattern

Preview and download artifacts through your app.

Generated artifacts are product data. Your server should authorize every preview and download before relaying bytes.

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.