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

# Discover device configuration

> Auto-discovers watchman-server and MediaMTX configuration via Portainer container inspection



## OpenAPI

````yaml /api-spec.json get /core/devices/{device_id}/config/discover
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}/config/discover:
    get:
      tags:
        - Devices & provisioning
      summary: Discover device configuration
      description: >-
        Auto-discovers watchman-server and MediaMTX configuration via Portainer
        container inspection
      parameters:
        - description: Device ID
          in: path
          name: device_id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Configuration discovered successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handlers.DeviceConfigResponse'
        '400':
          description: Device not linked to Portainer endpoint
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
        '404':
          description: Device not found
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
        '500':
          description: Failed to discover configuration
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
      security:
        - BearerAuth: []
components:
  schemas:
    handlers.DeviceConfigResponse:
      properties:
        compose_file_path:
          type: string
        config_last_sync:
          type: string
        hls_port:
          type: integer
        stream_path:
          type: string
        watchman_port:
          type: integer
        webrtc_port:
          type: integer
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT access token. Paste the token only; the Bearer prefix is added
        automatically.

````