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

# Download a storage resource

> Serve the raw object bytes as a file download.

A content server (raw bytes + a Content-Disposition attachment header, not the
``{"data": ...}`` envelope), so it stays a native handler rather than an
operation adapter.



## OpenAPI

````yaml /openapi.json get /api/storage/resources/{resource_id}/content
openapi: 3.1.0
info:
  description: The operator HTTP surface served under /api/*.
  title: tai42-skeleton API
  version: 0.1.1
servers: []
security: []
paths:
  /api/storage/resources/{resource_id}/content:
    get:
      tags:
        - storage
      summary: Download a storage resource
      description: >-
        Serve the raw object bytes as a file download.


        A content server (raw bytes + a Content-Disposition attachment header,
        not the

        ``{"data": ...}`` envelope), so it stays a native handler rather than an

        operation adapter.
      operationId: get_api_storage_resources_resource_id_content
      parameters:
        - in: path
          name: resource_id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/octet-stream:
              schema:
                type: string
          description: Asset bytes.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Malformed request.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Resource not found.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Internal server error.
        '501':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Error:
      properties:
        error:
          type: string
      required:
        - error
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````