Skip to content

English · Deutsch · Dansk

API and integrations

Your own systems,
connected to Maci.

Maci’s API gives your own systems your sites, units, components, service history, F-gas log and alerts, so nothing has to be typed in twice. Webhooks send alerts to you the moment they happen.

What the API covers

The data you already
have in Maci.

Sites and units

Every site and refrigeration unit, with refrigerant, charge and CO2 equivalent.

Components

Compressors, fans, valves and controllers, and when one is replaced.

Service history

Read the service entries, and add your own from your systems.

F-gas log and status

Leak checks and refills, the interval and when the next check is due.

Photos and nameplates

Photos of a unit and what was read from its nameplate.

Alerts

The alerts from Maci Intelligence: fetch them, acknowledge them and close them from your own system.

Invoice bases

For service companies: the invoice basis made from a service report, ready for your accounting system.

A sandbox

Test data of your own, so you can build before you touch production.

The API gives the alerts from Maci Intelligence. The readings themselves are not in the API.

Rather ask Claude or ChatGPT in plain words? An assistant can read the same data, with no code. Maci for AI assistants

Examples

A few lines
to get started.

Two of the API’s calls, with the answers from its documentation, and what an alert webhook brings you.

curl https://api.maci.energy/v1/units?limit=50 \
  -H "Authorization: Bearer maci_live_…"

{
  "data": [
    {
      "id": "0b6f4c1e-5a1d-4a57-9f0e-2f6f3f0c9a11",
      "public_id": "MC-0482",
      "name": "Cold room 2",
      "category": "cold_room",
      "status": "active",
      "site_id": "5d0c7e52-8a0b-4c3e-b1a4-7c1f6a2d9e30",
      "refrigerant": "R449A",
      "charge_kg": 42,
      "co2e_tonnes": 58.7
    }
  ],
  "next_cursor": null
}

How it works

Keys, limits
and versions.

  • Your admins create, rotate and delete keys in the app, and a key is shown only once
  • A key for production and one for the sandbox, with the same addresses and answers
  • 60 calls a minute for each key
  • Versions in the address (/v1), and an old version keeps working for at least 12 months after notice
  • The API reaches units with Maci Service Premium
Read the documentation

Webhooks

Hear about an alert
the moment it happens.

Your system does not have to keep asking. Set an address of your own in the app, and Maci posts each event to it, signed with a secret only you and Maci know.

  • Alerts: alarm.raised, alarm.cleared, alarm.acknowledged and alarm.closed, for the owner and for the refrigeration company on watch
  • Invoice bases: invoice_draft.approved, when a technician approves the basis from a service report
  • Each call is signed with HMAC-SHA256 in the header X-Maci-Signature, so your system can tell it comes from Maci
  • If your system does not answer, Maci tries again: an alert for about 45 minutes, an invoice basis for about 2 and a half hours
  • The SMS and email to the people on the list are sent as before, whether or not the webhook answers
Webhooks in the documentation

Book a demo

See Maci on
your own systems.

We’ll show you how Maci would watch your systems, and what it would cost.

Book a demo
Book a demo