myenergi Command API

The Command API from myenergi — 3 operation(s) for command.

GitHub OpenAPI

Operations 3

POST /devices/command/set-zappi-lock-function/{deviceSerialNo} Device command set zappi lock function #
POST /devices/command/handle-zappi-boost/{deviceSerialNo} Device command handle zappi boost #
GET /devices/command/status/{deviceSerialNo}/{commandId} Device command get status #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/myenergi:myenergi-command-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

myenergi-command-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: myenergi public Command API
  version: 1.0.0
servers:
- url: api.myenergi.com
tags:
- name: Command
paths:
  /devices/command/set-zappi-lock-function/{deviceSerialNo}:
    post:
      operationId: device-command-setZappiLockFunction
      description: This endpoint allows setting the lock function of a zappi device.
      tags:
      - Command
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                lock:
                  type: boolean
                lockTimeout:
                  type:
                  - number
                  - 'null'
                  default: 30
                chargeWhenPINLocked:
                  type:
                  - boolean
                  - 'null'
                  default: false
              required:
              - lock
              additionalProperties: false
      parameters:
      - name: deviceSerialNo
        in: path
        required: true
        schema:
          type: number
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                anyOf:
                - type: object
                  properties:
                    statusCode:
                      type: number
                    body:
                      type: object
                      properties:
                        message:
                          type: string
                      required:
                      - message
                      additionalProperties: false
                  required:
                  - statusCode
                  - body
                  additionalProperties: false
        default:
          $ref: '#/components/responses/error'
      summary: Device command set zappi lock function
      x-summary-source: derived
  /devices/command/handle-zappi-boost/{deviceSerialNo}:
    post:
      operationId: device-command-handleZappiBoost
      description: This endpoint allows setting a boost or cancelling a boost on a zappi device
      tags:
      - Command
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                mode:
                  type: string
                  enum:
                  - cancel
                  - boost
              required:
              - mode
              additionalProperties: false
      parameters:
      - name: deviceSerialNo
        in: path
        required: true
        schema:
          type: number
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                  body:
                    type: object
                    properties:
                      message:
                        type: string
                    required:
                    - message
                    additionalProperties: false
                required:
                - statusCode
                - body
                additionalProperties: false
        default:
          $ref: '#/components/responses/error'
      summary: Device command handle zappi boost
      x-summary-source: derived
  /devices/command/status/{deviceSerialNo}/{commandId}:
    get:
      operationId: device-command-getStatus
      description: Returns the current status of a previously dispatched command on a device you own. Use this to confirm a command has been delivered and accepted. State is one of `pending`, `succeeded`, or `failed`; command payloads, retry detail, and internal state are not exposed.
      tags:
      - Command
      security:
      - bearerAuth: []
      parameters:
      - name: deviceSerialNo
        in: path
        required: true
        schema:
          type: number
      - name: commandId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  state:
                    type: string
                    enum:
                    - pending
                    - succeeded
                    - failed
                  initiatedAt:
                    type: string
                  completedAt:
                    type:
                    - string
                    - 'null'
                required:
                - state
                - initiatedAt
                - completedAt
                additionalProperties: false
        default:
          $ref: '#/components/responses/error'
      summary: Device command get status
      x-summary-source: derived
components:
  responses:
    error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              code:
                type: string
              issues:
                type: array
                items:
                  type: object
                  properties:
                    message:
                      type: string
                  required:
                  - message
                  additionalProperties: false
            required:
            - message
            - code
            additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: API key generated on the myaccount website