Enectiva REST API - Librarian
HomeEnectivaUser ManualEnerfis
HomeEnectivaUser ManualEnerfis
  1. Data points to Enectiva
  • Introduction
  • Access tokens
    • Create a new access token
      POST
  • Data points from Enectiva
    • List data points of a data series
      GET
  • Deltas
    • Introduction to Deltas
    • List monthly deltas of an entity
      GET
    • List monthly deltas of a meter
      GET
    • List monthly deltas of a virtual meter
      GET
  • Data points to Enectiva
    • Latest data point
      GET
    • Create a new data point
      POST
    • Delete a data point by ID
      DELETE
    • Delete a data point by time
      DELETE
  • Profiles to Enectiva
    • Latest profile
      GET
    • Create a new/update an existing profile
      POST
    • Delete a profile by ID
      DELETE
    • Delete a profile by time range
      DELETE
  • Readings to Enectiva
    • Latest reading
      GET
    • Create a new reading
      POST
    • Delete a reading by ID
      DELETE
    • Delete a reading by time
      DELETE
  • Entities from Enectiva
    • List entities
      GET
    • Entity
      GET
  • Readings from Enectiva
    • List readings of a meter
      GET
  • Meters from Enectiva
    • List meters
    • Meter
  • Received energy invoices
    • Create a new invoice
  1. Data points to Enectiva

Create a new data point

POST
https://api.enectiva.cz//import/data_points/{customerId}
Last modified:2025-09-10 07:40:09
This endpoint enables clients to add new data points in custom data series to Enectiva. Each data point is sent in a separate HTTP request. There's no recommended frequency of data points sent because it depends on the time series, but too frequent requests might lead to rate limiting (429).
The data points should be sent in chronological order. Data points with time before the latest data point in any given series will be accepted, but might not be used by Enectiva.
Each data point must satisfy validation rules:
time, value and import_id are required
time must conform to format defined in RFC3339, the time will be truncated to whole seconds
value has to be a floating point number; we recommend sending only reasonable number of digits after the decimal point
import_id is limited to 255 characters, it is case-sensitive, must not contain spaces
sender is a case-sensitive string limited to 255 characters used for debugging and verification
suit is an optional string identifying the series of readings, if not provided default will be used, must not contain spaces
data point must be in the past
For testing integration of a new client, we recommend using dummy series IDs (e.g. test).
An attempt to insert an identical data point (the same import_id, suit, time and value) will result in 409 status code.
This endpoint requires an import token, not an access token.

Request

Authorization
OAuth 2.0
Authorization Code
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Authorize URL: https://app.enectiva.cz/en/api/dashboard
Token URL: No token URL is provided. Use "Import token" from the Auth URL
or
Path Params

Header Params

Body Params application/vnd.api+json

Example
{
  "data": {
    "type": "data_points",
    "attributes": {
      "time": "2016-01-07T05:23:41+01:00",
      "value": 550011.34,
      "import_id": "temp_01",
      "sender": "test_script_01",
      "suit": "default"
    }
  }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.enectiva.cz//import/data_points/' \
--header 'Accept: application/vnd.api+json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
  "data": {
    "type": "data_points",
    "attributes": {
      "time": "2016-01-07T05:23:41+01:00",
      "value": 550011.34,
      "import_id": "temp_01",
      "sender": "test_script_01",
      "suit": "default"
    }
  }
}'

Responses

🟢201Created
application/vnd.api+json
Created
Body

Example
{
    "data": {
        "attributes": {
            "customer_uuid": "11e7e767-6f74-4994-b607-158ff7f7445e",
            "import_id": "temp_01",
            "sender": "test_script_01",
            "suit": "default",
            "time": "2016-01-07T05:23:41+01:00",
            "value": 550011.34
        },
        "id": 1,
        "type": "data_points"
    }
}
🟠400Bad Request
🟠401Unauthorized
🟠406Not Acceptable
🟠409Conflict
🟠415Unsupported Media Type
🟠429Too Many Requests
🔴500Server Error
Modified at 2025-09-10 07:40:09
Previous
Latest data point
Next
Delete a data point by ID
Built with