Eaton Devices API

Smart breakers and EV chargers (emcb, ev-emcb).

OpenAPI Specification

eaton-devices-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Eaton Smart Breaker Authorization Devices API
  description: 'REST API (formerly the Energy Management / EM API) for Eaton AbleEdge Smart Breakers and Eaton Green Motion EV Smart Breaker Chargers. Lets developers commission, monitor, and control devices, model panels and locations, run batch commands, and pull real-time and historical energy telemetry. Devices are typed via `hardwareType` — `emcb` for standard smart breakers, `ev-emcb` for EV chargers.


    Authentication: every request must include `Em-Api-Subscription-Key: {SMART_BREAKER_API_KEY}` and `Authorization: Bearer {AUTH_TOKEN}`. Tokens are obtained from the OAuth2 token endpoint via Client ID + secret (Base64-encoded Basic auth) and are valid for 1 hour.


    This OpenAPI spec is reconstructed from the public Eaton developer-portal documentation (https://api.em.eaton.com/docs and https://api.em.eaton.com/preview/docs) and the AbleEdge Smart Breaker developer portal (https://portal.em.eaton.com/). It is intended for cataloging and capability mapping in API Evangelist tooling, not as a substitute for the authoritative provider spec.

    '
  version: 1.0.0
  contact:
    name: Eaton AbleEdge Developer Portal
    url: https://portal.em.eaton.com/
  license:
    name: Eaton Brightlayer Experience Hub Terms
    url: https://www.eaton.com/us/en-us/company/policies-and-statements/brightlayer-experience-hub-terms-and-conditions.html
  x-source: https://api.em.eaton.com/docs
  x-spec-status: reconstructed-from-public-docs
servers:
- url: https://api.em.eaton.com
  description: Production
- url: https://api.em.eaton.com/preview
  description: Preview (forward-looking, opt-in)
security:
- OAuth2: []
  SubscriptionKey: []
tags:
- name: Devices
  description: Smart breakers and EV chargers (emcb, ev-emcb).
paths:
  /api/v1/devices:
    get:
      tags:
      - Devices
      summary: List Devices
      description: List devices, optionally filtered by location.
      parameters:
      - in: query
        name: locationId
        schema:
          type: string
          format: uuid
      - in: query
        name: hardwareType
        schema:
          type: string
          enum:
          - emcb
          - ev-emcb
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Device'
  /api/v1/devices/{deviceId}:
    parameters:
    - $ref: '#/components/parameters/DeviceId'
    get:
      tags:
      - Devices
      summary: Get Device
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Device'
    delete:
      tags:
      - Devices
      summary: Decommission Device
      responses:
        '204':
          description: Device decommissioned
  /api/v1/devices/{deviceId}/state:
    parameters:
    - $ref: '#/components/parameters/DeviceId'
    get:
      tags:
      - Devices
      summary: Get Device State
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceState'
components:
  schemas:
    DeviceState:
      type: object
      properties:
        deviceId:
          type: string
          format: uuid
        position:
          type: string
          enum:
          - open
          - closed
          - tripped
        connectivity:
          type: string
          enum:
          - online
          - offline
        lastReportedAt:
          type: string
          format: date-time
    Device:
      type: object
      required:
      - id
      - locationId
      - hardwareType
      properties:
        id:
          type: string
          format: uuid
        locationId:
          type: string
          format: uuid
        hardwareType:
          type: string
          enum:
          - emcb
          - ev-emcb
        sku:
          type: string
        serialNumber:
          type: string
        chargerStationId:
          type: string
          nullable: true
        name:
          type: string
        firmwareVersion:
          type: string
  parameters:
    DeviceId:
      in: path
      name: deviceId
      required: true
      schema:
        type: string
        format: uuid
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://api.em.eaton.com/oauth2/token
          scopes: {}
    SubscriptionKey:
      type: apiKey
      in: header
      name: Em-Api-Subscription-Key