Appearance
The public API
Other systems, such as online forms, line-of-business systems, the migration tool and Power BI, use the public API at /api/v1. It is described by its own OpenAPI document at /openapi/public.json, kept stable for integrators and separate from the API the screens use, which changes with them.
A system needs an API client, set up by an administrator, with only the permissions it needs.
Signing in
- Send the client's secret (
ak_…) in anX-Api-Keyheader, or asAuthorization: Bearer ak_…, or - swap it for an access token:
POST /api/v1/oauth/tokenwith the OAuth 2.0 client credentials grant (the client ID and secret). The token (at_…) lasts an hour. Send it asAuthorization: Bearer.
An organisation can refuse secrets sent on every call, so only access tokens work. A person's session does not work on the public API, and API client credentials work nowhere else. Each client may make 600 calls a minute.
What it offers
| Endpoint | Permission | What it does |
|---|---|---|
GET /api/v1/case-types | Case types, with their fields, party roles, statuses and actions by key | |
GET /api/v1/cases | See cases | Cases, oldest change first, with updatedSince for keeping in step |
GET /api/v1/cases/{reference} | See cases | One case, with its lead as assignedTo and its departments by key |
GET /api/v1/departments | The organisation's departments, by key and name | |
POST /api/v1/cases | Open cases | Opens a case with the people on it, in the departments given by key or else those its case type sends new cases to. ?validateOnly=true checks it fully and opens nothing. |
POST /api/v1/cases/{reference}/documents | Change cases | Adds a document; the answer includes its SHA-256 |
GET /api/v1/cases/{reference}/actions | See cases | The actions the client may take now, with the details and key dates each asks for |
POST /api/v1/cases/{reference}/actions/{actionKey} | Change cases | Takes an action, with everything it does (letters, emails, tasks, time limits, conflict checks) |
GET, POST /api/v1/cases/{reference}/notes | See or change cases | Reads and adds notes |
POST /api/v1/cases/{reference}/history | Change cases and import | Brings notes and history from another system at their own dates |
GET /api/v1/file-types | The kinds and sizes of file the system takes | |
GET /api/v1/powerbi/… | See reports | Power BI feeds: cases, tasks, time and shared reports. See Power BI. |
GET /api/v1/cases/geojson | See cases | Cases with a place, as GeoJSON for GIS. See Maps and GIS. |
GET /api/v1/register-entries/geojson | See registers | Register entries with a place, as GeoJSON |
GET /api/v1/registers | See registers | Registers, with their details, lists and kinds of inspection by key |
GET /api/v1/registers/{register}/entries | See registers | A register's entries, oldest change first, with updatedSince |
GET /api/v1/registers/{register}/entries/{reference} | See registers | One entry |
POST /api/v1/registers/{register}/entries | Change registers | Adds an entry |
PUT /api/v1/registers/{register}/entries?match={detail} | Change registers | Changes the entry whose detail has the value sent, or adds one if none has |
PATCH /api/v1/registers/{register}/entries/{reference} | Change registers | Changes an entry: details left out are kept, a detail sent as null is cleared |
GET, POST /api/v1/registers/{register}/entries/{reference}/lists/{list}/rows | See or change registers | Reads and adds rows of one of the entry's lists |
PUT …/rows?match={detail}, PATCH …/rows/{number} | Change registers | Changes a row matched on a detail (or adds one), or by its number |
GET, POST /api/v1/registers/{register}/entries/{reference}/inspections | See or change registers | Reads and records the entry's inspections |
POST /api/v1/connectors/{key}/files | Change registers | Sends a file for a connector that reads files, such as an HR system's daily employee file, encrypted with OpenPGP if the connector asks. Answers 202 with the file's id |
GET /api/v1/connectors/{key}/files/{id} | Change registers | A sent file's status: waiting, read (with what it did and the first problems) or not read, and why |
How it behaves
- Everything goes through the same services as the screens, so the same checks apply: required details, choices, upload rules, the workflow, time limits, restricted cases.
- Problems are keyed as the request was sent, such as
details.<field>orpeople[0].email. - A person on a new case is matched to an existing person by email address, as an email from them would be. A case being moved in (
import) also finds an organisation by its name, unless its email address or postcode differs. - A client sees unrestricted cases, and restricted ones only with the permission to see every restricted case.
- What a client does is recorded as its own: the case history names it, its notes are its own and cannot be changed by staff, and its reads are in the audit log.
- Changes send no version: each is made to the record as it is when it arrives. Changes to one register entry sent at the same moment are made one after another, so each lands.
Reading page by page
Lists are paged with page and pageSize, and say how many there are in all (total) and whether there are more (hasNextPage). Lists ordered by last change (cases, register entries and the register feeds for Power BI) also give next while there are more: send it back as after to read on from where the page ended. Do this rather than counting pages when keeping a copy: if a record on an earlier page changes while you read, it moves to the end, and every page after it starts one record later, so counting pages would miss one.
To keep in step, read everything once, keep the largest updatedAt you saw, and next time ask for updatedSince that value, reading on with after. Records saved at the same moment, as a connector's file is, all come, however the pages fall.
Ask from a few minutes before that value, and ignore what you already hold by its id and updatedAt. A record stamped as it was being saved can reach the list a moment after you read past its time, so starting exactly from the last value could miss it. Reading a few records twice costs nothing.
Keeping a register from another system
A housing system's homes, a sensor platform's properties or a finance system's contracts can be kept in a register by the system that owns them. Give the register a detail for that system's own identifier, such as Housing system reference, and send each record with PUT /api/v1/registers/{register}/entries?match=housingRef. The first time, the entry is added; after that, the same record changes the entry it made, so the system can send everything again without making copies, even when it sends one record twice at once (as a system retrying after a timeout does). More than one entry with the same identifier is a conflict (409), and neither is changed: change one by its reference instead.
Only a detail holding one plain value (text, a number, a date, a choice, an email or web address) can be matched on. Spaces around the value are ignored. Rows of an entry's lists can be kept the same way, matched on one of the list's details, such as a sensor's serial number. Files cannot be sent as details. Changes go in the entry's history as the client's, and every case that names the entry sees the change, as it would one made on screen.
Readings and alerts
A sensor platform sends readings to a register whose administrator has set its measures (see Registers):
http
POST /api/v1/registers/assets/readings
{ "readings": [ { "entry": "AST-2026-00012", "measure": "humidity", "point": "Bedroom", "value": 72, "at": "2026-10-21T08:00:00Z" } ] }Name each entry by its reference, or by a detail with ?match=homelinkRef and that detail's value in entry. point is where it was measured, such as a room or a device; leave it out for the entry as a whole. at is when; left out, it is now. Readings can come in any order, up to 1,000 at once (alerts 500): an older one counts towards its day's figures without replacing a newer one. A measure the register does not have is refused, keyed to the reading (readings[0].measure).
Alerts go to POST /api/v1/registers/{register}/alerts, each with the entry, its kind (such as damp), severity, message and the sender's own externalId. Sent again with the same id, an alert is not raised twice; sent with clearedAt, it is cleared. The client needs the permission to change register entries.
Importing
A client with the import permission can also keep a case's old reference, the date it was opened, the status it reached, when it closed and who has it, and add files to a closed case. Imported cases do not get the case type's opening tasks, and their history says they were imported. This is for moving to the system: see The migration tool. Revoke the client when the move is done.
Events
To be told when things happen, rather than asking, use webhooks.