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

# Upload image from edge device

> Receives an image file and optional metadata from a cloud-mode edge device,



## OpenAPI

````yaml /api-spec.json post /device/images/upload
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/images/upload:
    post:
      tags:
        - Devices & provisioning
      summary: Upload image from edge device
      description: >-
        Receives an image file and optional metadata from a cloud-mode edge
        device,
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                image:
                  description: Image file (JPEG or PNG)
                  type: string
                  format: binary
                metadata:
                  description: JSON metadata with annotations and model info
                  type: string
              required:
                - image
        required: true
      responses:
        '201':
          description: Image uploaded and registered
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
        '500':
          description: Server error
          content:
            application/json:
              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

````