Skip to navigation
What's new in the Minikai API.

Each release also ships as a versioned minikai SDK for Python and TypeScript, so the version numbers below match the SDK you install. We keep things backwards-compatible wherever we can, so pinning to a version is safe.

Search Minis by state, and deactivate a Mini

v1.30.0 Pass states to POST /api/v1/Minis/search to find only Minis that are active, inactive or archived. Leave it out to search active and inactive Minis.

POST /api/v1/Minis/{id}/deactivate takes an active Mini’s Records out of Memory. The Mini stays in the Minis list and becomes active again when it’s next messaged.

minis

Filter records on true/false and number fields

v1.29.0 Each contentFilters entry on GET /api/v1/Records is now a JSON object with a key and a typed value, for example {"key":"Is Current?","value":true}, so you can filter on true/false and number fields as well as text. A string value matches that text case-insensitively, and a number or true/false matches only that JSON value, so send the type the record’s content stores. This change is not backwards compatible: the earlier Key=Value form now returns 400.

recordsfix

Record writes ignore batchProcess

v1.28.1 POST /api/v1/Records and PUT /api/v1/Records/{recordId} no longer read batchProcess, which only our own batch imports use. A request that still sends it is accepted and handled as a single-record write. To write many records in one call, use POST /api/v1/Records/batch.

recordsschema

Archive and restore Minis

v1.28.0 Archive a Mini when the person it represents leaves your service, with POST /api/v1/Minis/{id}/archive. Its Records leave Memory, so they stop counting towards your allowance, but you can still open the Mini, chat with it and read its Records. POST /api/v1/Minis/{id}/restore makes an archived or inactive Mini active again and loads its Records back. Both return the saved Mini. Archiving is turned on per workspace, and these endpoints return 403 where it isn’t.

minis

Record versions no longer return contentText

v1.27.1 GET /api/v1/Records/{recordId}/versions no longer returns contentText on each version. It only repeated the version’s title, description and content, which are still returned, so read those instead. If your integration reads contentText from a version, this is a breaking change.

recordsschema

Label skills

v1.27.0 You can now label a skill by sending labelIds with POST /api/v1/Skills or PUT /api/v1/Skills/{id}, using the ids of skill labels from GET /api/v1/Labels?resourceType=skill. On an update, an empty list removes every label and leaving labelIds out keeps the skill’s current labels. Skill responses, including GET /api/v1/Skills, now include each skill’s labelIds.

skillsschema

Labels for skills

v1.26.0 A label’s resourceType can now be skill, as well as record or mini, for labels that decide who can use a workspace’s skills. You can create skill labels with POST /api/v1/Labels and skill label groups with POST /api/v1/LabelGroups.

This is a breaking change for a client that rejects an unknown resourceType, because GET /api/v1/Labels with no resourceType can now return skill labels. Upgrade your SDK, or filter with resourceType=record or resourceType=mini.

breakingschema

See which record attachments could not be read

v1.25.0 Record attachments now include unreadableReason when Minikai could not read the file’s text: refused when the reading model declined it, and failed for any other reason. Nothing in such a file is searchable, and the field is left out once the file is read.

recordsattachmentsschema

Errors are typed in the generated SDKs

v1.24.0 Every operation now documents its 401, 403 and 500 responses as ProblemDetails, so an upgraded SDK raises them as typed errors you can catch by status. GET and POST /api/v1/Records/export also declare their text/csv response.

sdksschema

Record an NHI number on a Mini

v1.23.0 IdentityKind gains nhi, the New Zealand National Health Index number, so a provider in New Zealand can identify a client by the number their care system already uses. Send it anywhere an identity is written, and it comes back on any Mini carrying one.

minisschema

Create label groups

v1.22.0 POST /api/v1/LabelGroups creates a label group for Minis or Records.

labels

Record versions expose state

v1.21.0 Each snapshot returned by GET /api/v1/Records/{id}/versions now carries state (active, draft, archived, deleted), the same token the record itself exposes, so a caller no longer has to derive it from searchable and archived. Both existing flags are unchanged.

recordsschema

Requests now carry documented limits

v1.20.0 List, batch and upload requests are now bounded, and a request above a limit returns 400 with the limit named in the response rather than being served. List endpoints accept at most 200 rows per request (limitBefore, limitAfter, pageSize), a batch accepts at most 2000 items, and the batch attachment endpoints now enforce the same 100 MB per-file and 500 MB total limits the single-record attachment endpoints have always applied. A multipart upload at the documented total size now succeeds where it previously failed against an undocumented framework limit of 128 MB.

breakingrelease

Numeric fields declare their type

v1.19.2 Counts, page sizes and totals now declare a type in the spec (the number, or the same value as a string) instead of carrying only a validation pattern, so a generated client describes them rather than falling back to an untyped value. The fields that can come back null, status on 400 responses and totalCount on paginated lists, are described as nullable for the first time. Behaviour is unchanged and upgrading is safe, though a strict type checker may now ask you to narrow one of these fields before doing arithmetic on it.

schemarelease

The API key instructions name the right screen

v1.19.1 Creating an API key is described correctly here and in the Getting started and Authentication guides: open Settings → Security in the Minikai app and create the key under API Keys. The old instructions named a Workspace Admin → Security & access screen that the app does not have. Behaviour is unchanged, so upgrading is safe.

fixrelease

Pick your data region

v1.19.0 Point a client at the region your workspace lives in, either Australia on https://api.minikai.com/minikai-public or the United Kingdom on https://api.minikai.co.uk/minikai-public. Both SDKs take the region as an environment argument, the API Reference lets you pick one before sending a request, and Australia stays the default.

sdksrelease

The Python and TypeScript SDKs build again

v1.17.1 Fixes the nullable model fields, LabelDto.rename and UpsertRecordDto.authorization among them, that made both generated SDKs invalid code, so minikai publishes again for Python and TypeScript. Behaviour is unchanged, so upgrading is safe.

sdksfixrelease

Download a Mini's profile picture or a skill's asset

v1.18.0 Download the image behind a Mini’s profilePictureUrl, or the file behind a skill asset’s url. Both fields always held a path, and now GET /Minis/{id}/profile-picture/{pictureId} and GET /Skills/{id}/assets/{assetId} are in the API and the SDKs so you can call it. These and the record attachment download now hand you the file itself in the SDKs, rather than a response with no type on it.

minisskillsattachmentsrelease

Deleting a label in use is refused instead of stranding it

v1.17.0 DELETE /Labels/{id} now returns a 409 while any record or Mini still carries the label, telling you how many do. Records and Minis reference a label by name, so deleting one in use used to leave that name on them while destroying the access grants attached to it. Clear the label off them first. A call that succeeds still returns 204 and the label disappears at once, but its grants are torn down in the background, so creating a label with the same name straight after can be refused until that finishes.

labelsfixrelease

Identify a Mini by NHS number

v1.16.0 Handles nhs as an identity kind so the NHS number a UK care provider knows a client by is stored and searchable alongside the Australian schemes. It reads back on the Mini like any other identity.

minisschema