> ## Documentation Index
> Fetch the complete documentation index at: https://docs.syvon.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Stream a raw workspace R2 object

> Workspace-relative key. Only allowlisted prefixes (projects/, workflows/, config/, assets/, meta/, wrapper/, …) are reachable; others 403. Pipe the body; do not buffer large objects.



## OpenAPI

````yaml /openapi.json get /v1/r2/{path}
openapi: 3.1.0
info:
  title: Syvon API
  version: 1.0.0
  description: >-
    Two client-facing surfaces: the Portal management plane (syvon.ai/api/*,
    portal JWT) and the Brain read plane (brain.syvon.ai/v1/*, workspace key
    sk_ws_…). Schemas are generated from the @syvon/sdk TypeScript types — the
    shipped .d.ts files are the authoritative contract.
servers:
  - url: https://syvon.ai
    description: Portal (management plane)
  - url: https://brain.syvon.ai
    description: Brain (read plane)
security: []
tags:
  - name: Auth
    description: Minting the portal JWT
  - name: Portal
    description: Management plane — user-scoped (portal JWT)
  - name: Brain
    description: Published-agent read plane — workspace-scoped (sk_ws_…)
paths:
  /v1/r2/{path}:
    get:
      tags:
        - Brain
      summary: Stream a raw workspace R2 object
      description: >-
        Workspace-relative key. Only allowlisted prefixes (projects/,
        workflows/, config/, assets/, meta/, wrapper/, …) are reachable; others
        403. Pipe the body; do not buffer large objects.
      operationId: streamR2File
      parameters:
        - name: path
          in: path
          required: true
          description: Workspace-relative R2 key, e.g. config/design-tokens.json
          schema:
            type: string
      responses:
        '200':
          description: The raw object bytes
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '403':
          description: Prefix not allowlisted
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
      security:
        - workspaceKeyAuth: []
      servers:
        - url: https://brain.syvon.ai
components:
  securitySchemes:
    workspaceKeyAuth:
      type: http
      scheme: bearer
      description: Workspace API key (sk_ws_…)

````