Data export

Methods, open formats and known limitations, to retrieve your data and switch provider.

Your data belongs to you: you can retrieve it at any time, free of charge, without notice and without asking us for anything, then import it elsewhere. This page describes the export methods, the formats and their known limitations. The procedure for switching provider and its time limits are set out in article 8 of the terms of service.

Export methods

  • From an agent: the MCP tool memory_export returns a single-use download link, valid for 15 minutes.
  • Through the REST API: GET https://api.kerno.md/v1/export, with an API key, returns the stream directly.
  • From the console: “Settings”, then “Prepare the export” for the content; “Audit log”, then “Export” for the log.

Content export parameters: format (jsonl by default, or zip), prefix (path pattern, everything by default), include_events (event logs, yes by default), include_shared (content received through a share, no by default). Exports are never charged and remain possible when the organisation is in restricted access or suspended.

kerno-export/1 format (JSON Lines)

A UTF-8 text file, one JSON object per line (JSON Lines, RFC 8259), dates in ISO 8601 format in UTC. It can be reimported as is into Kerno (POST /v1/import) and read with any JSON tool.

  1. One manifest line: format (“kerno-export/1”), org (organisation identifier), prefix, generated_at, snapshot (“per-topic”: each topic is read consistently).
  2. For each topic, one topic line: path, version, content_type (text/markdown, application/json or text/plain), content, created_at, updated_at, updated_by, expires_at.
  3. Then its events, one event line each: path, id, kind (append or write), at, by, and where applicable data and version.
  4. One end line: number of topics and events, and sha256, the SHA-256 hash of all the preceding lines, to check that the file is complete.

Authors (updated_by, by) are { type, id, org, label } objects, where type is user, api_key, service_account or system. label is the readable author: “Etienne via Claude” (the person and the tool, for your organisation; user and tool give them separately, name the key name), “@partner via Claude” or “@partner via API key” for a write from another organisation (never the person’s name or email), “Kerno” for the system; failing that, the identifier org/type:id. The paths of content received through a share begin with @organisation/.

{"type":"manifest","format":"kerno-export/1","org":"acme","prefix":"*","generated_at":"2026-11-27T09:00:00.000Z","snapshot":"per-topic"}
{"type":"topic","path":"projets/atlas","version":3,"content_type":"text/markdown","content":"# Atlas","created_at":"2026-11-02T10:00:00.000Z","updated_at":"2026-11-20T16:30:00.000Z","updated_by":{"type":"api_key","id":"…","org":"acme","name":"Connecteur Claude","label":"Etienne via Claude","user":"Etienne","tool":"Claude"},"expires_at":null}
{"type":"event","path":"projets/atlas","id":"1795192200000-0","kind":"write","at":"2026-11-20T16:30:00.000Z","by":{"type":"api_key","id":"…","org":"acme","name":"Connecteur Claude","label":"Etienne via Claude","user":"Etienne","tool":"Claude"},"version":3}
{"type":"end","topics":1,"events":1,"sha256":"…"}

ZIP archive

For human reading: a kerno-<organisation>-<date> folder containing manifest.json, one file per topic in topics/ (.md, .json or .txt depending on its type) with its metadata in an adjacent .meta.json file, the event logs in JSON Lines in events/, and the content received through a share in shared/@organisation/.

Audit log

The audit log is exported in JSON Lines (application/x-ndjson), over a period of your choice. Each line describes an action: seq, occurred_at, author (actor_type, actor_id, actor_org_id), action, resource, topic_version, content_sha256, outcome, request_id, details, and the chaining fields prev_hash and hash, in hexadecimal.

Each hash is the SHA-256 hash of the concatenation of the 32 bytes of prev_hash and the canonical JSON of the line without prev_hash or hash (sorted keys, no whitespace, a subset of RFC 8785); the prev_hash of the first line is 32 zero bytes, or the anchor of the last purge. Anyone can therefore check offline that no line has been modified, removed or inserted. The console also verifies the chain online, and our offline verification tool is provided on request.

Organisation configuration

Members and roles, teams, service accounts, API keys (without their secret), permissions, shares and domains can be read in JSON through the console API (https://console.kerno.md/api/cp/orgs/<id>/members, /teams, /service-accounts, /api-keys, /grants, /shares, /domains). Usage and invoices are in “Billing”.

Known limitations

  • One export at a time and 12 per hour for an organisation.
  • API key secrets cannot be exported: Kerno keeps only a hash of them. Create new keys with your new provider.
  • The service’s internal data (indexes, caches, counters, job queues) is not exported; it is of no use outside Kerno.
  • Content received through a share is exported only while the share is active, and is not reimported: it belongs to the organisation that shares it.
  • Each topic is read consistently, but the export is not a global snapshot: stop writes during the export if you want a frozen state of the whole organisation.

Open interfaces

Kerno’s interfaces are public, documented and free of charge, for you as for the provider you choose: the open Model Context Protocol (MCP) on https://api.kerno.md/mcp, the REST API and the console API, in JSON over HTTPS. A question, or need help migrating: support@kerno.md.