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://www.tenergen.com/api/v1/. For example, create an energy reading:
curl -X POST "http://www.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.
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 | Energy reading | http://www.tenergen.com/api/v1/ai-energy-manager/reading/ |
| AI Energy Manager | Recommendation | http://www.tenergen.com/api/v1/ai-energy-manager/recommendation/ |
| AI Energy Manager | Question for review | http://www.tenergen.com/api/v1/ai-energy-manager/question/ |
| Building energy orchestration | Building | http://www.tenergen.com/api/v1/building-energy-orchestration/building/ |
| Building energy orchestration | Energy asset | http://www.tenergen.com/api/v1/building-energy-orchestration/asset/ |
| Building energy orchestration | Telemetry point | http://www.tenergen.com/api/v1/building-energy-orchestration/telemetry/ |
| Building energy orchestration | Operating constraint | http://www.tenergen.com/api/v1/building-energy-orchestration/constraint/ |
| Building energy orchestration | Proposed dispatch plan | http://www.tenergen.com/api/v1/building-energy-orchestration/dispatch/ |
| Building energy digital twin | Building model baseline | http://www.tenergen.com/api/v1/building-energy-digital-twin/model/ |
| Building energy digital twin | What-if scenario | http://www.tenergen.com/api/v1/building-energy-digital-twin/scenario/ |
| Building energy digital twin | Simulation run record | http://www.tenergen.com/api/v1/building-energy-digital-twin/run/ |
| Demand response and virtual power plant | Flexible asset | http://www.tenergen.com/api/v1/demand-response-virtual-power-plant/asset/ |
| Demand response and virtual power plant | Program enrollment | http://www.tenergen.com/api/v1/demand-response-virtual-power-plant/enrollment/ |
| Demand response and virtual power plant | Grid event | http://www.tenergen.com/api/v1/demand-response-virtual-power-plant/event/ |
| Demand response and virtual power plant | Proposed dispatch | http://www.tenergen.com/api/v1/demand-response-virtual-power-plant/dispatch/ |
| Demand response and virtual power plant | Dispatch result | http://www.tenergen.com/api/v1/demand-response-virtual-power-plant/result/ |
| Energy efficiency marketplace | Provider listing | http://www.tenergen.com/api/v1/energy-efficiency-marketplace/listing/ |
| Energy efficiency marketplace | Project opportunity | http://www.tenergen.com/api/v1/energy-efficiency-marketplace/opportunity/ |
| Energy efficiency marketplace | Consent-based introduction | http://www.tenergen.com/api/v1/energy-efficiency-marketplace/introduction/ |
| Energy infrastructure readiness | Electrical service | http://www.tenergen.com/api/v1/energy-infrastructure-readiness/service/ |
| Energy infrastructure readiness | Planned load | http://www.tenergen.com/api/v1/energy-infrastructure-readiness/load/ |
| Energy infrastructure readiness | Electrification scenario | http://www.tenergen.com/api/v1/energy-infrastructure-readiness/scenario/ |
| Energy retrofit delivery | Building assessment | http://www.tenergen.com/api/v1/energy-retrofit-as-a-service/assessment/ |
| Energy retrofit delivery | Retrofit measure | http://www.tenergen.com/api/v1/energy-retrofit-as-a-service/measure/ |
| Energy retrofit delivery | Project milestone | http://www.tenergen.com/api/v1/energy-retrofit-as-a-service/milestone/ |
| Energy retrofit financing | Retrofit project | http://www.tenergen.com/api/v1/energy-retrofit-financing/project/ |
| Energy retrofit financing | Incentive program | http://www.tenergen.com/api/v1/energy-retrofit-financing/incentive/ |
| Energy retrofit financing | Financing offer | http://www.tenergen.com/api/v1/energy-retrofit-financing/offer/ |
| Energy retrofit financing | Cash-flow scenario | http://www.tenergen.com/api/v1/energy-retrofit-financing/scenario/ |
| Public-sector energy optimization | Public portfolio | http://www.tenergen.com/api/v1/public-sector-energy-optimization/portfolio/ |
| Public-sector energy optimization | Facility | http://www.tenergen.com/api/v1/public-sector-energy-optimization/facility/ |
| Public-sector energy optimization | Energy period | http://www.tenergen.com/api/v1/public-sector-energy-optimization/energy-period/ |
| Public-sector energy optimization | Capital opportunity | http://www.tenergen.com/api/v1/public-sector-energy-optimization/opportunity/ |
| Public-sector energy optimization | Capital plan | http://www.tenergen.com/api/v1/public-sector-energy-optimization/capital-plan/ |
| Smart EV charging | Charging site | http://www.tenergen.com/api/v1/smart-ev-charging/site/ |
| Smart EV charging | Charger | http://www.tenergen.com/api/v1/smart-ev-charging/charger/ |
| Smart EV charging | Vehicle request | http://www.tenergen.com/api/v1/smart-ev-charging/request/ |
| Smart EV charging | Charging schedule proposal | http://www.tenergen.com/api/v1/smart-ev-charging/schedule/ |
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.- 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.