enSights Insights & Alerts API

Open and historical alerts across solar, storage, and EV assets

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 4

POST /api/v1/insights/triage-assessments Store a Morning Triage run's loss assessments #
GET /api/v1/insights/open Get open insights and alerts #
GET /api/v1/insights/aggregated Get aggregated insights and alerts #
POST /api/v1/insights Update insight #

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/ensights:ensights-insights-alerts-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

ensights-insights-alerts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: enSights Monitoring Insights & Alerts API
  version: 1.0.0
  description: The enSights Monitoring API provides comprehensive access to renewable energy asset data across solar PV systems and battery storage units infrastructure. It enables real-time monitoring, historical performance analysis, and intelligent alerting for distributed energy portfolios — empowering operators and integrators to maximize clean energy yield, optimize self-consumption, and drive the transition to a sustainable grid.
servers:
- url: https://external-api.ensights.ai
security:
- accesstoken: []
tags:
- name: Insights & Alerts
  description: Open and historical alerts across solar, storage, and EV assets
paths:
  /api/v1/insights/triage-assessments:
    post:
      summary: Store a Morning Triage run's loss assessments
      description: Writes one history row per item (idempotent on tenant, insight and runId) and sets the latest onto the insight under `triageAssessment`. Tenant comes from the auth context. Items are rejected individually (bad shape, not found in this tenant, out of scope, closed).
      tags:
      - Insights & Alerts
      security:
      - accesstoken: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - planId
              - runId
              - assessedAt
              - items
              properties:
                planId:
                  type: string
                runId:
                  type: string
                assessedAt:
                  type: string
                  format: date-time
                items:
                  type: array
                  maxItems: 1000
                  items:
                    type: object
                    required:
                    - insightId
                    - lossSoFarKwh
                    - lossNext7dKwh
                    - capacityLossPct
                    - basis
                    properties:
                      insightId:
                        type: string
                        pattern: ^[0-9a-fA-F]{24}$
                      lossSoFarKwh:
                        type: number
                        minimum: 0
                      lossNext7dKwh:
                        type: number
                        minimum: 0
                      capacityLossPct:
                        type: number
                        minimum: 0
                        maximum: 100
                      lossSoFarMoney:
                        type: number
                      lossNext7dMoney:
                        type: number
                      currency:
                        type: string
                      basis:
                        type: string
      responses:
        '200':
          description: Per-item outcome
          content:
            application/json:
              schema:
                type: object
                properties:
                  accepted:
                    type: integer
                  rejected:
                    type: array
                    items:
                      type: object
                      properties:
                        insightId:
                          type: string
                        reason:
                          type: string
        '400':
          description: Invalid call (missing planId/runId/assessedAt, items not an array, over 1000 items)
      operationId: postApiV1InsightsTriageAssessments
      x-operation-id-source: derived
  /api/v1/insights/open:
    get:
      summary: Get open insights and alerts
      description: Returns all currently open (unresolved) insights and alerts.
      tags:
      - Insights & Alerts
      security:
      - accesstoken: []
      responses:
        '200':
          description: List of open insights
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    code:
                      type: string
                      example: NO_GENERATION_INVERTER
                    description:
                      type: string
                      example: No energy yield from inverter
                    severity:
                      type: string
                      enum:
                      - low
                      - medium
                      - high
                      example: high
                    SLA:
                      type: number
                      example: 1440
                    alertAfter:
                      type: number
                      example: 2
                    sourceType:
                      type: string
                      example: solar
                    resourceId:
                      type: string
                      example: RTQH1
                    resourceName:
                      type: string
                      example: RTQH1
                    deviceName:
                      type: string
                      example: INV 36 (17S)
                    deviceModel:
                      type: string
                      example: blueplanet 150 TL3
                    deviceSerial:
                      type: string
                      example: 150TL01735910
                    firstSeen:
                      type: string
                      format: date-time
                    lastSeen:
                      type: string
                      format: date-time
                    ack:
                      type:
                      - string
                      - 'null'
                    vendor:
                      type: string
                      example: meteocontrol
                    comments:
                      type:
                      - string
                      - 'null'
                    totalTime:
                      type: number
                      example: 900
        '401':
          description: Unauthorized — missing or invalid access token
        '500':
          description: Internal server error
      operationId: getApiV1InsightsOpen
      x-operation-id-source: derived
  /api/v1/insights/aggregated:
    get:
      summary: Get aggregated insights and alerts
      description: Returns a list of all insights and alerts (open and closed) aggregated across systems. With `groupBySeverity=true` the same filtered set is rolled up to one row per severity instead - `{ severity, total, totalLoss, affectedCapacity, totalTime, avgOpenTimeSeconds }` - for the alerts-by-severity widget.
      tags:
      - Insights & Alerts
      security:
      - accesstoken: []
      parameters:
      - in: query
        name: groupBySeverity
        required: false
        schema:
          type: boolean
        description: Roll the result up to one row per severity instead of one per alert instance.
      responses:
        '200':
          description: List of aggregated insights
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    code:
                      type: string
                      example: NO_GENERATION_INVERTER
                    description:
                      type: string
                      example: No energy yield from inverter
                    severity:
                      type: string
                      enum:
                      - low
                      - medium
                      - high
                      example: high
                    SLA:
                      type: number
                      example: 1440
                    alertAfter:
                      type: number
                      example: 2
                    sourceType:
                      type: string
                      example: solar
                    resourceId:
                      type: string
                      example: RTQH1
                    resourceName:
                      type: string
                      example: RTQH1
                    deviceName:
                      type: string
                      example: INV 36 (17S)
                    deviceModel:
                      type: string
                      example: blueplanet 150 TL3
                    deviceSerial:
                      type: string
                      example: 150TL01735910
                    firstSeen:
                      type: string
                      format: date-time
                    lastSeen:
                      type: string
                      format: date-time
                    total:
                      type: number
                      example: 1
                    closedAt:
                      type: string
                      format: date-time
                    ack:
                      type:
                      - string
                      - 'null'
                    vendor:
                      type: string
                      example: meteocontrol
                    comments:
                      type:
                      - string
                      - 'null'
                    totalTime:
                      type: number
                      example: 900
                    status:
                      type: string
                      enum:
                      - open
                      - closed
                      example: closed
        '401':
          description: Unauthorized — missing or invalid access token
        '500':
          description: Internal server error
      operationId: getApiV1InsightsAggregated
      x-operation-id-source: derived
  /api/v1/insights:
    post:
      summary: Update insight
      description: Update an existing insight with a comment and/or reported duration.
      tags:
      - Insights & Alerts
      security:
      - accesstoken: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - _id
              properties:
                _id:
                  type: string
                  description: The insight ID
                  example: 683609418468575fafa5a6d4
                comment:
                  type: string
                  description: Comment to add to the insight
                  example: some comment
                reportedDuration:
                  type: number
                  description: Reported duration in seconds
                  example: 3600
      responses:
        '200':
          description: Insight updated successfully
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Bad request — missing _id field
        '401':
          description: Unauthorized — missing or invalid access token
        '500':
          description: Internal server error
      operationId: postApiV1Insights
      x-operation-id-source: derived
components:
  securitySchemes:
    accesstoken:
      type: apiKey
      in: header
      name: accesstoken
      description: Access token obtained from POST /app/auth