enSights Maintenance API
Service calls, maintenance tasks, and technician comments
Service calls, maintenance tasks, and technician comments
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/ensights:ensights-maintenance-api"
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.
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: 3.2.0
info:
title: enSights Monitoring Maintenance 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: Maintenance
description: Service calls, maintenance tasks, and technician comments
paths:
/api/v1/solar/maintenance/comment/{taskId}:
post:
summary: Create/Update comment for a service call
tags:
- Maintenance
security:
- accesstoken: []
parameters:
- in: path
name: taskId
required: true
schema:
type: string
description: The service call task ID
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
description:
type: string
example: the comment
responses:
'200':
description: Comment added/updated successfully
content:
application/json:
schema:
type: object
properties:
_id:
type: string
example: 66a60c047ea0ae9502e03c04
description:
type: string
files:
type: array
items:
type: string
'400':
description: Bad request — invalid or missing parameters
'401':
description: Unauthorized — missing or invalid access token
'500':
description: Internal server error
operationId: postApiV1SolarMaintenanceCommentByTaskId
x-operation-id-source: derived
/api/v1/solar/maintenance/{id}:
patch:
summary: Partially update a service call
description: 'Writes only the fields present in the body; every other field is left as stored.
Unknown fields are rejected with 400. Technician emails are sent only when the
technicians, dueDate or plannedStartTime actually change (subject to each user''s
changesInTasksAssignedToMe setting). Completing or closing a call stays on
POST /maintenance, which runs the closing side effects. `inventory` is not patchable
yet and returns 400 with field "inventory".'
tags:
- Maintenance
security:
- accesstoken: []
parameters:
- in: path
name: id
required: true
schema:
type: string
- in: header
name: If-Match
required: false
description: The task's updatedAt (ISO date or epoch ms, as returned in ETag). A mismatch returns 409.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
dueDate:
type: integer
description: Unix timestamp in seconds
example: 1790240400
plannedStartTime:
type: string
description: HH:mm
example: 08:00
technician:
type: array
items:
type: string
format: email
description: Replaces the assignee list; [] unassigns
insightId:
type:
- string
- 'null'
description: Alert (insight) id to attach; null detaches
status:
type: string
enum:
- open
- inprogress
comments:
type: array
description: Comments to append (existing comments are never modified)
items:
type: object
additionalProperties: false
required:
- description
properties:
description:
type: string
updatedAt:
type: string
description: Precondition, same as If-Match
updateExternalCalendar:
type: boolean
description: Sync the external calendar (Teamup), as on POST
responses:
'200':
description: The updated service call. The ETag header carries its new updatedAt.
'400':
description: Validation error; `field` names the offending field
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: 'dueDate: must be an integer unix timestamp in seconds'
field:
type: string
example: dueDate
'403':
description: Caller may not edit this call
'404':
description: No such service call in the caller's tenant
'409':
description: If-Match mismatch, a concurrent write, or a status change the call's state does not allow
'502':
description: core-service rejected an inventory call; nothing was written
operationId: patchApiV1SolarMaintenanceById
x-operation-id-source: derived
/api/v1/solar/maintenance:
post:
summary: Create/Update service call
tags:
- Maintenance
security:
- accesstoken: []
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
_id:
type: string
description: Task ID (required for update only)
example: 63c004c7265696090c462569
assets:
type: string
description: Solar system ID
example: '5116794'
type:
type: string
enum:
- malfunction
- maintenance
- cleaning
example: malfunction
status:
type: string
enum:
- open
- inprogress
- completed
- closed
example: open
technician:
type: string
description: Technician email
example: technician@ensights.ai
dueDate:
type: number
description: Unix timestamp
example: 1722805199
openedAt:
type: number
description: Unix timestamp
example: 1722158051
description:
type: string
example: Check inverter
title:
type: string
example: Communication error in system
assetType:
type: string
example: solar
files:
type: string
format: binary
responses:
'200':
description: Created or updated service call
content:
application/json:
schema:
type: array
items:
type: object
properties:
_id:
type: string
example: 66a60c047ea0ae9502e03c04
type:
type: string
example: malfunction
status:
type: string
example: open
technician:
type: array
items:
type: string
dueDate:
type: number
openedAt:
type: number
description:
type: string
title:
type: string
caseId:
type: string
example: M2407-2
assetType:
type: string
example: solar
'400':
description: Bad request — invalid or missing parameters
'401':
description: Unauthorized — missing or invalid access token
'500':
description: Internal server error
operationId: postApiV1SolarMaintenance
x-operation-id-source: derived
components:
securitySchemes:
accesstoken:
type: apiKey
in: header
name: accesstoken
description: Access token obtained from POST /app/auth