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

# WebSocket proxy to pipeline-data stream ingest

> Upgrades GET /api/device/stream to a WebSocket and proxies bidirectionally



## OpenAPI

````yaml /api-spec.json get /device/stream
openapi: 3.0.0
info:
  contact:
    name: Acusight API Support
  description: >-
    Acusight platform API - custom endpoints + Portainer proxy routes for edge
    AI deployments
  title: Acusight API
  version: 1.0.0
servers:
  - url: https://acusight.io/api
    description: AcuSight Cloud (hosted)
security: []
tags:
  - name: Devices & provisioning
    description: Register, provision, and manage edge devices and their agents.
  - name: Virtual devices
    description: Create and drive simulated devices for testing and demos.
  - name: Alerts & telemetry
    description: Model alerts, alert rules, and product telemetry.
  - name: Organization
    description: Organization-level settings.
  - name: Datasets & data
    description: Projects, batches, datasets, images, annotations, and drift.
  - name: Models & training
    description: Model registry, training jobs, exports, and inference.
  - name: Pipeline data
    description: Detection time-series and aggregated pipeline analytics.
paths:
  /device/stream:
    get:
      tags:
        - Devices & provisioning
      summary: WebSocket proxy to pipeline-data stream ingest
      description: >-
        Upgrades GET /api/device/stream to a WebSocket and proxies
        bidirectionally
      responses:
        '101':
          description: Switching Protocols
          content:
            '*/*':
              schema:
                type: string
        '401':
          description: Unauthorized
          content:
            '*/*':
              schema:
                additionalProperties: true
                type: object
        '500':
          description: Failed to upgrade or connect
          content:
            '*/*':
              schema:
                additionalProperties: true
                type: object
      security:
        - DeviceKeyAuth: []
components:
  securitySchemes:
    DeviceKeyAuth:
      description: 'Device API key for edge agent authentication. Format: adk_<hex>'
      in: header
      name: X-Device-Key
      type: apiKey

````