Pushing data
Send values and meter readings from a building management system, an energy portal, an ERP or a spreadsheet. They go through the same checks as the website.
Before you start
You need a token that can record values, and a role with data.enter at the property. Find the property's id with GET /properties, the measure's code and point with GET /measures, and for a metered measure the meter's id with GET /meters.
Send a batch
POST /data-points takes up to 100 items. Each is a value for a period, or a meter reading, and carries your own idempotencyKey.
curl -X POST "https://portal.canoprise.io/api/v1/data-points" \
-H "Authorization: Bearer cnp_…" \
-H "Content-Type: application/json" \
-d '{
"items": [
{
"idempotencyKey": "bms-2026-10-main",
"propertyId": "5f0c2a3e-8d1b-4c7a-9e2f-1a2b3c4d5e6f",
"measure": "ENV-01",
"point": 1,
"meterId": "3e1430e1-e9b1-4c4d-ac85-c43085a1b2c3",
"periodStart": "2026-10-01",
"periodEnd": "2026-11-01",
"value": 41250,
"unit": "kWh"
},
{
"idempotencyKey": "dial-2026-11-29-e1",
"propertyId": "5f0c2a3e-8d1b-4c7a-9e2f-1a2b3c4d5e6f",
"measure": "ENV-01",
"point": 1,
"meterId": "3e1430e1-e9b1-4c4d-ac85-c43085a1b2c3",
"reading": 182340,
"readAt": "2026-11-29T08:15:00Z"
},
{
"idempotencyKey": "renewable-share-2026",
"propertyId": "5f0c2a3e-8d1b-4c7a-9e2f-1a2b3c4d5e6f",
"measure": "ENV-02",
"point": 1,
"periodStart": "2026-01-01",
"periodEnd": "2027-01-01",
"value": 64
}
]
}'{
"items": [
{
"idempotencyKey": "bms-2026-10-main",
"outcome": "SAVED",
"message": null,
"dataPointId": "9b7e1c20-4f3a-4d8e-b6a1-2c3d4e5f6a7b"
},
{
"idempotencyKey": "dial-2026-11-29-e1",
"outcome": "HELD",
"message": "Saved: 3120 kWh used over 29 days. Far from the usual figure, so it is held for checking in Canoprise.",
"dataPointId": "0d4c8b2a-6e1f-4a3b-9c7d-5e6f7a8b9c0d"
},
{
"idempotencyKey": "renewable-share-2026",
"outcome": "REJECTED",
"message": "That period is locked. Ask a group administrator.",
"dataPointId": null
}
]
}| Outcome | Meaning |
|---|---|
SAVED | Saved. |
HELD | Saved, but far from the usual figure, so held for someone to check in Canoprise. It reads back as SUBMITTED with held: true. |
DUPLICATE | This key was already received on this token: nothing saved again; the first outcome and data point are given. |
REJECTED | Not saved; message says why (a locked period, a figure already there, no access to the property, and so on). |
A well-formed batch always answers 200, even when items are rejected: check each result. A malformed body or more than 100 items is 400; a body over 1 MB is 413.
Retrying safely
Make each key from your own record, for example bms-2026-10-main, so a retry after a timeout sends the same key and cannot save twice. Keys are 8 to 64 of A-Z a-z 0-9 _ - and belong to the token: two tokens can use the same key without meeting.
If an item is rejected by Canoprise's checks (a locked period, a figure already there), the key is used up: fix the item and send it with a new key. If the item itself was malformed (a bad key, an unknown measure code, neither value nor reading), nothing was used up: fix it and send it with the same key.
While another call is still working on a key, a second item with it answers REJECTED, "still being processed": try again shortly. If the call working on it stopped midway (a crash or a lost connection), the key is released after 5 minutes, and a retry after that is processed afresh.
Meter readings
Send the dial's figure as reading with the meterId and readAt; Canoprise saves the use since the last reading as the value. A meter's first reading is kept as its opening, so it answers SAVED with no data point yet. Items run in order, so several readings of one meter in a batch work out one after the other.
Locked periods and held figures
A period that has been locked (a closed year, a signed-off quarter) refuses new values: ask a group administrator in Canoprise. A figure far from the property's usual one is still saved but held for checking (HELD), exactly as when it is typed on the website.
Evidence and tasks
Attach a bill or a meter photo to a saved value with POST /data-points/{id}/evidence, as multipart/form-data in the field file, up to 25 MB. Ask someone to do something with POST /tasks; find who can be given it with GET /people/assignable.
curl -X POST "https://portal.canoprise.io/api/v1/data-points/DATA_POINT_ID/evidence" \
-H "Authorization: Bearer cnp_…" \
-F "file=@october-bill.pdf"The rules in full
Up to 100 values or meter readings, { "items": [...] }, saved in order, each on its own (a reading needs the one before it), through the same checks as the website: the person's access to the property, locked periods, one figure per meter and period, and figures far from the usual held for checking. A well-formed batch answers 200 with one result per item, in order: SAVED; HELD (saved, held for checking: it reads back as SUBMITTED with held: true); DUPLICATE (already received: nothing saved again, the first outcome and data point given); REJECTED with why. A malformed body, or more than 100 items, is 400. Needs a read-and-write token and data.enter.
A value: measure (code) and point as GET /measures gives them, periodStart, periodEnd (the day after the last; one day when left out), value, unit (the measure's own when left out); a meter's value also names its meterId. A reading: meterId and reading (the dial), with readAt; use since the last reading is saved as the value. A meter's first reading is kept as its opening (SAVED, no data point yet). Types entered through the API: METER, PCT, COUNT, MONEY, SCORE, BOOL; others answer REJECTED "This measure is not entered through the API." (documents and files go through evidence).
Idempotency: each item's idempotencyKey (8 to 64 of A-Z a-z 0-9 _ -) is scoped to the token: the same key on another token is another item. The same key again on this token answers DUPLICATE with the first outcome. An item rejected by Canoprise's own checks (access to the property, a locked period, the meter, the period's date, the figure, a figure already there) uses up the key: a retry answers DUPLICATE with the first REJECTED outcome, so send the corrected item with a new key. A malformed item (a bad idempotencyKey, an unknown measure code, no such point, a type not entered through the API, neither value nor reading) does not use up the key: correct it and send it with the same key. An item whose key another call is still processing answers REJECTED "An item with this idempotencyKey is still being processed. Try again shortly." A key whose call stopped midway (a crash or a lost connection) is released after 5 minutes: a retry after that is processed afresh.