Base URL: https://api.archibliss.com/v1
This document is also published as a page to read, at https://www.archibliss.com/wiki/api/. Its version changes with every change to the API, and the changes are listed at the end of this description.
Read-only access to the measurements of your own meters, as the meter measured them: no averages, no gaps filled. Electrical measurements come one row per second; harmonics, about every 5 seconds.
Authentication: send your key in every request, Authorization: Bearer <key>. Keep it secret: anyone who has it reads what it reads. A key reads only the organizations it was granted, and each device only for the time it belonged to that organization. Responses to an authenticated request carry X-Key-Expires-At: renew the key before that time.
Each key can make at most 5 requests per second, with bursts of up to 10; past that the answer is 429 with Retry-After. You decide when and what to ask: there is no subscription and no record of what you already fetched. Asking for the same period again returns the same rows, so overlapping requests are safe.
Times are ISO 8601 in UTC (2026-10-04T15:00:00Z). Units are in each field's description.
Measurement not verified: when the meter could not confirm that it was measuring with its own calibration, the period is marked. The rows of that period are served as the meter sent them, and every page of /energy and /harmonics carries in flags the marked periods that cross what you asked; /flags lists them alone. Treat the rows inside a marked period as not verified.
Every response carries an X-Request-Id header. Quote it when reporting a problem. Errors follow RFC 9457 (Problem Details): application/problem+json, also when the request is rejected before it reaches the service (a malformed request line or header: 400; a URI that is too long: 414). One known exception: a request so broken that it cannot be told which site it is for gets the server's generic error. A 429 or a 503 with Retry-After is temporary (too many requests, or the measurements momentarily unavailable while the server is busy): wait those seconds and repeat the same request.
flags in every page of /energy and /harmonics, and a new path /organizations/{id_org}/devices/{id_hw}/flags. Each mark carries its start and end, its kind (today always an episode of the meter's chip; power_cut is reserved), and whether the start or the end is estimated. Nothing else changed: the rows and links are the same as before.links.next past to, to the first rows after a gap of up to 7 days, in a window of the length you asked. Pages with rows did not change. This contract is also published as a page to read, at https://www.archibliss.com/wiki/api/, and https://api.archibliss.com/ links to that page and to this contract./healthService status (no key)
Answers while the service is up. Requires no key and reads no data.
| Status | Description | Content |
|---|---|---|
| 200 | The service is up. | application/json Health |
| default | Error (RFC 9457). | application/problem+json Problem |
/openapi.yamlThis contract (no key)
The OpenAPI document that describes this version of the API.
| Status | Description | Content |
|---|---|---|
| 200 | The contract, in YAML. | application/yaml string |
| default | Error (RFC 9457). | application/problem+json Problem |
/organizationsThe organizations your key can read (key required)
| Status | Description | Content |
|---|---|---|
| 200 | The organizations granted to your key. | application/json object |
| default | Error (RFC 9457). | application/problem+json Problem |
/organizations/{id_org}/devicesThe devices of an organization (key required)
Each device with the periods it belonged to the organization. A device moved to another site appears with one period per site. Data outside these periods is not this organization's and is never returned.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id_org | path | yes | string | Identifier of the organization, as listed by /organizations. |
| Status | Description | Content |
|---|---|---|
| 200 | The devices of the organization. | application/json object |
| default | Error (RFC 9457). | application/problem+json Problem |
/organizations/{id_org}/devices/{id_hw}/energyElectrical measurements of a device, one row per second (key required)
The rows between from (included) and to (excluded), oldest first, in pages of at most one hour. When links.next is not null, request it to continue; when it is null, you have everything up to to. Times must be between 1970 and 2100, the range from from to to can be at most 7 days (ask a longer period in parts), and to is cut at one hour from now (there is no data from the future). Hours with no measurements are skipped, so a page is empty only when there is nothing more up to to. An empty page can still have links.next: it then points past to, to the first rows after a gap of up to 7 days, with a window of the same length as the one asked, so a client that walks one period after another gets past a long gap by following it. A field the meter did not send is null. Rows that the meter or the server marked as not trustworthy (for example, with a wrong clock) are not served: they look like a gap. Each parameter can appear once.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id_org | path | yes | string | Identifier of the organization, as listed by /organizations. |
id_hw | path | yes | string | Hardware identifier of the device, as listed by /organizations/{id_org}/devices. |
from | query | yes | string (format date-time) | Start, included. ISO 8601 with offset, for example 2026-10-04T15:00:00Z. |
to | query | yes | string (format date-time) | End, excluded. ISO 8601 with offset. |
fields | query | string | Comma separated fields or groups to return, for example power.active,energy or voltage.v1. The identifiers (id_hw, id_org, id_site, id_device) are returned only if named, or when fields is omitted. Omitted: everything. ts is always returned. |
| Status | Description | Content |
|---|---|---|
| 200 | One page of measurements. | application/json EnergyPage |
| default | Error (RFC 9457). | application/problem+json Problem |
/organizations/{id_org}/devices/{id_hw}/harmonicsHarmonics of a device, about every 5 seconds (key required)
Same rules as /energy (from included, to excluded, pages of at most one hour, links.next, empty hours skipped, an empty page whose links.next points past a gap, only the device's time in the organization). Each row is one instant with, for the voltage and for the current of each channel, the total harmonic distortion and harmonics 2 to 32 as a percent of the fundamental. Voltage entries come for the three channels; current entries only for channels with a clamp.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id_org | path | yes | string | Identifier of the organization, as listed by /organizations. |
id_hw | path | yes | string | Hardware identifier of the device, as listed by /organizations/{id_org}/devices. |
from | query | yes | string (format date-time) | Start, included. ISO 8601 with offset, for example 2026-10-04T15:00:00Z. |
to | query | yes | string (format date-time) | End, excluded. ISO 8601 with offset. |
fields | query | string | Comma separated values to return for each entry, for example thd_dft,h3,h5,h7. The identifiers (id_hw, id_org, id_site, id_device) are returned only if named, or when fields is omitted. Omitted: everything. ts and the voltage/current and channel structure are always returned. |
| Status | Description | Content |
|---|---|---|
| 200 | One page of harmonics. | application/json HarmonicsPage |
| default | Error (RFC 9457). | application/problem+json Problem |
/organizations/{id_org}/devices/{id_hw}/flagsMarked periods of a device, «measurement not verified» (key required)
The periods between from (included) and to (excluded) in which the meter could not confirm that it was measuring with its own calibration, oldest first, only for the time the device belonged to the organization. A period that crosses from or to comes whole, cut only to that time. The same rules for from and to as /energy (at most 7 days, each parameter once). The same periods come in the flags of every page of /energy and /harmonics.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
id_org | path | yes | string | Identifier of the organization, as listed by /organizations. |
id_hw | path | yes | string | Hardware identifier of the device, as listed by /organizations/{id_org}/devices. |
from | query | yes | string (format date-time) | Start, included. ISO 8601 with offset, for example 2026-10-04T15:00:00Z. |
to | query | yes | string (format date-time) | End, excluded. ISO 8601 with offset. |
| Status | Description | Content |
|---|---|---|
| 200 | The marked periods. | application/json object |
| default | Error (RFC 9457). | application/problem+json Problem |
Type: object
| Field | Type | Required | Description |
|---|---|---|---|
kind | string (enum ['chip_episode', 'power_cut']) | yes | What was marked. chip_episode: the meter could not confirm its calibration. power_cut: reserved, not used yet. |
from | string (format date-time) | yes | Start of the period, or of the part of it inside the time the device belonged to the organization. |
to | string or null (format date-time) | yes | End, excluded. Null while the period is still open. |
start_estimated | boolean | yes | True when the meter did not give a usable start and the period starts when the server first heard of it: the real start can be earlier. |
end_estimated | boolean | yes | True when the meter did not give a usable end and the period ends when the server heard it was over: the real end can be earlier. |
Type: object
| Field | Type | Required | Description |
|---|---|---|---|
data | array of HarmonicsRow | yes | |
flags | array of Flag | yes | The marked periods «measurement not verified» that cross what you asked (from from to to, not only this page), oldest first. Empty when there is none. |
links | object | yes | |
links.next | string or null | yes | Path of the next page. On a page with no rows, the first rows after to (a gap of up to 7 days) in a window of the asked length. Null when there is nothing more up to to and, on a page with no rows, nothing either in the 7 days after it. |
thd_dft is the total harmonic distortion; h2 to h32 are each harmonic as a percent of the fundamental.
Type: object
Type: object
| Field | Type | Required | Description |
|---|---|---|---|
ct1 | HarmonicsEntry | ||
ct2 | HarmonicsEntry | ||
ct3 | HarmonicsEntry |
Type: object
| Field | Type | Required | Description |
|---|---|---|---|
ts | string (format date-time) | yes | Time of the measurement, UTC. |
id_hw | string or null | ||
id_org | string or null | ||
id_site | string or null | ||
id_device | string or null | ||
voltage | HarmonicsByChannel | Harmonics of the voltage of each channel, %. | |
current | HarmonicsByChannel | Harmonics of the current of each channel with a clamp, %. |
Type: object
| Field | Type | Required | Description |
|---|---|---|---|
id_org | string | yes | |
name | string | yes |
Type: object
| Field | Type | Required | Description |
|---|---|---|---|
id_hw | string | yes | |
periods | array of object | yes |
Type: object
| Field | Type | Required | Description |
|---|---|---|---|
data | array of EnergyRow | yes | |
flags | array of Flag | yes | The marked periods «measurement not verified» that cross what you asked (from from to to, not only this page), oldest first. Empty when there is none. |
links | object | yes | |
links.next | string or null | yes | Path of the next page. On a page with no rows, the first rows after to (a gap of up to 7 days) in a window of the asked length. Null when there is nothing more up to to and, on a page with no rows, nothing either in the 7 days after it. |
Type: number or null
Each value comes twice: as the meter rounds it (ct1, ct2, ct3, total) and at full resolution (the same names ending in _highres). Use _highres to compute ratios or differences.
Type: object
| Field | Type | Required | Description |
|---|---|---|---|
ct1 | Value | ||
ct2 | Value | ||
ct3 | Value | ||
total | Value | ||
ct1_highres | Value | ||
ct2_highres | Value | ||
ct3_highres | Value | ||
total_highres | Value |
Type: object
| Field | Type | Required | Description |
|---|---|---|---|
ct1 | Value | ||
ct2 | Value | ||
ct3 | Value | ||
total | Value |
Type: object
| Field | Type | Required | Description |
|---|---|---|---|
ct1 | Value | ||
ct2 | Value | ||
ct3 | Value |
Type: object
| Field | Type | Required | Description |
|---|---|---|---|
ts | string (format date-time) | yes | Time of the measurement, UTC. |
id_hw | string or null | ||
id_org | string or null | ||
id_site | string or null | ||
id_device | string or null | ||
freq | Value | Line frequency, Hz. | |
voltage | object | RMS voltage of each phase, V; the _highres names are the same values at full resolution. | |
voltage.v1 | Value | ||
voltage.v2 | Value | ||
voltage.v3 | Value | ||
voltage.v1_highres | Value | ||
voltage.v2_highres | Value | ||
voltage.v3_highres | Value | ||
current | object | RMS current, A. ctn is the neutral clamp; neutral_calc is the neutral calculated from the phases; the _highres names are the same values at full resolution. | |
current.ct1 | Value | ||
current.ct2 | Value | ||
current.ct3 | Value | ||
current.ctn | Value | ||
current.neutral_calc | Value | ||
current.ct1_highres | Value | ||
current.ct2_highres | Value | ||
current.ct3_highres | Value | ||
power | object | The plain values are rounded by the meter to 1 W (0.001 kW): fine to show and to add up, but a ratio or a difference computed from them can be off by up to 2 % at low load (about 150 W), 0.2 % at high load; for that, use the _highres values. For the power factor use factor, which the meter measures. | |
power.active | PowerPerChannel | Active power, kW. | |
power.reactive | PowerPerChannel | Reactive power, kvar. | |
power.apparent | PowerPerChannel | Apparent power, kVA; total is the arithmetic sum of the phases. | |
power.active_fundamental | PowerPerChannel | Active power of the fundamental (the line frequency), kW. | |
power.active_harmonic | PowerPerChannel | Active power carried by the harmonics, kW. | |
power.factor | PerChannelTotal | Power factor, -1 to 1. | |
power.apparent_vector | Value | Total apparent power as the vector sum of the phases, kVA. | |
power.apparent_vector_highres | Value | The same at full resolution, kVA. | |
energy | object | Energy measured since the previous row (not a running counter): add rows up to get a period's energy. Normally that is one second, but after a gap (a restart, a network outage) the first row carries the energy of the whole gap, so do not divide a row by one second to get power: use power for that. | |
energy.active_import | PerChannelTotal | Active energy, forward direction, kWh. | |
energy.active_export | PerChannelTotal | Active energy, reverse direction, kWh. | |
energy.reactive_import | PerChannelTotal | Reactive energy, forward direction, kvarh. | |
energy.reactive_export | PerChannelTotal | Reactive energy, reverse direction, kvarh. | |
energy.apparent | PerChannelTotal | Apparent energy, arithmetic sum of the phases, kVAh. | |
energy.apparent_vector | Value | Total apparent energy as the vector sum of the phases, kVAh. | |
quality | object | ||
quality.voltage_thd | PerChannel | Total harmonic distortion of voltage, %. | |
quality.current_thd | PerChannel | Total harmonic distortion of current, %. | |
quality.phase_angle | PerChannel | Angle between voltage and current of each channel, degrees. | |
quality.voltage_angle | PerChannel | Angle of each voltage against V1, degrees. |
Type: object
| Field | Type | Required | Description |
|---|---|---|---|
status | string (const ok) | yes |
Type: object
| Field | Type | Required | Description |
|---|---|---|---|
type | string | yes | URI that identifies the kind of problem; about:blank when the HTTP status says it all. |
title | string | yes | Short summary of the kind of problem. |
status | integer | yes | |
detail | string | Explanation of this occurrence, for a person. | |
instance | string | Path of the request that failed. | |
request_id | string (pattern ^[0-9a-f]{32}$) | yes |