API Reference & Swagger
This section explains how to access the full Homsai API reference through Swagger UI and how to use it together with the “wiki” documentation.
Overview
The detailed technical reference for all endpoints (methods, parameters, request/response schemas) is exposed via Swagger UI:
- v2 environment URL:
https://v2.api.homsai.app/swagger-ui/index.html#/
Swagger UI allows you to:
- explore all endpoints grouped by “tags” (Auth, Plants, Devices, Sensors, etc.);
- see path, query parameters, request body and response schema in detail;
- try out calls directly from the browser using a valid JWT token.
How to use Swagger UI
- Open in your browser:
https://v2.api.homsai.app/swagger-ui/index.html#/ - Authenticate (if required) by providing your JWT
accessTokenin the “Authorize” dialog. - Browse the endpoint groups (tags) in the sidebar:
- Auth
- Plants
- Devices
- Sensors
- Sensor Types / Device Types
- Load Signatures
- Data Types Collects
- Vendors
- Energy Metrics & Forecasts
- For each endpoint you can:
- expand the details;
- read parameters and DTO schemas;
- use “Try it out” to execute a test call.
Swagger is the authoritative source for the exact contract details (JSON schemas), while the wiki pages explain how and when to use the endpoints in real use cases.