inexogy Metadata API

The Metadata API from inexogy — 5 operation(s) for metadata.

Operations 5

POST /alert Add an alert #
GET /devices Returns the devices recognised for the given meter #
GET /field_names Return the available measurement field names for the specified meter #
GET /meters Return all meters that the user has access to #
POST /tariff Set the tariff for a meter #

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/discovergy:discovergy-metadata-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

discovergy-metadata-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Discovergy Metadata API
tags:
- name: Metadata
paths:
  /alert:
    post:
      tags:
      - Metadata
      summary: Add an alert
      operationId: addAlert
      requestBody:
        description: 'Alert properties given as a JSON map. Must contain a <code>meterId</code> property containing the identifier of the meter to create the alert for, an <code>alertType</code> property and other properties depending on the alert type:<ul>

          <li>For alert type <code>OFFLINE</code>:<ul>

          <li><code>duration</code>: Duration the meter has to be offline for the alert to fire</li>

          <li><code>durationUnit</code>: Unit of <code>duration</code>, one of <code>MINUTES</code>, <code>HOURS</code>, <code>DAYS</code></li>

          </ul></li>

          <li>For alert type <code>POWER_THRESHOLD</code>:<ul>

          <li><code>duration</code>: Duration during which the power is consumed</li>

          <li><code>durationUnit</code>: The unit of <code>duration</code>, one of <code>MINUTES</code>, <code>HOURS</code>, <code>DAYS</code>, <code>CALENDAR_DAYS</code>, <code>CALENDAR_WEEKS</code>, <code>CALENDAR_MONTHS</code></li>

          <li><code>threshold</code>: Threshold in watts</li>

          <li><code>thresholdType</code>: <code>UPPER</code> or <code>LOWER</code>, depending on whether the alert shall fire if the power consumption is above or below the threshold</li>

          <li><code>phase</code>:  The unit of <code>phase</code>, one of <code>ANY</code>, <code>TOTAL</code>, <code>PHASE1</code>, <code>PHASE2</code>, <code>PHASE3</code></li>

          </ul></li>

          <li>For alert type <code>ENERGY_THRESHOLD</code>:<ul>

          <li><code>duration</code>: Duration during which the energy is consumed</li>

          <li><code>durationUnit</code>: The unit of <code>duration</code>, one of <code>CALENDAR_DAYS</code>, <code>CALENDAR_WEEKS</code>, <code>CALENDAR_MONTHS</code></li>

          <li><code>threshold</code>: Threshold in kWh</li>

          <li><code>thresholdType</code>: <code>UPPER</code> or <code>LOWER</code>, depending on whether the alert shall fire if the energy consumption is above or below the threshold</li>

          </ul></li>

          </ul>Additionally, an <code>apiEndpoint</code> property may optionally be provided. If an alert with a configured <code>apiEndpoint</code> fires, an HTTP <code>POST</code> request is send to the URL specified in the <code>apiEndpoint</code> property. The body of this request contains a JSON map with the following properties:<ul>

          <li><code>meterType</code></li>

          <li><code>meterSerialNumber</code></li>

          <li><code>alertType</code>: <code>OFFLINE</code>, <code>POWER_THRESHOLD</code> or <code>ENERGY_THRESHOLD</code></li>

          </ul>Depending on <code>alertType</code>, additional properties will be included:<ul>

          <li>For alert type <code>OFFLINE</code>:<ul>

          <li><code>status</code>: <code>ALERT</code> or <code>BACK_TO_NORMAL</code></li>

          <li><code>since</code>: UNIX millisecond timestamp since when the meter is offline (or online if <code>status</code> is <code>BACK_TO_NORMAL</code>)</li>

          </ul></li>

          <li>For alert type <code>POWER_THRESHOLD</code>:<ul>

          <li><code>threshold</code>: Configured threshold in watts</li>

          <li><code>thresholdType</code>: Configured <code>thresholdType</code></li>

          <li><code>since</code>: UNIX millisecond timestamp since when the power consumption has been above/below the threshold</li>

          </ul></li>

          <li>For alert type <code>ENERGY_THRESHOLD</code>:<ul>

          <li><code>from</code>: UNIX millisecond timestamp of the begin of the interval for which the energy consumption is reported</li>

          <li><code>to</code>: UNIX millisecond timestamp of the end of the interval for which the energy consumption is reported</li>

          <li><code>consumption</code>: Energy consumed during the interval in kWh</li>

          </ul></li>

          </ul>'
        content:
          application/json:
            schema:
              type: string
        required: true
      responses:
        '200':
          description: Alert has been added
  /devices:
    get:
      tags:
      - Metadata
      summary: Returns the devices recognised for the given meter
      operationId: getDevices
      parameters:
      - name: meterId
        in: query
        description: Identifier of the meter for which recognised devices are requested
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Devices as a JSON object array
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
  /field_names:
    get:
      tags:
      - Metadata
      summary: Return the available measurement field names for the specified meter
      externalDocs:
        url: https://api.inexogy.com/docs/Obis_code_mapping.csv
      operationId: getFieldNamesFromMeter
      parameters:
      - name: meterId
        in: query
        description: Identifier of the meter to get the field names for
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Field names as a JSON string array
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
  /meters:
    get:
      tags:
      - Metadata
      summary: Return all meters that the user has access to
      operationId: getAccessibleMetersForUser
      responses:
        '200':
          description: Meters as a JSON object array
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Meter'
  /tariff:
    post:
      tags:
      - Metadata
      summary: Set the tariff for a meter
      operationId: setTariff
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetTariff'
      responses:
        '200':
          description: Tariff has been set
          content:
            application/json: {}
components:
  schemas:
    Address:
      type: object
      properties:
        street:
          type: string
          description: Name of the street where the meter is located
        streetNumber:
          type: string
          description: Number in the street where the meter is located
        zip:
          type: string
          description: Postal code where the meter is located
        city:
          type: string
          description: City/town where the meter is located
        country:
          type: string
          description: Country code where the meter is located
    TariffProperties:
      required:
      - monthlyBasePrice
      - monthlyInstallment
      - pricePerKwh
      - providerName
      - tariffName
      type: object
      properties:
        providerName:
          type: string
          description: Provider name
        tariffName:
          type: string
          description: Tariff name
        monthlyBasePrice:
          type: number
          description: Monthly base price in €
        pricePerKwh:
          type: number
          description: Price per kWh in € for tariff 1 (Hochtarif / HT)
        secondaryPricePerKwh:
          type: number
          description: Price per kWh in € for tariff 2 (Niedertarif / NT)
        monthlyInstallment:
          type: number
          description: Monthly installment in €
        beginDate:
          type: string
          description: Tariff begin date. Optional. If not specified will be 'now'
          format: date
    SetTariff:
      required:
      - meterId
      - tariff
      type: object
      properties:
        meterId:
          type: string
          description: Identifier of the meter to set the tariff for
        tariff:
          $ref: '#/components/schemas/TariffProperties'
        user:
          type: string
          description: E-mail address of the user who shall see the tariff
    Meter:
      type: object
      properties:
        meterId:
          type: string
          description: Unique meterId, used as an identifier
        manufacturerId:
          type: string
          description: DLMS manufacturerId
        serialNumber:
          type: string
          description: Short serial number of the meter.
        fullSerialNumber:
          type: string
          description: Full standardized serial number, as it is reported by the meter itself.
        printedFullSerialNumber:
          type: string
          description: 'Full standardized serial number, as it is printed on the meter. Note: This might differ from fullSerialNumber only on meters from the manufacturer EMH.'
        location:
          $ref: '#/components/schemas/Address'
        administrationNumber:
          type: string
          description: Metering location number (MeLo or Zaehlpunktnummer) associated with the meter
        type:
          type: string
          description: Device type of the meter
        measurementType:
          type: string
          description: Physical quantity being measured by the meter
        loadProfileType:
          type: string
          description: Metering load profile type associated with the meter
        scalingFactor:
          type: integer
          description: Factor imposed on metered current AND voltage by a transducer
          format: int64
        currentScalingFactor:
          type: integer
          description: Factor imposed on metered current by a transducer
          format: int64
        voltageScalingFactor:
          type: integer
          description: Factor imposed on metered voltage by a transducer
          format: int64
        internalMeters:
          type: integer
          description: Number of individual metering units comprising the meter
          format: int64
        firstMeasurementTime:
          type: integer
          description: Time of the first measurement sent by the meter, as a UNIX millisecond timestamp, or -1 if the meter has not sent any measurements
          format: int64
        lastMeasurementTime:
          type: integer
          description: Time of the last measurement sent by the meter, as a UNIX millisecond timestamp, or -1 if the meter has not sent any measurements
          format: int64
        storageNumbers:
          uniqueItems: true
          type: array
          description: The storage numbers that meter has reported
          items:
            type: integer
            description: The storage numbers that meter has reported
            format: int32
        submeter:
          type: boolean
          description: Is meter part of sub-metering
        kWhScalingFactor:
          type: integer
          description: Scaling factor to be used as divisor to convert retrieved values to kWh
          format: int64