> ## 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.

# Forward browser WHEP offer to device

> Forwards the SDP offer to the device via its signalling WebSocket, returns the agent's SDP answer on success.



## OpenAPI

````yaml /api-spec.json post /core/devices/{device_id}/whep/{stream_path}
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:
  /core/devices/{device_id}/whep/{stream_path}:
    post:
      tags:
        - Devices & provisioning
      summary: Forward browser WHEP offer to device
      description: >-
        Forwards the SDP offer to the device via its signalling WebSocket,
        returns the agent's SDP answer on success.
      parameters:
        - description: Device ID
          in: path
          name: device_id
          required: true
          schema:
            type: string
        - description: MediaMTX stream path
          in: path
          name: stream_path
          required: true
          schema:
            type: string
      responses:
        '201':
          description: SDP answer
          content:
            application/sdp:
              schema:
                type: string
        '502':
          description: device_offline | write_failed | connection_closed | <agent-code>
          content:
            application/sdp:
              schema:
                additionalProperties:
                  type: string
                type: object
        '504':
          description: answer_timeout
          content:
            application/sdp:
              schema:
                additionalProperties:
                  type: string
                type: object
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT access token. Paste the token only; the Bearer prefix is added
        automatically.

````