API Ingest Methods
In cases where data collection cannot be directed through the on site EkkoLink, then data can be imported directly into EkkoSoft Critical via one of 2 methods:
Type | Overview | Purpose |
|---|---|---|
PUSH | Client sends the data to EkkoSoft | This method is where the client provides data directly to EkkoSoft by sending the data into the cloud to a dedicated endpoint. This will typically be via a POST request. EkkoSense provide a standard format for supplying data into the EkkoSoft. Alternatively, a client may provide data using their own format (provided it is JSON). Note that this will require bespoke development work from Ekkosense prior to implementation |
PULL | EkkoSoft retrieve the data from client | This method requires the client to have, or develop, an API service which EkkoSoft can poll from to collect the data. This will typically be via a GET request. EkkoSoft have already integrated with a number of public API services from co-lo facilities. |
PUSH method
Below is an overview of components that make up the EkkoSoft API ingest mechanism:

Requirements and Set Up
There are 4 key requirements for configuring the EkkoSoft Critical API. You will need:
The API ingest URL
An active API ingest key
The site Uuid for the site you wish to ingest data to
Configure the API driver within EkkoSoft
URL
The URLs listed below are required in order to export data via the API. Please ensure that you check the region that applies to the instance of EkkoSoft Critical that you are using:
Region | URL | Status |
|---|---|---|
EMEA | https://ingest-api.emea.critical.ekkosoft.co.uk/import/[siteUUid] | ACTIVE |
US | https://ingest-api.us.critical.ekkosoft.co.uk/import/[siteUUid] | INACTIVE |
UK | https://ingest-api.uk.critical.ekkosoft.co.uk/import/[siteUUid] | INACTIVE |
Authentication via API key
Each request must be authenticated via an API key. API keys are generated at organization level:
Note: API keys can only be generated by Organization Administrators.
An active API Ingest key will enable data to be accessed for all sites within that organization.
To generate a API token as an Organization Administrator, you will need to enter the Admin area of EkkoSoft and click on API Ingest Token in the left hand menu.

This will then show a list of all existing API Ingest tokens available for the organization. To create a new key, click Create API Key and enter the description of how the key is to be used.


Upon creation, the page will display your API key, which you must copy. This key will never be shown again. After clicking DONE your key is now active.

Please note: It is recommended that you revoke any API keys on a regular basis (e.g every 6 months)
Site Uuid
Each site, room and item within EkkoSoft Critical has a Uuid (Universally unique identifier).
Site Uuids can be found in the Admin area by visiting the Sites page and finding the relevant site(s) within the sites table.
Configure the API driver in EkkoSoft
The API driver to be used will need to be configured within EkkoSoft prior to the posting of any data. This binds data ingestion to a specific site and determines which method of data ingestion is going to be used.
Note: You will need to contact Ekkosense support to get this activated once your data import format has been approved.
Data Import Format
There are 2 key endpoints for sending data into EkkoSoft, 1 which provides configuration details (importReadingsWithMetadata) and a smaller, optional format, (importReadings) that just provides readings data against a unique sensor identifier (this is purely to minimise the size of the data transfer for particularly large requests)
Endpoint | Data supported | Service | Authentication | Protocols |
|---|---|---|---|---|
importReadingsWithMetadata | Readings + configuration | API Push receiver | API push key | JSON-RPC (POST) |
importReadings | Readings (+ configuration removal only) | API Push Receiver | API push key | JSON-RPC (POST) |
importReadingsWithMetadata
Please note: Key Considerations:
This is a larger data format, so it’s important that you consider compressing your request using DEFLATE or gzip if using this scheme. Documents over 10MB will not be supported, to limit the possible resources consumed.
Sensor names must be unique
Sensor names must not change
Any sensors which are not mentioned in a request will be removed. If a sensor just has no readings, it must be included at least once in the request without the “value” property.
A ‘global’ timestamp must be provided with each request, prior to the array which will include the sensor information. If any sensor does not have an accompanying timestamp, then the ‘global’ timestamp will be used for that sensor value.
This method provides both the readings data and some accompanying metadata to provide the context for the readings with each request that is sent. It is typically used for configuration purposes to enable EkkoSoft to translate the data prior to mapping within EkkoSoft :Mapping sensors to items
The params must be in the format below:
interface ReadingWithMetadata {
timestamp: string,
sensor: string,
label: string,
units: enum,
value: number
}
interface ReadingImportWithMetadata {
readings: {[period: string]: ReadingWithMetadata[]}
}
period here should be the start of the data import batch timeframe, eg. some multiple of 5 minutes. For documentation purposes, this is an ISO8601 date-time.
timestamp will be an ISO8601 date-time. If this is not supplied, the period timestamp will be used with a presumption that all such readings to belong in the block.
sensor is an arbitrarily chosen unique identifier for the sensor, as noted in the example below. If multiple readings for the same sensor appear in a period-readings block, they may be aggregated or the extra readings may be ignored.
Readings will be stored with the timestamp of the start of the reading interval (5-minute block), eg if a reading has a timestamp of 10:11:12, it will be stored as 10:10:00.
Readings will be dropped if the value is invalid, as will associated configuration details for that sensor.
Example
{
"jsonrpc": "2.0",
"method": "importReadingsWithMetadata",
"params": {
"readings": {
"2001-12-31T12:30:00Z": [
{
timestamp: "2001-12-31T12:34:56Z",
sensor: "r5-top-temp-0",
label: "Temperature (rack r5 top)",
units: "C",
value: 35.8
},
{
timestamp: "2001-12-31T12:32:12Z",
sensor: "r5-pdu-power",
label: "PDU power (Rack r5)",
units: "kW",
value: 128.5
},
{
sensor: "r5-pdu-current",
label: "PDU current (Rack r5)",
units: "A",
value: 534
}
]
}
}
}
importReadings
This is an optional method to limit the size of the request as it only provides only the readings data. It should only be used following completion of sensor configuration using https://ekkosense.atlassian.net/wiki/spaces/ESG/pages/3570860033/API+Ingest+Methods#importReadingsWithMetadata
The params must be in the format below:
interface Reading {
timestamp?: string,
sensor: string,
value: number,
}
interface ReadingImportParams {
readings: {[period: string]: Reading[]}
}
Example
{
"jsonrpc": "2.0",
"method": "importReadings",
"params": {
"readings": {
"2001-12-31T12:30:00Z": [
{
timestamp: "2001-12-31T12:34:56Z",
sensor: "r5-top-temp-0",
value: 35.8
},
{
timestamp: "2001-12-31T12:32:12Z",
sensor: "r5-pdu-power",
value: 128.5
},
{
sensor: "r5-pdu-current",
value: 534
}
]
}
}
}
importSimpleReadings
This is a further simplification which removes the timestamp requirement. Any data pushed to EkkoSoft will timestamped at the time that the data is received. This method is not recommended unless timestamp information can not be made available.
Example
{
"jsonrpc": "2.0",
"method": "importSimplehttps://ekkosense.atlassian.net/wiki/spaces/ESG/pages/edit-v2/3570860033#importReadingsWithMetadataReadings",
"params": {
"readings": {
"2001-12-31T12:30:00Z": [
{
timestamp: "2001-12-31T12:34:56Z",
sensor: "r5-top-temp-0",
value: 35.8
},
{
timestamp: "2001-12-31T12:32:12Z",
sensor: "r5-pdu-power",
value: 128.5
},
{
sensor: "r5-pdu-current",
value: 534
}
]
}
}
}
Supported (SI) Units
The following table lists the supported unit types within the EkkoSoft Push API ingest service. Any units presented in a request that do not match this list will be ignored.
Value | Notes | Implementation notes | Default EkkoSoft Mapping |
|---|---|---|---|
| Celsius | Stored as is | Temperature |
| Fahrenheit | Will need to be converted to Celcius for storage ([value]-32)/1.8 | Temperature |
| % RH | Specifically for relative humidity | RH |
| Watts | Will need to be converted to kW for storage 1000 x [value] | Power |
| Watt-hours | Will need to be converted to kWh for storage 1000 x [value] | Energy |
| kiloWatts | Stored as is | Power |
| kiloWatt hours | Stored as is | Energy |
| Volts | Stored as is | Voltage |
| Amps | Stored as is | Amps |
| Power Factor | Stored as is (readings should be between 0.000 and 1.000) | Power Factor |
| Percentage (e.g. for fan speed) | Stored as is | Fan Speed |
| For alarms and status | Stored as 0 or 1 (as is) | Status |
| For status | Stored as 0 or 1 (as is) | Status |
| For alarms and status | Stored as 0 or 1 (as is) | Major Alarm |
PULL method
Below is an overview of components that make up the EkkoSoft API ingest mechanism for polling data from an existing client API service:

For more details on using an existing API service, please contact Ekkosense support.
Customers interested on providing data via their own API service should contact the EkkoSense support team. The following information will then be required:
Confirmation of the type of data that is to be provided via an API
Confirmation of how EkkoSense would access the API
Is it a public or private API? (i.e. available to many organizations or a dedicated one for Ekkosense)
How would authentication work for EkkoSense? Is a subscription required?
Is there any supporting documentation or examples
Confirmation of the schema of the API
It is important to be able to test the format of the API as Ekkosense will require to complete development works to integrate with the EkkoSoft platform. This is to allow for additional items to be added and managed directly within EkkoSoft at a later date
This can be provisioned as a JSON file, showing the response format, or access to a development platform (if a public API)
Quick Navigation
Go back to Administration Area
Return to Contents