myenergi Devices API

The Devices API from myenergi — 4 operation(s) for devices.

GitHub OpenAPI

Operations 4

POST /devices/config/set-auto-schedule/{deviceSerialNo} Device config set auto schedule #
POST /devices/config/deactivate-auto-schedule/{deviceSerialNo} Device config deactivate auto schedule #
POST /devices/config/activate-auto-schedule/{deviceSerialNo} Device config activate auto schedule #
PATCH /devices/config/update-tariff/{deviceSerialNo} Device config update tariff #

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-devices-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-devices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: myenergi public Devices API
  version: 1.0.0
servers:
- url: api.myenergi.com
tags:
- name: Devices
paths:
  /devices/config/set-auto-schedule/{deviceSerialNo}:
    post:
      operationId: device-config-setAutoSchedule
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                readyByTime:
                  type: string
                  pattern: ^(?:[01]\d|2[0-3]):[0-5]\d$
                date:
                  type: string
                kwh:
                  type: number
                  description: Energy measured in kWh
                initiator:
                  type: string
                  enum:
                  - app
                  - customer
                  description: The source that initiated the auto schedule intent
              required:
              - readyByTime
              - date
              - kwh
              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'
      tags:
      - Devices
      summary: Device config set auto schedule
      x-summary-source: derived
  /devices/config/deactivate-auto-schedule/{deviceSerialNo}:
    post:
      operationId: device-config-deactivateAutoSchedule
      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'
      tags:
      - Devices
      summary: Device config deactivate auto schedule
      x-summary-source: derived
  /devices/config/activate-auto-schedule/{deviceSerialNo}:
    post:
      operationId: device-config-activateAutoSchedule
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                mpan:
                  type: string
                postcode:
                  type: string
                tariff:
                  anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - dual_rate
                      cheapStartTime:
                        type: string
                        pattern: ^(?:[01]\d|2[0-3]):[0-5]\d$
                      cheapEndTime:
                        type: string
                        pattern: ^(?:[01]\d|2[0-3]):[0-5]\d$
                    required:
                    - type
                    - cheapStartTime
                    - cheapEndTime
                    additionalProperties: false
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - single_rate
                        - dynamic
                        - smart
                        - unknown
                      cheapStartTime:
                        type: string
                        pattern: ^(?:[01]\d|2[0-3]):[0-5]\d$
                      cheapEndTime:
                        type: string
                        pattern: ^(?:[01]\d|2[0-3]):[0-5]\d$
                    required:
                    - type
                    additionalProperties: false
                initiator:
                  type: string
                  enum:
                  - app
                  - customer
                  description: The source that initiated the auto schedule intent
                ownerEmail:
                  type: string
                  format: email
              required:
              - mpan
              - postcode
              - tariff
              - initiator
              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'
      tags:
      - Devices
      summary: Device config activate auto schedule
      x-summary-source: derived
  /devices/config/update-tariff/{deviceSerialNo}:
    patch:
      operationId: device-config-updateTariff
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tariff:
                  anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - dual_rate
                      cheapStartTime:
                        type: string
                        pattern: ^(?:[01]\d|2[0-3]):[0-5]\d$
                      cheapEndTime:
                        type: string
                        pattern: ^(?:[01]\d|2[0-3]):[0-5]\d$
                    required:
                    - type
                    - cheapStartTime
                    - cheapEndTime
                    additionalProperties: false
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                        - single_rate
                        - dynamic
                        - smart
                        - unknown
                      cheapStartTime:
                        type: string
                        pattern: ^(?:[01]\d|2[0-3]):[0-5]\d$
                      cheapEndTime:
                        type: string
                        pattern: ^(?:[01]\d|2[0-3]):[0-5]\d$
                    required:
                    - type
                    additionalProperties: false
                mpan:
                  type: string
                postcode:
                  type: string
              required:
              - tariff
              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'
      tags:
      - Devices
      summary: Device config update tariff
      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