Archibliss API 1.2.0

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.

Changes

Endpoints

GET /health

Service status (no key)

Answers while the service is up. Requires no key and reads no data.

Responses

StatusDescriptionContent
200The service is up.application/json Health
defaultError (RFC 9457).application/problem+json Problem

GET /openapi.yaml

This contract (no key)

The OpenAPI document that describes this version of the API.

Responses

StatusDescriptionContent
200The contract, in YAML.application/yaml string
defaultError (RFC 9457).application/problem+json Problem

GET /organizations

The organizations your key can read (key required)

Responses

StatusDescriptionContent
200The organizations granted to your key.application/json object
defaultError (RFC 9457).application/problem+json Problem

GET /organizations/{id_org}/devices

The 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.

Parameters

NameInRequiredTypeDescription
id_orgpathyesstringIdentifier of the organization, as listed by /organizations.

Responses

StatusDescriptionContent
200The devices of the organization.application/json object
defaultError (RFC 9457).application/problem+json Problem

GET /organizations/{id_org}/devices/{id_hw}/energy

Electrical 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.

Parameters

NameInRequiredTypeDescription
id_orgpathyesstringIdentifier of the organization, as listed by /organizations.
id_hwpathyesstringHardware identifier of the device, as listed by /organizations/{id_org}/devices.
fromqueryyesstring (format date-time)Start, included. ISO 8601 with offset, for example 2026-10-04T15:00:00Z.
toqueryyesstring (format date-time)End, excluded. ISO 8601 with offset.
fieldsquerystringComma 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.

Responses

StatusDescriptionContent
200One page of measurements.application/json EnergyPage
defaultError (RFC 9457).application/problem+json Problem

GET /organizations/{id_org}/devices/{id_hw}/harmonics

Harmonics 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.

Parameters

NameInRequiredTypeDescription
id_orgpathyesstringIdentifier of the organization, as listed by /organizations.
id_hwpathyesstringHardware identifier of the device, as listed by /organizations/{id_org}/devices.
fromqueryyesstring (format date-time)Start, included. ISO 8601 with offset, for example 2026-10-04T15:00:00Z.
toqueryyesstring (format date-time)End, excluded. ISO 8601 with offset.
fieldsquerystringComma 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.

Responses

StatusDescriptionContent
200One page of harmonics.application/json HarmonicsPage
defaultError (RFC 9457).application/problem+json Problem

GET /organizations/{id_org}/devices/{id_hw}/flags

Marked 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.

Parameters

NameInRequiredTypeDescription
id_orgpathyesstringIdentifier of the organization, as listed by /organizations.
id_hwpathyesstringHardware identifier of the device, as listed by /organizations/{id_org}/devices.
fromqueryyesstring (format date-time)Start, included. ISO 8601 with offset, for example 2026-10-04T15:00:00Z.
toqueryyesstring (format date-time)End, excluded. ISO 8601 with offset.

Responses

StatusDescriptionContent
200The marked periods.application/json object
defaultError (RFC 9457).application/problem+json Problem

Schemas

Flag

Type: object

FieldTypeRequiredDescription
kindstring (enum ['chip_episode', 'power_cut'])yesWhat was marked. chip_episode: the meter could not confirm its calibration. power_cut: reserved, not used yet.
fromstring (format date-time)yesStart of the period, or of the part of it inside the time the device belonged to the organization.
tostring or null (format date-time)yesEnd, excluded. Null while the period is still open.
start_estimatedbooleanyesTrue 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_estimatedbooleanyesTrue 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.

HarmonicsPage

Type: object

FieldTypeRequiredDescription
dataarray of HarmonicsRowyes
flagsarray of FlagyesThe 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.
linksobjectyes
links.nextstring or nullyesPath 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.

HarmonicsEntry

thd_dft is the total harmonic distortion; h2 to h32 are each harmonic as a percent of the fundamental.

Type: object

HarmonicsByChannel

Type: object

FieldTypeRequiredDescription
ct1HarmonicsEntry
ct2HarmonicsEntry
ct3HarmonicsEntry

HarmonicsRow

Type: object

FieldTypeRequiredDescription
tsstring (format date-time)yesTime of the measurement, UTC.
id_hwstring or null
id_orgstring or null
id_sitestring or null
id_devicestring or null
voltageHarmonicsByChannelHarmonics of the voltage of each channel, %.
currentHarmonicsByChannelHarmonics of the current of each channel with a clamp, %.

Organization

Type: object

FieldTypeRequiredDescription
id_orgstringyes
namestringyes

Device

Type: object

FieldTypeRequiredDescription
id_hwstringyes
periodsarray of objectyes

EnergyPage

Type: object

FieldTypeRequiredDescription
dataarray of EnergyRowyes
flagsarray of FlagyesThe 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.
linksobjectyes
links.nextstring or nullyesPath 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.

Value

Type: number or null

PowerPerChannel

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

FieldTypeRequiredDescription
ct1Value
ct2Value
ct3Value
totalValue
ct1_highresValue
ct2_highresValue
ct3_highresValue
total_highresValue

PerChannelTotal

Type: object

FieldTypeRequiredDescription
ct1Value
ct2Value
ct3Value
totalValue

PerChannel

Type: object

FieldTypeRequiredDescription
ct1Value
ct2Value
ct3Value

EnergyRow

Type: object

FieldTypeRequiredDescription
tsstring (format date-time)yesTime of the measurement, UTC.
id_hwstring or null
id_orgstring or null
id_sitestring or null
id_devicestring or null
freqValueLine frequency, Hz.
voltageobjectRMS voltage of each phase, V; the _highres names are the same values at full resolution.
voltage.v1Value
voltage.v2Value
voltage.v3Value
voltage.v1_highresValue
voltage.v2_highresValue
voltage.v3_highresValue
currentobjectRMS 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.ct1Value
current.ct2Value
current.ct3Value
current.ctnValue
current.neutral_calcValue
current.ct1_highresValue
current.ct2_highresValue
current.ct3_highresValue
powerobjectThe 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.activePowerPerChannelActive power, kW.
power.reactivePowerPerChannelReactive power, kvar.
power.apparentPowerPerChannelApparent power, kVA; total is the arithmetic sum of the phases.
power.active_fundamentalPowerPerChannelActive power of the fundamental (the line frequency), kW.
power.active_harmonicPowerPerChannelActive power carried by the harmonics, kW.
power.factorPerChannelTotalPower factor, -1 to 1.
power.apparent_vectorValueTotal apparent power as the vector sum of the phases, kVA.
power.apparent_vector_highresValueThe same at full resolution, kVA.
energyobjectEnergy 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_importPerChannelTotalActive energy, forward direction, kWh.
energy.active_exportPerChannelTotalActive energy, reverse direction, kWh.
energy.reactive_importPerChannelTotalReactive energy, forward direction, kvarh.
energy.reactive_exportPerChannelTotalReactive energy, reverse direction, kvarh.
energy.apparentPerChannelTotalApparent energy, arithmetic sum of the phases, kVAh.
energy.apparent_vectorValueTotal apparent energy as the vector sum of the phases, kVAh.
qualityobject
quality.voltage_thdPerChannelTotal harmonic distortion of voltage, %.
quality.current_thdPerChannelTotal harmonic distortion of current, %.
quality.phase_anglePerChannelAngle between voltage and current of each channel, degrees.
quality.voltage_anglePerChannelAngle of each voltage against V1, degrees.

Health

Type: object

FieldTypeRequiredDescription
statusstring (const ok)yes

Problem

Type: object

FieldTypeRequiredDescription
typestringyesURI that identifies the kind of problem; about:blank when the HTTP status says it all.
titlestringyesShort summary of the kind of problem.
statusintegeryes
detailstringExplanation of this occurrence, for a person.
instancestringPath of the request that failed.
request_idstring (pattern ^[0-9a-f]{32}$)yes