TENERGEN OS · API
API user guide
Tenergen OS (Tenergen Optimization System) provides versioned REST endpoints for your offering workspace records.
Get started
- Sign in and open your workspace settings.
- Create a named API key. Copy the secret when it is shown; it cannot be revealed again. Revoke and replace it if it is lost.
- Keep the key in a secret manager or environment variable. Never publish it in browser code, source control, or support requests.
Authentication
Send the key on every API request using the Bearer authorization header:
Authorization: Bearer YOUR_TENERGEN_OS_API_KEY
Each key acts with the permissions of its owner. A key can access only records owned by that account and offerings permitted for its portal role.
Make a request
The API base URL is http://tenergen.com/api/v1/. For example, create an energy reading:
curl -X POST "http://tenergen.com/api/v1/ai-energy-manager/reading/" \
-H "Authorization: Bearer $TENERGEN_OS_API_KEY" \
-H "Content-Type: application/json" \
--data '{"building_name":"Clinic","measured_at":"2026-10-01T12:00:00Z","energy_kwh":"82.500","source":"Meter export"}'
Request and response fields follow each offering's workspace form. The OpenAPI schema describes field types and accepted values. Open the schema.
Submit orchestration telemetry
Create readings at http://tenergen.com/api/v1/building-energy-orchestration/telemetry/. Use an asset ID owned by the API key's account and an ISO 8601 timestamp with a timezone.
{
"asset": 42,
"measured_at": "2026-10-12T14:30:00Z",
"energy_kwh": "12.345",
"reading_type": "interval",
"interval_minutes": 15,
"source": "Main meter",
"message_id": "meter-42-20261012T143000Z"
}
For interval energy, measured_at is the interval end and interval_minutes is required. For a cumulative meter register, set reading_type to cumulative and omit interval_minutes. Existing legacy readings may have an unspecified type.
A message_id is required for telemetry submissions. Keep it stable to make retries idempotent: an identical retry returns the existing record, while reuse with different data returns 409 Conflict.
The same endpoint accepts a JSON array of up to 500 readings. Batch validation and creation are atomic; an invalid row rejects the whole batch.
Resources and methods
Every resource supports collection GET and POST, plus detail GET, PUT, PATCH, and DELETE. Collection responses use limit/offset pagination (limit defaults to 50 and is capped at 100).
| Offering | Resource | Collection endpoint |
|---|---|---|
| AI Energy Manager | Relevé énergétique | http://tenergen.com/api/v1/ai-energy-manager/reading/ |
| AI Energy Manager | Question for review | http://tenergen.com/api/v1/ai-energy-manager/question/ |
| Building energy orchestration | Building | http://tenergen.com/api/v1/building-energy-orchestration/building/ |
| Building energy orchestration | Grid-connected microgrid portfolio | http://tenergen.com/api/v1/building-energy-orchestration/microgrid_portfolio/ |
| Building energy orchestration | Grid-connected microgrid | http://tenergen.com/api/v1/building-energy-orchestration/microgrid/ |
| Building energy orchestration | Microgrid dispatch proposal | http://tenergen.com/api/v1/building-energy-orchestration/microgrid_plan/ |
| Building energy orchestration | Portfolio dispatch proposal | http://tenergen.com/api/v1/building-energy-orchestration/portfolio_plan/ |
| Building energy orchestration | Actif énergétique | http://tenergen.com/api/v1/building-energy-orchestration/asset/ |
| Building energy orchestration | Telemetry point | http://tenergen.com/api/v1/building-energy-orchestration/telemetry/ |
| Building energy orchestration | Operating constraint | http://tenergen.com/api/v1/building-energy-orchestration/constraint/ |
| Building energy orchestration | Proposed dispatch plan | http://tenergen.com/api/v1/building-energy-orchestration/dispatch/ |
| Building energy orchestration | Energy optimization strategy | http://tenergen.com/api/v1/building-energy-orchestration/optimization_strategy/ |
| Building energy orchestration | Predictive preconditioning plan | http://tenergen.com/api/v1/building-energy-orchestration/preconditioning/ |
| Building energy orchestration | Automatic actuation profile | http://tenergen.com/api/v1/building-energy-orchestration/actuation_profile/ |
| Building energy digital twin | Building model baseline | http://tenergen.com/api/v1/building-energy-digital-twin/model/ |
| Building energy digital twin | What-if scenario | http://tenergen.com/api/v1/building-energy-digital-twin/scenario/ |
| Demand response and virtual power plant | Flexible asset | http://tenergen.com/api/v1/demand-response-virtual-power-plant/asset/ |
| Demand response and virtual power plant | Program enrollment | http://tenergen.com/api/v1/demand-response-virtual-power-plant/enrollment/ |
| Demand response and virtual power plant | Grid event | http://tenergen.com/api/v1/demand-response-virtual-power-plant/event/ |
| Demand response and virtual power plant | Proposed dispatch | http://tenergen.com/api/v1/demand-response-virtual-power-plant/dispatch/ |
| Demand response and virtual power plant | Dispatch result | http://tenergen.com/api/v1/demand-response-virtual-power-plant/result/ |
| Energy efficiency marketplace | Provider listing | http://tenergen.com/api/v1/energy-efficiency-marketplace/listing/ |
| Energy efficiency marketplace | Project opportunity | http://tenergen.com/api/v1/energy-efficiency-marketplace/opportunity/ |
| Energy efficiency marketplace | Consent-based introduction | http://tenergen.com/api/v1/energy-efficiency-marketplace/introduction/ |
| Energy infrastructure readiness | Branchement électrique | http://tenergen.com/api/v1/energy-infrastructure-readiness/service/ |
| Energy infrastructure readiness | Planned load | http://tenergen.com/api/v1/energy-infrastructure-readiness/load/ |
| Energy infrastructure readiness | Electrification scenario | http://tenergen.com/api/v1/energy-infrastructure-readiness/scenario/ |
| Energy retrofit delivery | Évaluation du bâtiment | http://tenergen.com/api/v1/energy-retrofit-as-a-service/assessment/ |
| Energy retrofit delivery | Mesure de rénovation | http://tenergen.com/api/v1/energy-retrofit-as-a-service/measure/ |
| Energy retrofit delivery | Jalon du projet | http://tenergen.com/api/v1/energy-retrofit-as-a-service/milestone/ |
| Energy retrofit delivery | Post-retrofit energy report | http://tenergen.com/api/v1/energy-retrofit-as-a-service/measurement/ |
| Energy retrofit delivery | Catalogue partagé des programmes d’aide | http://tenergen.com/api/v1/energy-retrofit-as-a-service/incentive/ |
| Energy retrofit financing | Projet de rénovation | http://tenergen.com/api/v1/energy-retrofit-financing/project/ |
| Energy retrofit financing | Catalogue partagé des programmes d’aide | http://tenergen.com/api/v1/energy-retrofit-financing/incentive/ |
| Energy retrofit financing | Offre de financement | http://tenergen.com/api/v1/energy-retrofit-financing/offer/ |
| Energy retrofit financing | Scénario de trésorerie | http://tenergen.com/api/v1/energy-retrofit-financing/scenario/ |
| Public-sector energy optimization | Public portfolio | http://tenergen.com/api/v1/public-sector-energy-optimization/portfolio/ |
| Public-sector energy optimization | Facility | http://tenergen.com/api/v1/public-sector-energy-optimization/facility/ |
| Public-sector energy optimization | Période énergétique | http://tenergen.com/api/v1/public-sector-energy-optimization/energy-period/ |
| Public-sector energy optimization | Capital opportunity | http://tenergen.com/api/v1/public-sector-energy-optimization/opportunity/ |
| Public-sector energy optimization | Capital plan | http://tenergen.com/api/v1/public-sector-energy-optimization/capital-plan/ |
| Predictive maintenance | Equipment condition reading | http://tenergen.com/api/v1/predictive-maintenance/condition_reading/ |
| Smart EV charging | Charging site | http://tenergen.com/api/v1/smart-ev-charging/site/ |
| Smart EV charging | Charger | http://tenergen.com/api/v1/smart-ev-charging/charger/ |
| Smart EV charging | Vehicle request | http://tenergen.com/api/v1/smart-ev-charging/request/ |
| Smart EV charging | Charging schedule proposal | http://tenergen.com/api/v1/smart-ev-charging/schedule/ |
| Thermal Energy Management | Building | http://tenergen.com/api/v1/thermal-energy-management/building/ |
| Thermal Energy Management | Predictive preconditioning plan | http://tenergen.com/api/v1/thermal-energy-management/preconditioning/ |
The API index also lists machine-readable endpoint URLs.
Responses and usage
200request succeeded;201record created;204record deleted.400input validation failed;401key missing, invalid, or revoked;403your role cannot use that offering;404record does not exist or is not yours;409telemetry message ID conflicts with existing data.- The dashboard counts authenticated API requests, including requests that return validation or permission errors. These are request counts, not billable units or energy usage.
Review your key activity and recent requests in workspace settings.