Qcells Developer API Manual
Introduction
This API Manual provides essential information for accessing data related to energy management, system performance, alerts, events, and details about site and device assets. Our APIs enable you to retrieve real-time and historical metrics, including various readings and signals, facilitating effective integration with your applications.
Use this manual to understand the available endpoints and their response structures, allowing for optimized energy management solutions and timely notifications. For further assistance, please consult the relevant support resources.
Monitoring
The Monitoring APIs provide near real-time access to the telemetry data being sent from sites and devices. The time series endpoints should be used to get any historical data, including data sets for a specific day. The telemetry API itself provides a snapshot view of the current state of a site or device. The alerts APIs are used to provide visibility into all alerts, past and present. Each of the Monitoring APIs is described in the following sections.
The OpenAPI specification document should always be referred to for a detailed definition of the API, including operations, parameters and request and response schemas. Examples provided in this document are illustrative.
Telemetry
The Telemetry API is used to provide a snapshot of the current state of a device or a site. The data provided is a near-real time view of common energy signals, such as power, energy and state of charge. When available, important status information related to the assets is also provided, such as status of an inverter, or connectivity to a given site.
Operations
GET: https://{api_server}/monitoring/v1/telemetry/sites/{site_id}
GET: https://{api_server}/monitoring/v1/telemetry/devices/{site_id}Note: Qcells supports both AC and DC coupled sites for a variety of hardware. Consequently, only a subset of telemetry may be available for a given site or device.
Note: Device data is not available in all service tiers.
Example response
{
"data": {
"site": {
"site_id": "100000000",
"timestamp": "2025-03-27T20:43:25Z",
"points": {
"battery_ac_charge_power": 0.0,
"battery_ac_discharge_power": 0.0,
"grid_energy_exported": 56.0,
"grid_energy_imported": 0.0,
"grid_power": -3987.25,
"load_energy": 7.0,
"load_power": 371.0,
"pv_ac_energy_generated": 63.0,
"pv_ac_power": 4358.0
}
},
"devices": [
{
"device_id": "db4cbb4d-f7d6-4bda-9a71-5f9dadad8737",
"timestamp": "2025-03-27T20:43:25Z",
"device_type": "acCombiner",
"prod_name": "Q.HOME COMBINER 80 G1",
"serial_num": "342611115424H01059",
"points": {
"pv_ac_voltage_lnv": 249.55999755859375,
"pv_ac_power": 4358.0,
"pv_ac_energy_generated_daily": 25088.0,
"pv_frequency": 60.029998779296875,
"pv_ac_energy_generated": 63.0
}
}
]
}
}
Historical Timeseries Data (Time Aggregates)
The time aggregates APIs provide access to historical rollups of telemetry data, such as power and energy signals. Data can be queried for a specific device or a specific site.
The site and device endpoints accept the same parameters and produce the same response body. The API endpoints are purposefully distinct to improve the query performance and scalability for end users.
Operations
GET: https://{api_server}/monitoring/v1/time-aggregation/sites/{site_id}
GET: https://{api_server}/monitoring/v1/time-aggregation/devices/{site_id}Note: Qcells supports both AC and DC coupled sites for a variety of hardware. Consequently, only a subset of telemetry may be available for a given site or device.
Note: Device data is not available in all service tiers.
Example Response
{
"data": {
"points": [
{
"timestamp": "2024-07-01T08:00:00Z",
"grid_energy_exported": 0.1234,
"grid_energy_imported": 0.1234
}, {
"timestamp": "2024-07-01T09:00:00Z",
"grid_energy_exported": 0.1234,
"grid_energy_imported": 0.1234
}, {
"timestamp": "2024-07-01T10:00:00Z",
"grid_energy_exported": 0.1234,
"grid_energy_imported": 0.1234}
]
}
}
Alerts
Alerts are used to monitor if a site or device is operating as expected or if anomalous behavior has or is occurring. Users should refer to the alert severity, status and code to determine the relevance of the alert to their specific use case. In cases where a device or site provides the information, the alert may include a message that provides additional context as well as useful categorization details.
Operations
GET: https://{api_server}/monitoring/v1/alerts/sites
GET: https://{api_server}/monitoring/v1/alerts/sites/{site_id}Example Response
{
"data": {
"alerts": [
{
"alert_id": "100000000_af1d57a6-1680-4429-a4eb-0fd16876932c_E02601",
"site_id": "100000000",
"device_id": "af1d57a6-1680-4429-a4eb-0fd16876932c",
"device_type": "accombiner",
"serial_number": "61111542AI30",
"category": "system",
"status": "active",
"code": "E02601",
"message": "",
"severity": "critical",
"start_time": "2025-03-28T17:02:35Z",
"tags": [],
"origin": "device",
"oem": "Qcells"
},
{
"alert_id": "100000000_7817470c-95b7-4235-8dbc-aa51c1578f80_E03103",
"site_id": "100000000",
"device_id": "7817470c-95b7-4235-8dbc-aa51c1578f80",
"device_type": "inverter",
"serial_number": "61111542AI30",
"category": "system",
"status": "active",
"code": "E03103",
"message": "",
"severity": "critical",
"start_time": "2025-03-28T17:02:35Z",
"tags": [],
"origin": "device",
"oem": "Qcells"
}
]
}
}
Events
Events are used to track occurrences related to a specific site, providing insights into activities and changes that may impact operations. Users can filter events using query parameters to tailor the information retrieved to their specific needs. Each event may include details such as the event type, timestamp, and any relevant context that can aid in understanding the significance of the event.
Operations
GET: https://{api_server}/monitoring/v1/events/sites
GET: https://{api_server}/monitoring/v1/events/sites/{site_id}Example Response
{
"data": {
"events": [
{
"event_id": "fe45bc6f-7335-4f61-9fb3-2ee393afcfb4",
"site_id": "100002941",
"device_id": "550e8400-e29b-41d4-a716-446655440000",
"alert_id": "100002941_550e8400-e29b-41d4-a716-446655440000_M00802W",
"serial_number": "2M114HF14900",
"severity": "major",
"message": "PV voltage out of range of operation (Under/Over)",
"timestamp": "2025-01-30T14:28:25Z",
"details": "",
"alert_category": "System",
"alert_code": "M00802W"
},
{
"event_id": "18c88f8e-2977-49c5-b715-e5795732bc47",
"site_id": "100002941",
"device_id": "550e8400-e29b-41d4-a716-446655440001",
"alert_id": "100002941_550e8400-e29b-41d4-a716-446655440001_M00802W",
"serial_number": "2M114HK17553",
"severity": "major",
"message": "PV voltage out of range of operation (Under/Over)",
"timestamp": "2025-01-30T14:28:25Z",
"details": "",
"alert_category": "System",
"alert_code": "M00802W"
}
]
}
}
Asset Management
The Asset Management APIs provide an interface for reading information about sites. For detailed definitions of the API, including operations, parameters, and request/response schemas.
The OpenAPI specification document should always be referred to for a detailed definition of the API, including operations, parameters and request and response schemas. Examples provided in this document are illustrative.
Sites
The Site API allows you to access information about site assets. A site refers to a location where Qcells-branded or Qcells-supplied third-party hardware or devices are installed. The energy produced by the installed hardware is tracked under the corresponding site, and enrollment in energy service programs is also associated with a site.
Operations
GET: https://{api_server}/asset-management/v1/sites
GET: https://{api_server}/asset-management/v1/sites/{site_id}Example Response
{
"data": {
"site_name": "site",
"site_id": "100000445",
"site_address": {
"street_address": "12345 Cedar Rd",
"city": "Fresno",
"state_code": "CA",
"zip_code": "93701",
"country": "USA"
},
"location": {
"latitude": "36.7378",
"longitude": "-119.7871"
},
"asset_registration_info": {
"pto_date": "2024-08-28T01:12:24.0000000Z",
"purchase_date": "2024-08-28T01:12:24.0000000Z",
"account_number": "ASSET-20240723-C002",
"display_name": "QH0760H4203014"
},
"system_info": {
"pv_system_size_kw": 50.0,
"type": {
"value": {
"0": "PitchedRoof"
}
}
},
"homeowner": {
"first_name": "Homeowner First Name",
"last_name": "Homeowner Last Name",
"address": {
"street_address": "",
"city": "",
"state_code": "",
"zip_code": "",
"country": "USA"
},
"contact": {
"email": "homeowner_example@qcells.com",
"phone": "00000000000",
"company": "Qcells"
}
},
"installer": {
"first_name": "Installer First Name",
"last_name": "Installer Last Name",
"address": {
"street_address": "501 3rd St",
"city": "SF",
"state_code": "CA",
"zip_code": "94110"
},
"contact": {
"email": "installer_example@qcells.com",
"phone": "0000000000",
"company": "Qcells Installer"
}
},
"contracts": [
{
"energy_services_contract": {
"twin_display_name": "energyServiceContract",
"common_info": {
"create_date": "2024-08-28T01:12:24.0000000Z"
},
"program_type": "VPPExportToGrid",
"program_name": "California Demand Side Grid Services, DRAM, Connected Solutions.",
"eligible_device_type": "PVInverter",
"contract_id": "String",
"aggregator_name": "String",
"effective_date": "2024-06-03T00:00:00.0000000Z",
"expiration_date": "2024-06-03T00:00:00.0000000Z"
},
"o_and_m_contract": {
"twin_display_name": "oAndMContract",
"common_info": {
"create_date": "2024-08-28T01:12:24.0000000Z"
},
"effective_date": "2024-06-03T00:00:00.0000000Z",
"contract_type": "ThirdPartyOwnedLease",
"performance_details": {
"year_one_expected_output_kwh": "60000",
"year_one_monthly_production": {
"monthly_production_kwh": {
"0": 5000,
"1": 5000,
"2": 5000,
"3": 5000,
"4": 5000,
"5": 5000,
"6": 5000,
"7": 5000,
"8": 5000,
"9": 5000,
"10": 5000,
"11": 50000
}
},
"annual_degradation_rate": "0.55"
},
"storage_contract_details": {
"homeowner_term_length_years": "25",
"minimum_reserve_level": "0",
"battery_owner": "EnFin"
},
"warranty_details": {
"new_roof_guarantee_term_years": "10",
"new_roof_guarantee_payment": "$10",
"installation_workmanship_guarantee_years": "10",
"roof_penetration_warranty_term_years": "10"
},
"performance_guarantee_details": {
"guaranteed_refund_rate_schedule": {
"0": "0.10",
"1": "0.10",
"2": "0.10",
"3": "0.10"
},
"reporting_interval_years": {
"0": 2,
"1": 1,
"2": 1,
"3": 1,
"4": 1,
"5": 1,
"6": 1,
"7": 1,
"8": 1,
"9": 1,
"10": 1,
"11": 1,
"12": 1,
"13": 1,
"14": 1,
"15": 1,
"16": 1,
"17": 1,
"18": 1,
"19": 1,
"20": 1,
"21": 1,
"22": 1,
"23": 1
},
"production_guarantee_term_years": "25",
"production_guarantee_level": "90"
},
"fund": "fund",
"legal_owner": "EnFin",
"contract_duration_years": "5.0"
}
}
],
"partner_data": {},
"inverters": [
{
"device_id": "25f592a2-3f45-4325-bd88-4e5c5db7e163",
"serial_num": "342711176014A12911",
"metadata": {
"create_date": "2024-08-28T01:12:24.0000000Z"
},
"product_info": {
"prod_code": "QCELLS-Q_PEAK_DUO_BLK_G6__AC_345__240V_",
"prod_type": "Inverter",
"prod_name": "Q.PEAK DUO BLK-G6+/AC 345 [240V]",
"prod_mfr": "Qcells",
"prod_sub_type": ""
},
"nameplate_info": {
"w_max_rtg": 300
},
"asset_type": "Device"
}
],
"batteries": [
{
"device_id": "69dd21d4-0125-4088-ae6a-716f4d670488",
"serial_num": "121221140011945240",
"coupling_type": "DC",
"communication_type": "",
"metadata": {
"create_date": "2024-08-28T01:12:24.0000000Z"
},
"backup_type": "",
"product_info": {
"prod_code": "QCELLS-Q_SAVE_D15_0SX",
"prod_type": "Battery",
"prod_name": "Q.SAVE D15.0SX",
"prod_mfr": "Qcells",
"prod_sub_type": ""
},
"nameplate_info": {
"wh_rtg": 11.0
},
"asset_type": "Device"
}
],
"meters": [
{
"device_id": "02f913ba-d4ee-4c82-ad2e-f0352c4feb4f",
"product_info": {
"prod_code": "ELKOR-WATTSON___MARK__II",
"prod_type": "Meter",
"prod_name": "WattsOn - Mark II",
"prod_mfr": "Elkor",
"prod_sub_type": ""
},
"metadata": {
"create_date": "2024-08-28T01:12:24.0000000Z"
},
"asset_type": "Device"
}
],
"pv_arrays": [
{
"device_id": "bad777b5-6580-4726-9b20-3df74a36c1e9",
"orientation": {
"tilt": 2,
"azimuth": 2
},
"metadata": {
"create_date": "2024-08-28T01:12:24.0000000Z"
},
"product_info": {
"prod_code": "QCELLS-Q_PRO_G3_250",
"prod_type": "PVArray",
"prod_name": "Q.PRO-G3 250",
"prod_mfr": "Qcells"
},
"monthly_solar_access": {
"1": 2,
"2": 3,
"3": 4,
"4": 5,
"5": 6,
"6": 7,
"7": 8,
"8": 9,
"9": 10,
"10": 11,
"11": 12,
"0": 1
}
}
],
"oem_info": {}
}
}
Common Use Cases
The following sections describe common patterns and use cases for the APIs.
Get a daily summary of Energy
Precondition: You are authenticated and have a site_id to query
Query the the time-aggregation API
GET /monitoring/basic/v1/time-aggregation/sites/100000000?start_datetime=2025-02-27T07:00:00Z&interval=daily&rollup=sum&timezone=America/Los_Angeles&points=pv_ac_energy_generated,grid_energy_exported,grid_energy_imported,load_energy,battery_ac_energy_charged,battery_ac_energy_discharged
Example Response
{ "data": { "points": [ {
"timestamp": "2025-02-28T07:00:00Z",
"battery_ac_energy_discharged": 0,
"grid_energy_imported": 4986,
"battery_ac_energy_charged": 0,
"pv_ac_energy_generated": 829,
"grid_energy_exported": 220,
"load_energy": 5386
}, {
"timestamp": "2025-02-29T07:00:00Z",
"battery_ac_energy_discharged": 0,
"grid_energy_imported": 13186,
"battery_ac_energy_charged": 0,
"pv_ac_energy_generated": 61299,
"grid_energy_exported": 42640,
"load_energy": 30792
} ] }}Explanation
Query Parameters
start_datetime - Set this value to the earliest point in time you want to query.
interval - Set to to daily, to get a sum of energy for that day.
rollup - Set to sum, to apply the sum function to each data point. Note: In this example, the energy values are all incremental, so summing them makes sense. If they were lifetime values, then a sum will not return useful data.
timezone - Timezone is a critical parameter to get meaningful results for Daily. Explained further in another section.
points - Points are a common delimited list of telemetry points to apply the function against. For this use case, only use relevant energy values.
Response
timestamp - This timestamp is the start of the rollup period. For daily, the value should be midnight of the timezone. Note that it is specified in ISO8061 timestamp format. Pay close attention to the Offset, in this case is Z, or UTC or 00:00.
point : value - The rest of the response object is a set of Key-Value pairs. The key is the telemetry point and the value is its value.
Get a days energy values, at 5 minute intervals
Precondition: You are authenticated and have a site_id to query
Query the the time-aggregation API
GET /monitoring/basic/v1/time-aggregation/sites/100000000?start_datetime=2025-02-27T07:00:00Z&interval=5m&rollup=sum&timezone=America/Los_Angeles&points=pv_ac_energy_generated,grid_energy_exported,grid_energy_imported,load_energy,battery_ac_energy_charged,battery_ac_energy_discharged
Explanation
This query is identical to the query in `Get a daily summary of Energy`, with the exception that interval=5m instead of interval=daily
Authentication and Authorization
Qcells APIs require two forms of authentication and authorization: Subscription Keys and OAuth2.0 Bearer Tokens. This document outlines how the user will access the two authentication and authorization types and make an API request.
Subscription Key
The Subscription Key is a long-lived, general access token that is associated with the Access Tier that the user has been granted. The subscription key will enforce privileges and restrictions to the Qcells APIs at their tier, which include the set of APIs the user can access, the rate limits for the user’s given tier, etc.
OAuth2.0 Bearer Token
The OAuth 2.0 Bearer Token provides an additional level of protection. It is a short-lived token that improves security by limiting the window of opportunity for unauthorized access. It also provides more granular authorization for the user’s account, further protecting their access to Qcells APIs and Assets.
Obtaining API keys and Secrets
Access to the necessary keys and secret tokens is provided, securely, by a Qcells representative. Please reach out to your representative for access.
Making API Requests
Accessing APIs is a two-step process. The user must first obtain a JWT (Json Web Token), then make an API request(s).
A JWT is a bearer token that users are required to use in subsequent API requests. To get a JWT, the user must exchange their credentials.
curl --request POST --url 'https://{authorization_server}/oauth2/v2.0/token' \--header 'content-type: application/x-www-form-urlencoded' \--header 'content-type: application/x-www-form-urlencoded' \--data grant_type=client_credentials \--data client_id={client_id} \--data client_secret={client_secret} \--data scope={access_scope}
This will return a json object that includes the JWT required for subsequent API calls.
Sample Response
{"token_type":"Bearer","expires_in":3599,"ext_expires_in":3599,"access_token":"JWT"}The JWT itself is the value of the access_token in the response body.
*Note: The tokens expiration is returned. The user will need to repeat this call every time the token expires.
Now, using the Subscription Key and the JWT, make a request to the Qcells API.
Sample API Response
curl --location 'https://{api_server}/telemetry/sites/100000000?includeDevices=true' \--header 'Accept: application/json' \--header 'Authorization: Bearer JWT' \--header 'Ocp-Apim-Subscription-Key: Subscription_Key'
Telemetry Points
This section lists the various points provided by the telemetry apis. These are used consistently between the API that provides a snapshot of the current telemetry and the API used to query time-series data.
Battery AC Energy Charged (Incremental)
Point: battery_ac_energy_charged
Description: Energy (AC) consumed to charge the battery over an incremental period.
Unit: Watt Hours (Wh)
Type: Float
Battery AC Energy Charged (Lifetime)
Point: battery_ac_energy_charged_lifetime
Description: Energy (AC) consumed to charge the battery over the measurement lifetime.
Unit: Watt Hours (Wh)
Type: Float
Battery AC Energy Discharged (Incremental)
Point: battery_ac_energy_discharged
Description: Energy (AC) produced by discharging the battery over an incremental period.
Unit: Watt Hours (Wh)
Type: Float
Battery AC Energy Discharged (Lifetime)
Point: battery_ac_energy_discharged_lifetime
Description: Energy (AC) produced by discharging the battery over the measurement lifetime.
Unit: Watt Hours (Wh)
Type: Float
Instantaneous Battery AC Power
Point: battery_ac_power
Description: Instantaneous battery power (AC). A positive (+) value indicates discharging, and a negative (-) indicates charging.
Unit: Watts (W)
Type: Float
Instantaneous Battery AC Charge Power
Point: battery_ac_charge_power
Description: Instantaneous battery charge power (AC). This value is always > 0 when the battery is charging.
Unit: Watts (W)
Type: Float
Instantaneous Battery AC Discharge Power
Point: battery_ac_discharge_power
Description: Instantaneous battery discharge power (AC). This value is always > 0 when the battery is discharging.
Unit: Watts (W)
Type: Float
Battery State of Charge (SoC)
Point: battery_soc
Description: Percentage of the battery’s remaining energy relative to its full capacity.
Unit: %
Type: Float
Battery State of Health (SoH)
Point: battery_soh
Description: Current health of the battery compared to its original condition, expressed as a percentage.
Unit: %
Type: Float
Grid Energy Exported (Incremental)
Point: grid_energy_exported
Description: Energy sent to the grid from the system over an incremental period.
Unit: Watt Hours (Wh)
Type: Float
Grid Energy Exported (Lifetime)
Point: grid_energy_exported_lifetime
Description: Energy sent to the grid from the system over the measurement lifetime.
Unit: Watt Hours (Wh)
Type: Float
Grid Energy Imported (Incremental)
Point: grid_energy_imported
Description: Energy consumed from the grid by the system over an incremental period.
Unit: Watt Hours (Wh)
Type: Float
Grid Energy Imported (Lifetime)
Point: grid_energy_imported_lifetime
Description: Energy consumed from the grid by the system over the measurement lifetime.
Unit: Watt Hours (Wh)
Type: Float
Grid Instantaneous Power
Point: grid_power
Description: Grid instantaneous power reading. Positive (+) indicates importing power, negative (-) indicates exporting.
Unit: Watts (W)
Type: Float
Load Energy (Incremental)
Point: load_energy
Description: Energy consumed by the load over an incremental period.
Unit: Watt Hours (Wh)
Type: Float
Load Energy (Lifetime)
Point: load_energy_lifetime
Description: Energy consumed by the load over the measurement lifetime.
Unit: Watt Hours (Wh)
Type: Float
Load Instantaneous Power
Point: load_power
Description: Load instantaneous power consumption.
Unit: Watts (W)
Type: Float
PV Instantaneous Power
Point: pv_ac_power
Description: PV instantaneous power (AC) generation.
Unit: Watts (W)
Type: Float
PV AC Energy Generated (Incremental)
Point: pv_ac_energy_generated
Description: Energy (AC) generated by the PV system over an incremental period.
Unit: Watt Hours (Wh)
Type: Float
PV AC Energy Generated (Lifetime)
Point: pv_ac_energy_generated_lifetime
Description: Energy (AC) generated by the PV over the measurement lifetime.
Unit: Watt Hours (Wh)
Type: Float
HTTP Response Status Codes
The Qcells API uses conventional HTTP response status codes to indicate the success or failure of an API request. The status codes used by the Qcells API are described below:
200 Success: The request was successful.
400 Bad Request: The server cannot or will not process the request due to something that is perceived to be a client error.
401 Unauthorized: Authentication failed. Check that your authentication credentials are correct.
403 Forbidden: The request is valid, but the user does not have the permissions to access the entity requested.
404 Not Found: The request resource could not be found but may be available again in the future. Subsequent requests by the client are permissible.
405 Method Not Allowed: The response status code indicated that the server does not know the request method.
500 Internal Server Error: Please contact the Qcells support team with details about the error received.
Supported Protocol
The Qcells API is a HTTP JSON-encoded service.
Key Terminology
Device: An individual device or system located at a site.
Site: An individual site that could include one or more battery devices, with all of those devices controlled by a single logical Qcells Gateway or Qcells Controller.
Group: A collection of one or more Sites. Groups provide a method to apply control commands to multiple devices/sites or retrieve data that is aggregated across multiple devices/sites.
UUID: Universally unique identifier. Each site, group, sub-group, device, and instance has a UUID that distinguishes it from any other targets.