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

# Notify edge image upload

> Records metadata for an image uploaded by an edge device, updates or creates the working batch, and persists inline annotations when provided.



## OpenAPI

````yaml /api-spec.json post /data/agent/images/notify
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:
  /data/agent/images/notify:
    post:
      tags:
        - Datasets & data
      summary: Notify edge image upload
      description: >-
        Records metadata for an image uploaded by an edge device, updates or
        creates the working batch, and persists inline annotations when
        provided.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/handlers.ImageNotificationRequest'
        description: Image notification payload
        required: true
      responses:
        '201':
          description: Upload acknowledged with image and batch identifiers
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
        '400':
          description: Invalid request payload
          content:
            application/json:
              schema:
                additionalProperties:
                  type: string
                type: object
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                additionalProperties:
                  type: string
                type: object
        '503':
          description: Failed to reserve batch slot
          content:
            application/json:
              schema:
                additionalProperties:
                  type: string
                type: object
      security:
        - DeviceKeyAuth: []
components:
  schemas:
    handlers.ImageNotificationRequest:
      properties:
        annotations:
          items:
            $ref: '#/components/schemas/models.AnnotationData'
          type: array
        device_id:
          type: string
        filename:
          type: string
        height:
          type: integer
        model_id:
          description: Model that generated annotations
          type: string
        model_name:
          description: Model name
          type: string
        model_version:
          description: Model version
          type: string
        storage_key:
          type: string
        width:
          type: integer
      required:
        - device_id
        - filename
        - height
        - storage_key
        - width
      type: object
    models.AnnotationData:
      properties:
        class_value:
          type: string
        confidence:
          description: Optional confidence score (0.0-1.0)
          type: number
        height:
          description: Relative to image height (0.0-1.0)
          type: number
        width:
          description: Relative to image width (0.0-1.0)
          type: number
        x_center:
          description: Relative to image width (0.0-1.0)
          type: number
        y_center:
          description: Relative to image height (0.0-1.0)
          type: number
      type: object
  securitySchemes:
    DeviceKeyAuth:
      description: 'Device API key for edge agent authentication. Format: adk_<hex>'
      in: header
      name: X-Device-Key
      type: apiKey

````