REST API reference
Base URL: $COMPASS_URL (contract default http://<host>:8080/api/v1). Every
request except GET /version needs an X-Compass-Key header. All times are
ISO-8601 UTC. Statements, processes, lessons, and every other record are
superseded or ended, never removed. The few narrow, audited exceptions
(DELETE) are listed under “All endpoints” at the end of this page.
Errors always look like {"detail": "<plain-text sentence>", ...fields}. A
409 names the conflicting record; a 422 names the offending field.
Unknown fields in a write body are rejected with 422 (every input model
inherits extra="forbid").
The detailed sections describe the main endpoints, grouped the way the
contract groups them. Every route in the code is listed at the end under
“All endpoints” — that list is generated from the code, and CI turns red when
a route is added without an entry.
Auth column: ro = read-only key works, rw = read-write key required,
bruecke = also reachable with a bruecke-scoped key.
Subjekte (subjects)
| Method & path | Auth | What it does |
|---|---|---|
GET /subjekte |
ro | List subjects ({id, typ, ref_id, titel}). |
POST /subjekte |
rw | Create a subject; idempotent on (typ, ref_id). |
Sachen (subjects being tracked)
| Method & path | Auth | What it does |
|---|---|---|
GET /sachen |
ro | List Sachen. Filters: bereich, stufe, suche, persona (ownership), sichtfeld (visibility), alle, limit. sichtfeld and persona answer different questions on purpose — see Concepts. Each entry carries anzahl_geltend (valid statements, all kinds). |
GET /sachen/{slug} |
ro | One Sache plus its statements, split into gilt / abgeloest / offen / hypothesen. Each statement carries its check state (pruefstand, pruefweg_letzter_lauf): ungeprueft means no check path or never run. |
POST /sachen |
rw | Create a Sache; idempotent on slug (200 if it already exists). persona_slug makes it a persona rule instead of a company rule. |
Regelbuch (rule book view)
| Method & path | Auth | What it does |
|---|---|---|
GET /regeln/wirkung |
ro | Does the rule work? For every rule that came out of a lesson, how often the same error recurred after gilt_seit, compared against an equally long span before it (wiederholt_lehre_id, counted transitively). Four groups: wirkt (at least halved), haeufiger, zu_frueh (in force for less than 14 days — no number, not 0), nicht_messbar. alle=true adds rules without a lesson; they get grund='ohne_lehre' and no number either. No model, no estimate. |
GET /regelbuch |
ro | Read-only "printed" view of every Sache with a currently-held rule, grouped by area (bereich). Optional bereich= filters the shown chapter; bereiche/gesamt in the response are always the full, unfiltered summary. This is Stage A of a three-stage migration of CLAUDE.md §0 into the Core — see the guide. |
Aussagen (statements)
| Method & path | Auth | What it does |
|---|---|---|
POST /aussagen |
rw | Write a new statement. 409 with the current statement if a regel already holds and ersetzt is missing; 422 for an unknown Sache, a hypothesis without frist+pruefweg_slug, or a level violation. |
GET /aussagen/{id} |
ro | One statement plus ersetzt_von/ersetzt (the supersede chain). |
POST /aussagen/{id}/status |
rw | Change status (widerlegt|offen|vorlaeufig|gilt) — hypotheses and open/provisional statements only. Only a human refutes a rule (403 for a key alone). |
POST /aussagen/{id}/beenden |
rw | End a currently-held statement that has no successor (status=abgeloest, gilt_bis=now()). Only a human ends a rule (403 for a key alone). 409 if it isn't currently gilt. |
GET /gilt/{sache} |
ro | The one currently-held rule, or 404 with {detail, offen}. persona= filters by visibility (403 if the Sache is outside it, unless alle=true). |
GET /gilt-am/{sache} |
ro | What held on a given datum, with status. Same visibility behaviour as GET /gilt/{sache}. |
GET /warum/{sache} |
ro | The rule, its decision text, its history, and the last check result. |
GET /konflikte |
ro | Sachen where something does not line up. Every entry carries art: mehrere_geltende_aussagen (several currently-held statements of the same kind on the same Sache, with differing text, none superseding the other — plus anzahl_aussagen and anzahl_subjekte), stufenverstoss, ungepruefte_stufe, or widerspricht (a recorded WIDERSPRICHT edge, with grund, quelle and gesetzt_von). The same wording twice does not count, nor does a superseded statement, nor an ended edge. And, since 29.09.2026, neither does a Sache that has merely collected answers to different questions — every statement in the group carries quelle = frage:<n>, and all of them point to different questions. Still reported: a statement without a source, one with a foreign source, or two answers to the same question standing side by side. |
POST /widersprueche |
rw | Two statements contradict each other — with a reason, and without a confidence score. Set by a human (quelle=mensch) or by an answered click-question (quelle=frage with frage_id); no automation writes here. 422 without a reason or for a statement against itself, 404 for an unknown statement, 409 if that pair already has a live edge. |
POST /widersprueche/{id}/beenden |
rw | Withdraw the contradiction: beendet_am/beendet_von are set, nothing is deleted. The edge then drops out of GET /graph and GET /konflikte but stays readable. 409 if it has already been ended. |
GET /aussagen/{id}/nachweise |
ro | Which documents support this statement. Each entry carries the document's slug, title and version, plus bestaetigt_am/bestaetigt_von — empty means nobody has looked at it yet. Withdrawn links only appear with ?beendet=true. |
POST /aussagen/{id}/nachweise |
rw | Attach a document as supporting evidence ({dokument_slug, bemerkung?}), unconfirmed. Attaching and confirming are two steps. 409 if the same document already supports the statement, or if the document has ended. |
POST /nachweise/{id}/bestaetigen |
rw | Record that someone has looked at this evidence. Sets timestamp and name — and nothing else: the statement's status stays as it is. 409 the second time. |
POST /nachweise/{id}/beenden |
rw | Withdraw the link: beendet_am is set, nothing is deleted. It drops out of the list and out of GET /warum/{sache}, stays readable, and the same document may be attached again afterwards. |
Stufen (levels)
Which levels exist, and in what order, is the tenant's call — empty by default. COMPASS ships no level vocabulary of its own.
| Route | Right | What it does |
|---|---|---|
GET /sachen-stufen |
ro | This tenant's active levels, most general first: [{slug, rang, titel, erstellt_am}]. An empty list means no levels are configured — and that means any level set on a Sache counts as unchecked, not as fine. |
PUT /sachen-stufen |
rw | Sets the whole order: {stufen: [{slug, titel?}]}. Position is the rank, most general first — there is no rang field the caller could set. Anything no longer listed gets entfernt_am and stays (nothing is deleted). 422 on a malformed slug or a duplicate entry. |
Hypothesen (hypotheses)
| Method & path | Auth | What it does |
|---|---|---|
POST /hypothesen |
rw | Create a hypothesis (art=hypothese, status=vorlaeufig). frist and pruefweg_slug are required. |
POST /hypothesen/{id}/bewerten |
rw | Resolve it: bestaetigt|widerlegt|verlaengert (with neue_frist). |
GET /hypothesen |
ro | List, optionally faellig=true for due ones. |
Prüfwege (checks)
| Method & path | Auth | What it does |
|---|---|---|
POST /pruefwege |
rw | Create or upsert a check. 403 if the project isn't enabled for check commands. 422 if befehl has none of the fixed forms or contains a writing pattern (>, rm, DELETE, git push, …). |
GET /pruefwege |
ro | List checks, including the raw cause columns (erfuellt, werkzeug_fehlt_serie, reparatur_noetig, …). |
POST /pruefwege/{slug}/run |
rw | Run it (30s timeout), store the result, write a fact. A clean run resolves any open deviation state for that check. If no directory is configured, the project isn't enabled or the stored command has no fixed form, nothing runs — the result states the reason and counts as a deviation. |
POST /pruefwege/{slug}/beenden |
rw | End a check — grund and von are required. It no longer runs in the nightly pass, no longer shows up as a deviation and no longer counts in the round; /run then answers 409. The row stays readable, including its last run. Nothing is deleted. |
Abweichungen (deviations)
A deviation means a check's result didn't match what its rule expects. The
cause is always one of three, never guessed: verstoss (violation),
werkzeug_fehlt (a known missing-tool pattern beats any other reading),
or unklar (the expectation text itself couldn't be evaluated).
| Method & path | Auth | What it does |
|---|---|---|
GET /abweichungen |
ro | List deviations, with ursache, stumm (true after 3 consecutive tool-missing runs), and a ready-to-paste ticket_text. Optional seit=. |
POST /abweichungen/{pruefweg_slug}/verfolgen |
rw | Mark it tracked, optionally attach a ticket. 409 if the check currently isn't deviating. |
POST /abweichungen/{pruefweg_slug}/regel-ueberholt |
rw | Raise a Schaltzentrale question ("keep the rule or supersede it") from a deviation. 422 without a currently-held rule on the check. |
POST /abweichungen/{pruefweg_slug}/pruefweg-kaputt |
rw | Mark the check itself broken — removes it from the GET /offen alert, not from GET /abweichungen. |
Prozesse (processes)
| Method & path | Auth | What it does |
|---|---|---|
POST /prozesse |
rw | Create a process, or a new version if the slug exists (old version gets gilt_bis). |
GET /prozesse |
ro | The highest version per slug. alle=true also shows superseded/ended ones. Each entry carries anzahl_schritte and anzahl_luecken. |
GET /prozesse/{slug} |
ro | The highest version, its steps, each step's rules, and luecken (steps with neither a rule nor frei=true). ueberholt: true if ended. Plus versionen: every state of this process with gilt_seit and gilt_bis. |
GET /prozesse/{slug}?version= |
ro | That exact state, with its steps. This is how to look up what held before a change: a step taken out of the list is still there, in full, in the previous state — nothing is deleted. A state that does not exist is 404, and the answer names the ones that do. |
GET /prozesse/{slug}/bild/{key} |
ro | 302 to the step's image, or 404. |
POST /prozesse/{slug}/beenden |
rw | End a process with no successor version. 409 if already ended. |
Schaltzentrale (things for a human to click)
| Method & path | Auth | What it does |
|---|---|---|
POST /fragen |
rw | Raise a question with at least two options, each carrying a folge (consequence). 422 otherwise. |
GET /offen |
ro | Everything that needs a click, per source with state ruhig|unbekannt|achtung. Seven sources, including postfach (messages and tasks from agents to the human). Question entries carry bereich, gestellt_von and a folge per action. Every entry carries herkunft_art (mensch|agent|rundgang|null) from the origin the core has on record — null where no trace exists. |
GET /fragen/seit |
ro | Answered questions since a given timestamp — decision, answer, Sache, who answered. (Not yet in the contract; see the deviations note.) |
POST /fragen/{id}/antwort |
rw + human | Answer a question; writes a decision, and supersedes the current rule if the chosen option says so. Needs a signed-in human: a key on its own, including the bridge key, gets 403; a human's guide (Lotse) key is the exception, but not when the answer supersedes a current rule or creates one. The same applies to antwort-aendern, also when the change ends a current rule. COMPASS takes the name from the sign-in. |
POST /offen/hinweis/{id}/erledigt |
rw | Mark a Hall-of-Lessons hint as read (same effect as POST /lehren/{id}/gelesen). |
POST /offen/{typ}/{id}/erledigt |
rw | Resolve any other open item (question, approval, design handoff, conflict). |
Kern, Graph & Gedächtnis (core render, graph, memory search)
| Method & path | Auth | What it does |
|---|---|---|
GET /kern/{subjekt_id} |
ro | The held rules as Markdown, grouped by area, plus a hash. |
GET /graph |
ro | Nodes and edges around a Sache, to a tiefe (depth). Edge types actually emitted today: GEHOERT_ZU, ERSETZT, GILT_AN, GEPRUEFT_DURCH, BETRIFFT — see the deviations note for edge types the contract describes but the graph endpoint doesn't emit yet. tage= adds a time window on gilt_seit; omitted means everything. |
GET /graph/ansichten |
ro | Saved graph views of this tenant, newest first (alle=true includes the ended ones). A view is a remembered GET /graph request: starting node, tiefe, tage, name — the core does not recompute it. |
POST /graph/ansichten |
rw | Create a view. 422 for an unknown sache, an empty name, tiefe outside 1..5 or tage <= 0 (this endpoint rejects instead of clamping, unlike GET /graph); 409 if one of the open views already carries this name. |
POST /graph/ansichten/{id}/beenden |
rw | End a view — it leaves the list and stays on record (no DELETE). 409 if it is already ended. |
POST /ereignisse |
rw, bruecke | Record an event (chat|klick|messung|pr|lauf|vorlage). Idempotent on quelle_ref. |
GET /ereignisse |
ro | List events for a subject, optional seit=. |
GET /suche |
ro | Full-text search over statements and events. Answer {treffer, gesamt, abgeschnitten, weiter} — gesamt counts after the visibility filter, weiter is the next page's offset or null. persona= filters statement hits by visibility; event hits are never filtered (events carry no bereich). |
GET /regelwerk/abdeckung |
ro | {entscheidungen_gesamt, mit_aussage, ohne_aussage, quote} — how much of the decision log has a matching statement. quote is null, never 0, when the universe is empty. |
Import / Export
| Method & path | Auth | What it does |
|---|---|---|
POST /import/claude-md |
ro | Preview: a deterministic, model-free scan (art=claude-md|agents-md|cursor-rules, same scan for all three) for headings with an imperative sentence beneath them, or bullets/numbered items starting with an imperative marker. Each proposal carries regel_text verbatim. Writes nothing. The file path (file) first checks size (max 1 MB) and whether the file is text at all — both 422 with feld: "file" and byte; on failure nothing is read and nothing is guessed. |
POST /import/claude-md/apply |
rw | Write the reviewed proposal — Sache and statement in one call (regel for art=claude-md, fakt for agents-md/cursor-rules). Idempotent on quelle_ref; a conflicting existing rule or a content mismatch on the same source line is reported (konflikt/quelle_ref_widerspruch), never silently overwritten. |
POST /import/decisions |
rw, bruecke | Bulk-import decisions keyed by a Z-number. Idempotent on quelle=Z.<n>; a content mismatch under the same key, or a second gilt rule without a resolvable ersetzt_z, goes to widerspruch — the call still returns 200. |
GET /export/claude-md-section0 |
ro | The rule book as Markdown text. |
GET /export/agents-md |
ro | Same content shaped for AGENTS.md. |
GET /export/cursor-rules |
ro | A ZIP of Cursor rule files. |
Customer data export ("your data is yours")
A customer's whole holding, to take with them — unlike the tool formats above (which only pour the currently valid rules into a foreign config format), this export carries every statement with its history, lessons (including ended ones), memory, processes (every version), checks, questions and decisions, personas, and company memory.
| Method & path | Auth | What it does |
|---|---|---|
GET /export/kopf |
ro | Just {format_version, stand, kunde, zaehlung} — no records, fast. |
GET /export |
ro | ?format=json (NDJSON: one header line, then one line per record with teil) or ?format=markdown (readable rule book: per area/thing the rule in force, "earlier versions", decisions in chronological order, lessons in brief — no LLM, nothing invented). Both StreamingResponse. An access bound to a persona gets 403 here. |
Never included: keys/hashes, sessions/presence. Row-level isolation as everywhere else — another customer's own key only ever sees their own (empty) export.
Personas
| Method & path | Auth | What it does |
|---|---|---|
GET /personas |
ro | List personas with counts (anzahl_regeln, anzahl_gedaechtnis), vorlage_name, slack. slack is a marker you set and read back here: COMPASS itself sends nothing to Slack. A service you connect can read it and act on it — without such a service it stays inert. For events COMPASS pushes out on its own, use the outgoing calls further down. |
GET /personas/{slug} |
ro | Full record plus sichtfeld, regeln, gedaechtnis_letzte (10 newest). 404 for an unknown slug. An access bound to another persona gets only some of the fields and never the memory: the guide gets every field except the memory, and whoever may manage personas also gets the fields they may change. |
PUT /personas/{slug} |
rw | Full upsert — every field not sent resets to its default, this is not a partial update. |
GET /personas/{slug}/brief |
ro | The deterministic Markdown brief. ?max_gedaechtnis=&budget=&max_lehren=. An access bound to another persona reads it only as a lead or the guide, without memory and without that role's personal lessons; otherwise 403. |
GET /personas/{slug}/brief/stats |
ro | The same numbers the brief is built from, as structured data. Whoever may not read another persona's brief does not get these numbers either (403). |
GET /personas/{slug}/gedaechtnis |
ro | Full-text search over a persona's memory (own plus visible company memory). |
POST /personas/{slug}/gedaechtnis |
rw | Add a memory entry (fakt|feedback|ereignis). |
PATCH /personas/{slug}/gedaechtnis/{id} |
rw | End a memory entry (gilt_bis). |
POST /personas/gedaechtnis/import |
rw | Bulk-import memory, idempotent on quelle_ref. persona_slug=null writes company memory. |
GET /persona-vorlagen |
ro | The template catalog. |
GET /persona-vorlagen/{slug} |
ro | One template. |
POST /persona-vorlagen/vorschlag |
ro | Rank up to 3 templates against a free-text need (keyword match, deterministic). |
POST /personas/from-vorlage |
rw | Copy a template into a new persona. 409 on slug conflict. |
GET /personas/{slug}/beurteilung |
ro | Personnel-file view: open role proposals, wins, self-reported mistakes, relapses, human feedback. |
POST /personas/{slug}/rollen-vorschlag |
rw | Propose a change to aufgabe|koennen|stil|grenzen, backed by at least one lesson; raises a Schaltzentrale question. |
Bereiche (areas)
| Method & path | Auth | What it does |
|---|---|---|
GET /bereiche |
ro | The area registry, alphabetical. |
POST /bereiche |
rw | Add an area, with eltern? (its home) and verantwortlich?. Only a human creates a top-level department; a sub-area can also be created by the responsible lead of the parent area (403 otherwise). 409 if it exists, 422 if the name is not a kebab slug or the home is unknown. |
PATCH /bereiche/{name} |
rw, humans only | Move an area (eltern) or set who is responsible (verantwortlich). 422 for a cycle in the tree, 404 for an unknown area. |
Agents: presence and inbox
| Method & path | Auth | What it does |
|---|---|---|
POST /agents/herzschlag |
ro | Heartbeat for a session (persona_slug, sitzung, client, status?). Upsert; a session counts as online for 15 minutes after its last heartbeat. |
POST /agents/offline |
ro | Explicitly mark a session offline. |
GET /agents |
ro | Every active persona with presence, sessions, inbox counts, and live brain-load stats. |
POST /agents/{persona}/nachrichten |
rw (or ro with von_persona set) |
Send a message. Exactly one of von_persona/von_mensch=true is required. art=auftrag additionally checks leitung/nimmt_auftraege_von. |
GET /agents/{persona}/nachrichten |
ro | A persona's inbox; sitzung= marks undelivered messages as delivered as a side effect. |
POST /agents/nachrichten/an-mensch |
rw (or ro with von_persona set) |
A message/task from a persona TO the human (von_persona/von_sitzung required, an_persona=NULL, an_mensch=true). Appears in GET /offen as the postfach source. With overview: true, betreff and kurzfassung it becomes an overview entry that stays in the overview for 24 hours (COMPASS_OVERVIEW_STUNDEN, 1 to 168; bezug?, an_stelle?). Only art info or antwort (otherwise 422); without bezug only a lead (otherwise 403); at most 120/400/300 characters for betreff/kurzfassung/bezug. |
GET /ich/overview |
human session | The signed-in human's overview entries from all of their projects, each with its project. Read-only; a key alone gets 403. At most 50 entries per project; abgeschnitten names projects above that, gilt_stunden the validity period. |
GET /agents/nachrichten |
ro | All messages for the tenant, newest first. an_mensch=true\|false narrows to the human's inbox or to persona-to-persona messages. |
POST /agents/nachrichten/{id}/gelesen |
ro | Mark one message read. |
POST /agents/nachrichten/{id}/status |
rw | Set a task message's status (offen|angenommen|erledigt|abgelehnt). |
Hall of Lessons
| Method & path | Auth | What it does |
|---|---|---|
POST /lehren |
rw | Write a lesson (fehler|gelungen|hinweis). ursache is required for fehler; bereich is required for all (use unsortiert if you don't know yet). Idempotent on quelle_ref. |
PATCH /lehren/{id} |
rw | Correct the area or wording of an existing lesson. Creator only; a closed lesson stays as it is (409). A corrected field is replaced, not appended to — sending only part of the text loses the rest. The cause cannot be changed here either; if it needs to read differently, a new lesson supersedes the old one. |
GET /lehren |
ro | List, filterable by art, status, bereich, persona (ownership), sichtfeld (visibility), q (full text), offen_hinweise. |
GET /lehren/{id} |
ro | One lesson plus its linked question and, if promoted, its rule. |
POST /lehren/{id}/aufnehmen |
rw | Mark it seen and endorsed (status=aufgenommen). 409 unless it was offen. |
POST /lehren/{id}/regel-vorschlagen |
rw | Raise a Schaltzentrale question to turn it into a rule — never writes the rule directly. |
POST /lehren/{id}/beenden |
rw | End it (gilt_bis=now()). |
POST /lehren/{id}/gelesen |
rw | Mark a hinweis read. |
POST /lehren/{id}/antwort |
rw | Reply to a hinweis; also writes a memory entry for its persona. |
GET /lehren/stats |
ro | Counts by status and kind, this week's total, unread hints. |
POST /lehren/import-gedaechtnis |
rw | One-time import of file-sourced memory feedback entries as fehler lessons. Supports trocken=true (dry run). |
Hall of Fame + Daumen (thumbs)
| Method & path | Auth | What it does |
|---|---|---|
GET /hall-of-fame |
ro | Weekly leaderboard including badges. |
GET /hall-of-fame/abzeichen |
ro | All badges, newest week first. |
GET /hall-of-fame/quellen |
ro | Which scoring sources currently fire versus are registry-only. |
POST /daumen |
rw | A thumbs-up from a human only — a persona as von gets 403. 409 on a second thumb from the same person on the same object. |
POST /daumen/{id}/zuruecknehmen |
rw | Reverse a thumb with a counter-entry (409 if already reversed). |
GET /daumen |
ro | List thumbs. |
GET /personas/{slug}/daumen |
ro | A persona's thumbs total, this week, and 10 most recent. |
Statistik
| Method & path | Auth | What it does |
|---|---|---|
GET /statistik |
ro | Six blocks (gehirn, koepfe, anwesenheit, arbeit, qualitaet, system) computed deterministically in one transaction, timestamped once as stand. |
The Rounds
(previously named "Der Verbesserer" — the German word was misleading: it never improved anything, it only measures and proposes. "The rounds" carries the hospital-ward sense: someone walks through at night, checks in, notes what stands out, changes nothing.)
| Method & path | Auth | What it does |
|---|---|---|
GET /rundgang |
ro | The result of 23 fixed checks across 6 categories — a number, a threshold, and affected records per check; never a guess. Response also carries modus (off/computing/computing+reading). |
POST /rundgang/melden |
rw | If the mode is aus (off): writes nothing. Otherwise files one hinweis lesson per category that crossed its threshold. trocken=true evaluates without writing. |
GET /rundgang/einstellungen |
ro | The tenant's current mode + a one-sentence explanation + the three levels (off/computing/computing+reading) with title/description. |
PUT /rundgang/einstellungen |
rw | Sets the mode ({modus, von}). Default for a newly created customer: rechnend (computing). |
POST /rundgang/versenden |
rw | The morning report: one bundled email per active member covering every still-pending delivery, respecting sofort/nur_wenn_zu_tun/nie (immediately/only when there is something to do/never). |
GET /kunden/{slug}/mitgliedschaft/rundgang-einstellungen |
session | The caller's own delivery preference (sofort/nur_wenn_zu_tun/nie) for this customer's rundgang. |
PUT /kunden/{slug}/mitgliedschaft/rundgang-einstellungen |
session | Sets the caller's own preference ({zustellung}). Every member for themselves, no owner/manager gate. |
Webhooks — events to other systems
COMPASS calls out, your system accepts. Full guide including signature verification and an example: Events to other systems.
| Method & path | Auth | What it does |
|---|---|---|
POST /webhooks |
rw | Create a webhook: {url, ereignisse}. The response carries the geheimnis — this once only. 422 if outgoing calls are not set up on this installation, if ereignisse is empty or holds an unknown name, or if the address isn't https:// or points into a private network. |
GET /webhooks |
ro | Your webhooks, without the secret. |
POST /webhooks/{id}/test |
rw | Queue a delivery with the event ping, regardless of what you subscribed to. 409 if the webhook is deactivated. |
GET /webhooks/{id}/zustellungen?limit=50 |
ro | Deliveries, newest first — attempt, status, last HTTP code, last error. This is where you look when something doesn't arrive. |
POST /webhooks/{id}/deaktivieren |
rw | The webhook stops sending and stays readable. 409 if it already is. Nothing is deleted. |
The five event names: regel.gesetzt, regel.abgeloest, abweichung.neu,
abweichung.behoben, frage.beantwortet.
Firma (company memory)
| Method & path | Auth | What it does |
|---|---|---|
GET /firma |
ro | The six company-memory fields. |
PUT /firma |
rw + person | Update named fields. Only with a signed-in person: a key alone gets 403. An agent working inside a person's signed-in session may do it. COMPASS takes the author from the sign-in — a von sent in the body is not used. |
GET /firma/stats |
ro | How many of the six fields are filled. |
Mandanten (tenants) & version
| Method & path | Auth | What it does |
|---|---|---|
GET /kunde |
ro | The tenant the presented key belongs to ({slug, stufe, menschen, menschen_limit, name}). |
GET /version |
none | {git_sha, gebaut_am, dienst, grund} — deliberately reachable without a key. |
Deviations from the contract found while writing this page
GET /graphemitsGEHOERT_ZU,ERSETZT,GILT_AN,GEPRUEFT_DURCH,BETRIFFT— and, since 28.09.2026,WIDERSPRICHT. This entry used to say thatWIDERSPRICHTdid "not appear in the running code" and was "documented elsewhere as derived-not-stored": the first is no longer true, and the second was already the wrong answer — it is the only stored edge, deliberately so (it follows from a judgement, not from a foreign key). Still open from the contract:ZEIGTandWIRKT_IN; neither appears in the running code today.GET /fragen/seit(and its MCP toolseit_wann_neu) exists in the running code but is not yet described in the contract. Documented here because it is a stable, working read endpoint; flagged as ahead of the contract.
Routes between projects
Routes are created in the destination project. These endpoints require a signed-in human (session/Bearer; a key alone is insufficient). Creating a route requires owner/admin roles in both projects; an owner/admin of the operator destination retains the existing exception. Unrelated projects remain hidden.
| Method & path | Auth | Purpose |
|---|---|---|
GET /anfrage-wege/absender-auswahl |
Human | {auswahl: [{slug, name, art}], grund_leer}; own active projects with an owner/admin role, excluding the current project. Reasons: rolle, kein_zweites_projekt, otherwise null. |
GET /anfrage-wege/absender-pruefen?von= |
Human | Name confirmation with the creation permissions. Missing permission and an unknown project return the same 403; both count towards throttling. The existing operator check is preserved. |
POST /anfrage-wege |
Human | {von_kunde_slug, typ, annahme_persona}; create a directed route. |
POST /anfrage-wege/{id}/beenden |
Human | The destination owner/admin ends its own route, optionally with grund; no sending-project role is needed. |
Without a route, POST /anfragen returns 403 with wege and typen. Its message explains switching to the destination project and opening Routes and requests. The reserved abteilung type and company switch remain unchanged.
All endpoints
The complete list, generated from the code: 551 operations in 77 groups. What is described in detail above appears here again in short. A route without an entry here turns CI red.
Subjects
| Method & path | What it does |
|---|---|
GET /subjekte |
Lists subjects (id, typ, ref_id, titel). |
POST /subjekte |
Creates a subject; idempotent on (typ, ref_id). |
Sachen (tracked matters)
| Method & path | What it does |
|---|---|
GET /sachen |
Lists topics, filterable by bereich, stufe, suche, persona (ownership) and sichtfeld (visibility); each entry carries its number of valid statements. |
POST /sachen |
Creates a topic; idempotent on slug (200 if it already exists). With persona_slug it becomes a persona rule instead of a company rule. 409 if the nummer is taken. |
GET /sachen/aufraeum |
Suggests topics to retire whose valid statement itself says it has been lifted. Only a suggestion; a human decides. |
GET /sachen/{slug} |
A topic with its statements, split into gilt, abgeloest, offen and hypothesen, each with its check status. 404 if it does not exist. |
PATCH /sachen/{slug} |
Sets a topic's nummer and/or bereich, with required grund and von; the area must exist. 409 if the number belongs to another topic. |
POST /sachen/{slug}/verabschieden |
Takes a topic out of the rule set; it stays readable at its address, its statements are untouched and nothing is deleted. grund and von are required, 409 if already retired. |
POST /sachen/{slug}/widerrufen |
Undoes a topic's retirement. von is required; 409 if the topic is not retired. |
Sachen: levels
| Method & path | What it does |
|---|---|
GET /sachen-stufen |
The tenant's active levels, most general first. An empty list means none are configured, so any level set on a matter counts as unchecked. |
PUT /sachen-stufen |
Sets the whole ordering; list order is the rank. Levels no longer listed get entfernt_am and are kept; 422 for an invalid slug or a duplicate. |
Rulebook
| Method & path | What it does |
|---|---|
GET /regelbuch |
Read-only view of every topic with a current rule, grouped by area. bereich= filters the chapter; the overview stays complete. |
Rule effect
| Method & path | What it does |
|---|---|
GET /regeln/wirkung |
Does the rule work? For each rule born from a lesson, counts how often the same mistake recurred before and after it took effect, grouped; rules too new get no number. |
Statements
| Method & path | What it does |
|---|---|
POST /aussagen |
Writes a new statement. Only a human sets a regel, and only a human replaces one with ersetzt (403 for a key alone); 409 with the current statement if a rule already holds and ersetzt is missing. |
POST /aussagen/ersetzt-nachziehen |
Fills in ersetzt for superseded statements without a successor where the successor is unambiguous; reports what was set and what remained open. |
GET /aussagen/nachfolgerlos |
Superseded statements that no other statement points to via ersetzt, i.e. supersession chains with a gap. |
GET /aussagen/nummer/{nummer} |
All statements with this number, whatever their status; mehrdeutig says when there are several. 404 if there are none. |
GET /aussagen/{id} |
One statement plus ersetzt_von and ersetzt, i.e. its supersession chain. |
PATCH /aussagen/{id} |
Sets only a statement's quelle_ref, with a required grund; the old value stays readable in the event. 409 if another statement carries the same source. |
POST /aussagen/{id}/beenden |
Ends a holding statement without a successor (abgeloest, gilt_bis set); nothing is deleted. Only a human ends a rule (403 for a key alone). 409 if it does not currently hold. |
POST /aussagen/{id}/status |
Changes a statement's status, with a reason. Allowed for hypotheses, open or provisional statements, and widerlegt for any kind; only a human refutes a rule (403 for a key alone). |
POST /aussagen/{id}/umhaengen |
Moves a statement to another topic, with a reason; content and history stay. 409 if a rule for the same subject already holds there. |
GET /gilt-am/{sache} |
What held for a topic on a given datum, with status. Visibility as for GET /gilt/{sache}. |
GET /gilt/{sache} |
The one rule currently holding for a topic, or 404 with the open statements. With persona, 403 if the topic lies outside its view. |
GET /konflikte |
Topics where something does not fit together, each with an art (such as several holding statements or a recorded contradiction). |
POST /konflikte/abloesen |
Resolves a conflict group in one click: the newest holding statement stays, all older ones are superseded. Human session only; the reason is prefilled. |
POST /konflikte/ergaenzen |
Marks a conflict group as complementary so its statements hold side by side. Human session only; if a new statement joins, detection fires again. |
GET /konflikte/ergaenzend-geschrieben |
What was written as ergaenzend, per topic with its author, and whether the group still appears in GET /konflikte. |
GET /konflikte/ergaenzungen |
The complementary markings, newest first, with who and when; ended ones stay readable. |
POST /konflikte/ergaenzungen/{id}/beenden |
Lifts a complementary marking (human session only); it stays readable. 409 if it is already ended. |
GET /warum/{sache} |
A topic's current rule, the decisions behind it, its history and the latest check result. |
POST /widersprueche |
Records a contradiction between two statements, with a reason and no confidence score; the source is a human or an answered question. 409 if the pair already has one in force. |
POST /widersprueche/{id}/beenden |
Withdraws a contradiction; it stays readable and nothing is deleted. 409 if it is already ended. |
Hypotheses
| Method & path | What it does |
|---|---|
GET /hypothesen |
Lists hypotheses by deadline; faellig=true returns only provisional ones whose deadline has passed. |
POST /hypothesen |
Creates a hypothesis (status vorlaeufig); frist and a known pruefweg_slug are required, sicherheit must be below 1. |
POST /hypothesen/{id}/bewerten |
Resolves a hypothesis: bestaetigt (now holds), widerlegt, or verlaengert with neue_frist. |
Checks and deviations
| Method & path | What it does |
|---|---|
GET /abweichungen |
Lists deviations with ursache, stumm and a ready-made ticket_text; optional seit=. |
POST /abweichungen/{pruefweg_slug}/pruefweg-kaputt |
Marks the check itself as broken and removes it from the traffic light, not from the deviation list. 409 if already reported. |
POST /abweichungen/{pruefweg_slug}/regel-ueberholt |
Turns a deviation into a click question on whether to keep or replace the rule. 409 while an open question already exists. |
POST /abweichungen/{pruefweg_slug}/verfolgen |
Marks a deviation as tracked, optionally with a ticket, and returns the ticket text. 409 if the check is not currently deviating. |
GET /pruefwege |
Lists all checks, including ended ones, with the last run and the cause columns. |
POST /pruefwege |
Creates or updates a check. 403 if the project is not enabled for checks, 422 for a command without an allowed form or with a writing pattern. |
POST /pruefwege/{slug}/beenden |
Ends a check (grund and von required): it no longer runs or reports deviations but stays readable. Nothing is deleted. |
POST /pruefwege/{slug}/run |
Runs a check, stores the result and records a fact; a clean run resolves an open deviation. 409 if the check has been ended. |
Processes
| Method & path | What it does |
|---|---|
GET /prozesse |
The highest version of each process with step and gap counts; alle=true also shows replaced and ended ones. |
POST /prozesse |
Creates a process, or a new version if the slug exists; the previous version gets gilt_bis. |
GET /prozesse/{slug} |
A process with its steps, rules per step, gaps and all versions; ?version= returns exactly that version. ueberholt: true if ended. |
POST /prozesse/{slug}/beenden |
Ends the current version of a process without a successor; it stays readable. 409 if already ended. |
GET /prozesse/{slug}/bild/{key} |
Redirects (302) to a process step's image, or 404. |
Questions and open items
| Method & path | What it does |
|---|---|
POST /fragen |
Asks a click question with at least two options, each with a folge. For an autonomous role it goes to that role's contact instead (202). |
GET /fragen/beantwortet |
The decided questions as a table with search, filters, sorting and paging, optionally with facets. Writes nothing. |
GET /fragen/seit |
Answered questions since a point in time (or gestern), newest first. |
POST /fragen/{id}/antwort |
Answers a question with an option (key) or own text; this becomes a decision, and an option may supersede the current rule. Humans only (guide key only without effect on rules); 409 for a different second answer. |
POST /fragen/{id}/antwort-im-chat |
A persona with lead rights enters a human's choice made in chat into its own open question. Only from a human's chat session; nothing is superseded and no rule is set. |
POST /fragen/{id}/rueckfrage |
A human asks the asker a follow-up; the question stays open and the asking persona gets a message. 409 if the question is not open. |
GET /fragen/{id}/rueckfragen |
The follow-ups on a question, oldest first, with the human's name. |
POST /fragen/{id}/zurueckziehen |
Withdraws an open question with a reason; it remains as a state. 422 for an answered question, 409 if already withdrawn. |
GET /offen |
Everything that needs a click, per source with state ruhig, unbekannt or achtung: questions, approvals, conflicts, due hypotheses, inbox and more. |
POST /offen/hinweis/{id}/erledigt |
Marks a lesson notice for agents as read, like POST /lehren/{id}/gelesen. |
POST /offen/{typ} |
Adds an open item of type freigabe or design. konflikt is rejected because conflicts are computed. |
POST /offen/{typ}/{id}/ablehnen |
Closes an open item as rejected so a no stays visible; the note is optional. |
POST /offen/{typ}/{id}/erledigt |
Closes an open item as done; for an approval this means granted. |
GET /rueckfragen |
The follow-ups for several questions in one call (fragen as a comma list). An unknown number is left out of the response. |
Answers from chat
| Method & path | What it does |
|---|---|
GET /fragen/{id}/chat-antwort |
Shows whether a question was answered from chat and whether the answer is still provisional (vorlaeufig_bis). 404 if it was not answered from chat. |
POST /fragen/{id}/chat-widerspruch |
Objects to an answer given from chat and ends the resulting decision; grund is required. Web interface only, by the human whose chat it was or an owner/admin; 409 once the window has passed. |
Changing answers
| Method & path | What it does |
|---|---|
POST /fragen/{id}/antwort-aendern |
Changes the answer to an answered question: the new decision supersedes the old one and a rule derived from it is ended. Humans only (guide key only without effect on rules); 409 if not answered. |
GET /fragen/{id}/antwort-verlauf |
A question's current answer, its earlier answers and the options, including whether the answer can still be changed. |
Core, graph and search
| Method & path | What it does |
|---|---|
GET /ereignisse |
Lists events, newest first, optionally by subjekt_id and from seit. |
POST /ereignisse |
Records an event for a subject. Idempotent on quelle_ref: identical content returns 200, different content 409. |
GET /graph |
Nodes and edges around an item up to tiefe, optionally limited by tage. Without slug the core picks the most connected item. |
GET /graph/ansichten |
Saved graph views, newest first; with alle=true including ended ones. |
POST /graph/ansichten |
Saves a graph view (item, tiefe, tage, name). 422 for invalid values, 409 if the name is already taken among open views. |
POST /graph/ansichten/{id}/beenden |
Ends a graph view; it disappears from the list but is not deleted. 409 if it is already ended. |
GET /graph/kandidaten |
Selection list for the graph: active items with their neighbour count, most connected first, filterable by area and search text, pageable. |
GET /kern/{subjekt_id} |
A subject's rules currently in force as Markdown, grouped by area, plus hash. |
GET /regelwerk/abdeckung |
How many decisions carry a statement in force: total, with, without and quote (null when there are none). |
GET /suche |
Full-text search across statements and events, with gesamt, abgeschnitten and weiter for paging; persona= filters statements by that persona's view. |
Memory
| Method & path | What it does |
|---|---|
GET /gedaechtnis |
The customer-wide list of current memory entries, filterable by area, persona, level, type and search text. Contradictory filters return 422, not an empty list. |
POST /gedaechtnis/backfill-bereiche |
Sets the area of entries without one from their first tag that names a known area. Human, guide or leadership only; trocken=true counts without writing. |
POST /gedaechtnis/bereich |
Assigns one area to up to 500 entries at once. Unknown or ended entries come back in uebersprungen; an unknown area changes nothing (422). |
GET /gedaechtnis/bereich-vorschlaege |
Suggests an area for each current entry without one, with the reason the rule matched. Read-only; changes nothing. |
GET /gedaechtnis/stats |
Counters over current memory: total, per area, per level and per persona, plus entries without an area, without recorded origin and without a persona. |
PATCH /gedaechtnis/{id} |
Changes bereich and/or gilt_bis of an entry, including company-wide ones; only fields sent are changed. A persona-bound key only changes its own persona's entries. |
POST /gedaechtnis/{id}/eigen-machen |
Turns a shared entry back into its author's own; the area stays and the change is logged. 409 if already personal or ended. |
POST /gedaechtnis/{id}/teilen |
Turns a persona's own entry into a shared one for its area; the author stays in herkunft and the change is logged. 409 if already shared or ended. |
GET /gedaechtnis/{id}/verlauf |
Every switch of an entry between personal and shared, oldest first, with actor and before/after values. 404 for an unknown entry. |
Import and export
| Method & path | What it does |
|---|---|
GET /export/agents-md |
The holding rules as text for an AGENTS.md. |
GET /export/claude-md-section0 |
The holding rules as Markdown text, by area and topic. |
GET /export/cursor-rules |
The holding rules as a ZIP of Cursor rule files. |
POST /import/claude-md |
Preview of an import from CLAUDE.md, AGENTS.md or Cursor rules: a scan without a language model returns suggestions in the original wording. Writes nothing. |
POST /import/claude-md/apply |
Writes the reviewed suggestions as topic and statement, idempotent via quelle_ref; conflicts are reported, not overwritten. Only a human creates rules from CLAUDE.md. |
POST /import/decisions |
Imports decisions in bulk, idempotent via their number. Differing content or a second holding rule ends up in widerspruch; the response stays 200. |
Export
| Method & path | What it does |
|---|---|
GET /export |
Exports the customer's full data as NDJSON (format=json) or as a readable rulebook in Markdown (format=markdown), as a download. An access bound to a persona gets 403. |
GET /export/kopf |
Just the export header: format version, timestamp, customer and counts, without the records themselves. |
Personas
| Method & path | What it does |
|---|---|
GET /persona-vorlagen |
Lists the active persona templates that can be staffed in this project. |
POST /persona-vorlagen/vorschlag |
Ranks templates by keyword matches against a free-text bedarf, deterministically and without a language model; writes nothing. |
GET /persona-vorlagen/{slug} |
Returns a persona template. 404 for an unknown template. |
POST /personal-vorschlaege |
Submits a staffing proposal (einstellen with a draft, verabschieden, loeschen, pausieren); einstellen asks the human a question. 409 when too many proposals are open. |
GET /personas |
Lists personas with counts (anzahl_regeln, anzahl_gedaechtnis), template, title and image address; with ehemalige=true only retired ones. |
POST /personas/from-vorlage |
Creates a new persona from a template. Only humans or a persona with the right to manage personas; 409 if the slug already exists; 422 in a company (personas live in departments). |
POST /personas/gedaechtnis/import |
Imports memory entries in bulk, idempotent on quelle_ref; differing content is reported as a conflict, not overwritten. persona_slug=null writes company memory. |
GET /personas/organigramm |
Returns the hierarchy of active personas built from leadership and nimmt_auftraege_von. |
GET /personas/{slug} |
Returns a persona's full record with sichtfeld, rules and the latest memory entries. 404 for an unknown slug. An access bound to another persona gets only some of the fields and never the memory. |
PUT /personas/{slug} |
Creates or fully replaces a persona; omitted fields reset to their defaults. Only humans or a persona with the right to manage personas; 422 in a company (personas live in departments). |
PATCH /personas/{slug} |
Changes only the given fields of an existing persona (null clears a field) and records the changed field names as an event. Only humans or a persona with the right to manage personas. |
DELETE /personas/{slug} |
Actually deletes a persona, but only if it has no traces at all; otherwise 409 with the list of traces (retire it instead). The slug stays blocked; humans only. |
GET /personas/{slug}/anleitung |
Returns the copy-ready instructions for a persona: start a new chat, connect, first sentence. Contains no key; 404 for an unknown persona. |
GET /personas/{slug}/bild |
Returns a persona's portrait as an image. 404 if it has none. |
POST /personas/{slug}/bild |
Uploads a portrait; a further upload replaces the current one. Humans only. |
GET /personas/{slug}/bild/vorschlag |
Returns a persona's open portrait proposal without image data. 404 if there is none. |
POST /personas/{slug}/bild/vorschlag |
Generates a portrait proposal via an image model (billed and counted in usage); an open proposal is discarded. Humans only; 503 if not set up. |
GET /personas/{slug}/bild/vorschlag/bytes |
Returns the image of the open portrait proposal. 404 if there is none. |
POST /personas/{slug}/bild/vorschlag/uebernehmen |
Adopts the open proposal as the persona's portrait, with quelle generiert. Humans only. |
POST /personas/{slug}/bild/vorschlag/verwerfen |
Discards the open portrait proposal; it is kept with verworfen_am. Humans only. |
GET /personas/{slug}/brief |
Returns the persona's deterministic Markdown brief, built without a language model. Tunable with max_gedaechtnis, budget and max_lehren. An access bound to another persona reads it only as a lead or the guide, without memory; otherwise 403. |
GET /personas/{slug}/brief/stats |
Returns the figures the brief is built from as structured data instead of text. Whoever may not read the brief does not get these figures either (403). |
GET /personas/{slug}/gedaechtnis |
Searches the persona's own memory and the visible company memory; alle=true also shows ended entries and those outside its field of view (logged). |
POST /personas/{slug}/gedaechtnis |
Adds a memory entry to the persona (fakt, feedback or ereignis). |
POST /personas/{slug}/gedaechtnis/uebernehmen |
The successor takes over its retired predecessor's memory as copies and ends the originals, or ends selected entries only. Only humans or a persona with the right to manage personas. |
PATCH /personas/{slug}/gedaechtnis/{id} |
Ends a memory entry of this persona (gilt_bis); the entry is kept. |
POST /personas/{slug}/verabschieden |
Retires a persona with a required grund and an optional successor; its record is kept. Only humans or a persona with the right to manage personas; 409 if already retired. |
GET /portraet-erzeugung |
Reports whether portrait generation is set up, with provider and model or the name of the missing variable, never its value. |
GET /vorlagen-pakete |
Lists the optional template packages with their templates and freigeschaltet, including locked ones. |
Persona changes
| Method & path | What it does |
|---|---|
GET /persona-aenderungen |
Persona changes in the project with a total count; von_agenten=true only those made by personas. |
POST /personas/aenderungen/{id}/zuruecknehmen |
Reverts a change to a persona by writing the old value as a new change. Humans only; 409 if already reverted or changed since. |
GET /personas/{slug}/aenderungen |
The changes made to a persona, newest first. |
PUT /personas/{slug}/recht |
Grants or revokes a persona's right to manage personas. Only a project admin with a human session. |
POST /personas/{slug}/wiedereinstellen |
Reinstates a retired persona. Humans only; 409 if it is not retired. |
Assessment
| Method & path | What it does |
|---|---|
GET /personas/{slug}/beurteilung |
A persona's record: open role proposals, successes, self-reported mistakes, relapses and feedback from humans. |
POST /personas/{slug}/rollen-vorschlag |
Proposes a change to aufgabe, koennen, stil or grenzen, backed by lessons, and puts a question to a human. 409 if a proposal for the same field is open. |
Transferring roles
| Method & path | What it does |
|---|---|
POST /personas/{slug}/uebernehmen |
Turns a transferred draft into a role in the target project. Owners or administrators only; 409 if the role is not a draft. |
POST /personas/{slug}/uebertragen |
Copies a role as a draft into another project of the same person. Human session only, and only as owner or administrator in the target project. |
Areas
| Method & path | What it does |
|---|---|
GET /bereiche |
The areas in alphabetical order, each with its fill level and the personas reading it; also areas outside the registry (in_registry: false). Active fields by default; alle=1 also shows ended fields with their reason and author. |
POST /bereiche |
Creates an area (201). 409 if it exists, 422 if the name is not a kebab-case slug or the description is empty. |
PUT /bereiche/verantwortliche |
Sets the owners of several areas in one request (zuordnung: area → persona, null removes the owner). Humans only. All or nothing: if one entry fails, every error is in the response and nothing changes. Every change is logged. |
PATCH /bereiche/{name} |
Moves an area under another one (eltern), sets who is responsible (verantwortlich) or the areas that share it (genutzt_von, replaces the list). Humans only; 422 for a cycle, an unknown parent or persona. The name never changes. |
POST /bereiche/{name}/beenden |
Ends a field while preserving its name and existing links. Requires a signed-in human owner or administrator. Active personas require explicit confirmation. |
GET /bereiche/{name}/vorschau |
Shows the linked topics, rules, documents and tickets, plus active personas that see this field directly, through the area hierarchy or sharing, before ending it. Makes no changes. |
POST /bereiche/{name}/wieder-aufnehmen |
Reactivates an ended field and preserves its earlier reason, time and author in history. Requires a signed-in human owner or administrator. |
Agents and mailboxes
| Method & path | What it does |
|---|---|
GET /agents |
All active personas with presence, sessions and mailbox counts; brief=false skips the costly brief fill level. |
GET /agents/auftraege |
The project's tasks with status, recipient and age, filterable and searchable, with gesamt, abgeschnitten and weiter. |
POST /agents/auftraege/reihenfolge |
Sets the order of open tasks: the listed ones first, all others after, renumbered. Only unbound access or a leading persona. |
POST /agents/auftraege/{id}/kommentar |
Comments on a task; the comment is recorded in the history and sent as a message to the assigned persona when someone else writes it. |
GET /agents/auftraege/{id}/verlauf |
A task's history: status changes and comments with who and when, oldest first. |
POST /agents/herzschlag |
Heartbeat of a persona's session; a read-only key suffices. 404 for an unknown persona, an error for a retired one. |
GET /agents/nachrichten |
All of the project's messages, newest first; an_mensch narrows them, seit_id reads onward after an id, seit filters by send time. |
POST /agents/nachrichten/an-mensch |
A persona sends a message or task to the human; von_persona and von_sitzung are required. |
POST /agents/nachrichten/gelesen |
Marks several messages as read in one call, all or nothing: an unknown ID rolls back the whole batch. |
GET /agents/nachrichten/{id} |
One message with its full text; marks nothing. A bound key reads only messages to or from its persona, and a round contribution only as a participant (403 otherwise). |
POST /agents/nachrichten/{id}/gelesen |
Marks a message as read and returns it. |
POST /agents/nachrichten/{id}/status |
Changes an assignment status and notifies the requester once per transition. blockiert and abgelehnt require a reason; braucht_von is optional. |
POST /agents/offline |
Explicitly signs off a session. 404 if it never sent a heartbeat. |
GET /agents/postfaecher |
The pickup state of every recipient's mailbox, and whether the caller may close out someone else's mail. |
GET /agents/systemstatus |
Whether heartbeats have failed overall: latest heartbeat, minutes since, active personas, ausfall. No heartbeat at all is not an outage. |
GET /agents/verbrauch |
Reported usage grouped by persona, monat or sitzung; missing values stay null and are counted. |
POST /agents/verbrauch |
A session reports its model usage; a repeated report replaces the earlier one. The core computes the cost from the stored prices. |
GET /agents/verbrauch/ohne-meldung |
Finished or overdue sessions that never reported their usage. |
GET /agents/{persona}/nachrichten |
A persona's messages; with sitzung= undelivered ones are marked as delivered. |
POST /agents/{persona}/nachrichten |
Sends a message or task to a persona. Exactly one of von_persona and von_mensch is required; a read-only key may only send as a persona. |
GET /agents/{persona}/postfach |
Counts a persona's mailbox (unread, open and accepted tasks, oldest unread) without changing anything. |
POST /agents/{persona}/postfach/abschliessen |
Marks the stale mail of a persona that has not picked anything up for a long time as read; open tasks stay. Only a human with an admin role. |
POST /agents/{persona}/routinen/abholen |
Returns the routines due for this session and marks them delivered; a second call does not return them again. |
Human inbox
| Method & path | What it does |
|---|---|
POST /agents/nachrichten/{id}/vormerken |
Marks a read message as unread again without clearing its read time. Human session and own mail only, otherwise 403 or 404. |
DELETE /agents/nachrichten/{id}/vormerken |
Clears the unread flag on a message; the read time stays. Without a flag nothing changes. Human session only. |
GET /postfach |
The signed-in person's mail, newest first, paged via vor_id, filterable by unread. Requires a human session. |
POST /postfach/alle/gelesen |
Marks all visible unread messages in the person's inbox as read and clears their re-flags; returns how many were marked. Human session only. |
GET /postfach/zahlen |
Counts for the navigation: unread messages and undecided assignments in the person's inbox. Requires a human session. |
POST /postfach/{id}/antworten |
Replies to the agent that sent the message (201) and marks it read. Human session only; 422 if it did not come from a persona. |
POST /postfach/{id}/gelesen |
Marks a message as read by the person and clears any re-flag; the first read time is kept. Human session only. |
Rounds
| Method & path | What it does |
|---|---|
GET /runden |
All rounds, including closed ones, newest first; filterable by offen and persona. |
POST /runden |
Opens a round with a title, a question and at least two personas as participants. 409 if the slug is already taken. |
GET /runden/{slug} |
A round with its contributions and each participant's contribution limit status. |
POST /runden/{slug}/beitraege |
Posts a contribution to a round, as a participating persona or as a human. At most three per persona, then only answers to a question put to it; 409 if the round is closed. |
POST /runden/{slug}/gelesen |
Sets a participant's read marker, up to the latest contribution if bis is omitted. The marker only moves forward. |
POST /runden/{slug}/schliessen |
Closes a round with a one-sentence result. Only whoever opened it; 409 if it is already closed. |
Requests to other departments and projects
| Method & path | What it does |
|---|---|
GET /anfrage-wege |
Lists this project's incoming request routes with per-route counters; beendet=true includes ended ones. |
POST /anfrage-wege |
Creates a directed request route in the destination project. Requires a human with an owner/admin role in both projects; for the operator destination, its owner/admin role suffices. |
GET /anfrage-wege/absender-auswahl |
Lists the signed-in human’s own active sender projects with an owner/admin role, excluding the current project. An empty selection names the reason rolle or kein_zweites_projekt. |
GET /anfrage-wege/absender-pruefen |
Confirms a sender project’s name using the creation permissions. Outside the operator destination, missing sender permission and unknown projects return the same 403; rate-limited with 429. |
GET /anfrage-wege/gesendet |
The routes on which this project is the sender, including ended ones: type, target, status and, if ended, when and why. Nothing else about the target. |
GET /anfrage-wege/typen |
The types this project may send requests with (its open routes as sender). [] means no route is set up. |
POST /anfrage-wege/{weg_id}/beenden |
A destination owner or admin ends a request route, optionally with grund; no sender-project role is needed. Nothing is deleted and received requests remain answerable; 409 if already ended. |
GET /anfragen |
The requests this project receives, filterable by status (default: all open ones). Each row carries its origin and is marked as foreign text. |
POST /anfragen |
Sends a request over an existing route; without a route it is refused and nothing is written. For type abteilung, optionally an_persona (an active agent of the target department) and nur_info (for information only, status zur_kenntnis, no answer expected). The response gives ID, type, status and time, and may include the published profile in zustaendigkeit and suggestions for other reachable departments in zustaendigkeits_hinweise. |
GET /anfragen/gesendet |
Status and answer of this project's own sent requests, with target and own persona. The answer is foreign text; an unknown id returns an empty list. |
POST /anfragen/{anfrage_id}/ablehnen |
Declines a request (final state abgelehnt); the reason goes to the sender. If it waits for a human, only the one who took it over may decline. |
POST /anfragen/{anfrage_id}/annehmen |
Moves an open request to angenommen (“seen”); no answer, not a final state. 409 if it is not open. |
POST /anfragen/{anfrage_id}/beantworten |
Answers a request (final state beantwortet); the answer is plain text and goes to the sender's inbox. If it waits for a human, only the one who took it over may answer. |
POST /anfragen/{anfrage_id}/braucht-mensch |
Moves an open or accepted request to wartet_auf_mensch and notifies the department's humans. A reason is required. |
POST /anfragen/{anfrage_id}/uebernehmen |
A human takes over a request waiting for a human; the first one wins, the second gets 409 with their name. Human login with a write role only. |
GET /anfragen/{anfrage_id}/wissen |
Reads the source reference and current validity of an incoming knowledge copy. |
POST /anfragen/{anfrage_id}/zurueckgeben |
A human returns a waiting request to the accepting persona or a named one; it is offen again. Human login with a write role only. |
POST /wissen/uebertragen |
The designated department lead transfers shared knowledge within a company with its source reference. Rules become questions requiring human approval. |
GET /wissen/uebertragungen |
Reads incoming knowledge copies in pages with source references and current source validity. |
Lessons
| Method & path | What it does |
|---|---|
GET /lehren |
Lists lessons, filterable by art, status, bereich, persona, sichtfeld, q and offen_hinweise. |
POST /lehren |
Writes a lesson (fehler, gelungen or hinweis); bereich is required, ursache for fehler. Idempotent on quelle_ref. |
POST /lehren/import-gedaechtnis |
Imports file-based feedback memory entries as fehler lessons, idempotently; trocken=true writes nothing. The memory entries remain. |
GET /lehren/stats |
Counts for current lessons: by status and type, this week, and unread notices. |
GET /lehren/{id} |
A lesson with its linked question and, if it became a rule, that rule. |
PATCH /lehren/{id} |
Corrects a lesson's area or wording; a sent field is replaced. Creator only; the cause cannot be changed; 409 for an ended lesson. |
POST /lehren/{id}/antwort |
Replies to a notice and also writes a memory entry for its persona. 422 if the lesson is not a notice. |
POST /lehren/{id}/aufnehmen |
Marks an open lesson as seen and correct (aufgenommen), optionally with a note. 409 if it is not open. |
POST /lehren/{id}/beenden |
Ends a lesson (gilt_bis); it stays readable. 409 if already ended. |
POST /lehren/{id}/gelesen |
Marks a notice as read. |
POST /lehren/{id}/regel-vorschlagen |
Asks a click question to turn the lesson into a rule; the rule only comes into being through a human's answer. |
POST /lehren/{id}/verwerfen |
Discards a lesson with a required grund, optionally naming the rule that covers it; it stays readable. 409 if already discarded or turned into a rule. |
Curator
| Method & path | What it does |
|---|---|
GET /kunden/{kunde_slug}/kurator |
The curator's state for this customer: bereit, the reason if it cannot run, the provider and the number of due questions. Human session, any role. |
PUT /kunden/{kunde_slug}/kurator |
Switches the curator on or off for this customer. Human session with owner or admin role only; the response also says whether it can actually run. |
POST /kurator/fristen |
Puts announced rules into force once their 48-hour objection period has passed, if the curator is switched on. trocken=true writes nothing. |
POST /kurator/trockenlauf |
Shows what the curator would decide about the lessons, writing nothing. grenze must be between 1 and 200, otherwise 422. |
Hall of Fame
| Method & path | What it does |
|---|---|
GET /hall-of-fame |
The weekly points ranking per persona with badges; woche= selects another week. |
GET /hall-of-fame/abzeichen |
All badges, most recent week first; optionally filtered by persona. |
GET /hall-of-fame/quellen |
Which point sources currently fire and which are only registered. |
POST /punkte/sparsamkeit/tagesabschluss |
Books the thrift points for one day (the previous day without tag), idempotently. The response states who got no points and why. |
Recognition (thumbs up)
| Method & path | What it does |
|---|---|
GET /daumen |
Lists thumbs up, filterable by persona, objekt_typ and seit. |
POST /daumen |
Gives a thumbs up, from a human only: a persona as von gets 403. 409 for a second thumbs up by the same person on the same object. |
POST /daumen/{id}/zuruecknehmen |
Withdraws a thumbs up with an offsetting entry; nothing is deleted. 409 if already withdrawn. |
GET /personas/{slug}/daumen |
Returns a persona's thumbs up: total, this week and the most recent ones. |
Statistics
| Method & path | What it does |
|---|---|
GET /statistik |
Metrics in six blocks, computed in one transaction and stamped with stand; nur=gehirn returns only the first block. |
Usage statistics
| Method & path | What it does |
|---|---|
GET /statistik/nutzung |
How the memory is read, for heute, 7 or 30 days: reads per kind, most-read targets and never-read items. Without any counting, null instead of 0. |
Rundgang (daily round)
| Method & path | What it does |
|---|---|
GET /rundgang |
The result of every inspection-round check with count, threshold and affected records, plus the current modus. Read-only; runs even when the mode is aus. |
GET /rundgang/einstellungen |
The tenant's current inspection-round mode with an explanation and the three available levels. |
PUT /rundgang/einstellungen |
Sets the inspection-round mode (aus, rechnend, rechnend_lesend) and records the change as an event. 422 for a level that cannot be chosen. |
POST /rundgang/melden |
Files one bundled notice as a lesson per category above its threshold. Does nothing when the mode is aus; trocken=true evaluates without writing. |
POST /rundgang/sicherung-meldung |
Reports an off-site backup run (ok or fehler) as an event that the inspection round checks. Text at most 500 characters; 409 without an operations subject. |
POST /rundgang/versenden |
The morning report: one bundled email per active member covering all pending deliveries, never the same finding twice to the same recipient. |
GET /rundgang/zahl |
The last measured number of exceeded checks with its stand, without rerunning the catalogue. Without a measurement ueberschritten is null, never 0. |
Webhooks
| Method & path | What it does |
|---|---|
GET /webhooks |
Your webhooks, without the secret. |
POST /webhooks |
Subscribes to events. postfach.neu reports every new persona message without its content and with an unread count; postfach_personas filters and postfach_buendel_sekunden batches notifications. |
POST /webhooks/{id}/deaktivieren |
The webhook stops sending and stays readable; nothing is deleted. 409 if it is already deactivated. |
POST /webhooks/{id}/test |
Queues a delivery with the ping event, regardless of the subscribed events. 409 if the webhook is deactivated. |
GET /webhooks/{id}/zustellungen |
A webhook's deliveries, newest first, with attempt, status, last HTTP code and last error. |
Documents
| Method & path | What it does |
|---|---|
GET /dokumente |
Lists documents without content, with search in title and text, filters, sorting and paging (gesamt, weiter). |
POST /dokumente |
Creates a new document. 409 if the slug already exists. |
GET /dokumente/{slug} |
Returns a document with its content; an ended one is still returned, with status beendet. |
PUT /dokumente/{slug} |
Writes a new version of title or content; the old one stays in the version history. 409 on a stale erwartete_version or when nothing changes. |
GET /dokumente/{slug}/anhaenge |
Lists a document's attachments without file content, oldest first, each with the version it was added to. |
POST /dokumente/{slug}/anhaenge |
Attaches an original file to the current version; with als=neue_fassung a new version is created first. 409 for the same file or an ended document. |
POST /dokumente/{slug}/anhaenge/upload-adresse |
Issues a one-time, short-lived upload address for a document; the token appears only in this response. 503 without a configured public address, 409 for an ended document. |
GET /dokumente/{slug}/anhaenge/{anhang_id} |
Returns an attachment's original file as a download, images for viewing; vorschau=1 returns the small WebP version of an image. |
POST /dokumente/{slug}/beenden |
Ends a document with a required grund; it stays readable with status beendet. 409 if already ended. |
POST /dokumente/{slug}/patch |
Replaces exact text passages (alt, neu, anzahl) as a new version, all or nothing. erwartete_version is required; 409 on a version conflict or an ended document. |
GET /dokumente/{slug}/versionen |
Lists a document's superseded versions, newest first; the current one comes from GET /dokumente/{slug}. |
POST /uploads/anhang |
Accepts a file via a one-time upload address, without key or session: the token in the header is the credential. 403 for an invalid token. |
Document folders
| Method & path | What it does |
|---|---|
GET /dokument-einordnung/vorschlag |
Dry run: where the sorting rules would place active documents that have neither a type nor a folder, with counts. Writes nothing. |
GET /dokument-ordner |
All folders of the project, flat in tree order with eltern_id, pfad and document counts, plus ohne_ordner. Closed folders only with beendet=true. |
POST /dokument-ordner |
Creates a folder (name, optional eltern_id). 409 if a folder with the same name exists on that level, 422 if the maximum depth would be exceeded. |
PUT /dokument-ordner/reihenfolge |
Sets the order of a parent folder's active children; ordner_ids must list exactly all folders on that level, otherwise 422. Applies to everyone in the project. |
PATCH /dokument-ordner/{id} |
Renames and/or moves a folder (eltern_id, null = to the top); every move is recorded with its author. 422 on a cycle or excessive depth, 409 on a name clash. |
POST /dokument-ordner/{id}/beenden |
Closes a folder instead of deleting it; grund is required. 409 while it still contains active documents or subfolders. |
POST /dokumente/{slug}/anheften |
Pins a document for the signed-in human; nobody else sees it. Humans only, 409 if it is already pinned. |
POST /dokumente/{slug}/loesen |
Unpins a document for yourself; this is a state change, nothing is deleted. Humans only, 409 if it is not pinned. |
POST /dokumente/{slug}/verschieben |
Puts a document into a folder, or out of all folders with ordner_id: null; recorded with its author, the text stays unchanged. 409 if it is already there or closed. |
GET /dokumente/{slug}/verschiebungen |
A document's folder history, newest first: from, to, reason, time and author. |
Document comments
| Method & path | What it does |
|---|---|
GET /dokumente/{slug}/kommentare |
A document's comments as a tree with replies and counts, optionally filtered by status. |
POST /dokumente/{slug}/kommentare |
Comments on a document or replies to a comment (one level); notifies those involved. 409 for an ended document. |
POST /dokumente/{slug}/kommentare/{kid}/beenden |
Ends a comment with a reason; it is kept, not deleted. 409 if it is already ended. |
POST /dokumente/{slug}/kommentare/{kid}/erledigt |
Marks a comment as resolved, optionally with a note. 409 for replies and for ended or already resolved comments. |
Folder shares
| Method & path | What it does |
|---|---|
POST /freigaben/{id}/beenden |
Ends a share instead of deleting it; the external user's active session ends at once. Ending again changes nothing; owner or admin only. |
GET /freigaben/{id}/dokumente |
All documents in force in the folder subtree with ausgewaehlt and version state, plus selected ones now outside it. Owner or admin only. |
POST /freigaben/{id}/dokumente |
Changes a share's document selection; alle: true adds every document currently in force in the subtree. Only a human owner or admin. |
POST /freigaben/{id}/rechte |
Changes a share's permissions with immediate effect; every change is logged. 409 for an ended share; owner or admin only. |
GET /freigaben/{id}/spur |
A share's access trail: when which document or attachment was retrieved or refused, without IP. Owner or admin only. |
POST /ordner/{id}/freigabe-link |
Shares a folder by link without an account; only a human with admin rights, and only if the project has switched it on. The link appears only in this answer. |
GET /ordner/{id}/freigabe-vorschau |
Shows which folders, documents and attachments a share of this folder would expose. Writes nothing; owner or admin only. |
GET /ordner/{id}/freigaben |
A folder's shares, newest first, with a count of its contents. Owner or admin only. |
POST /ordner/{id}/freigaben |
Shares a folder with one email address; the access link is sent only by email. Without mail delivery 503 and nothing is created. Owner or admin only. |
Share proposals
| Method & path | What it does |
|---|---|
GET /freigabe-vorschlaege |
The project's share proposals, open ones first, optionally filtered by status. |
POST /freigabe-vorschlaege |
A persona proposes a folder share with a reason; a question is created and nothing is shared until an admin approves. 429 above the limit of open proposals. |
GET /freigabe-vorschlaege/{id} |
One share proposal with its preview. |
Shared folders (external)
| Method & path | What it does |
|---|---|
POST /frei/abmelden |
Ends an external person's session. |
POST /frei/anmelden |
Signs in an external person with link and code and returns session, expiry, folder and rights. Every failure gives the same 401. |
POST /frei/code |
Requests a sign-in code for a share link, sent to the shared address. Always answers 202, even for an invalid link. |
GET /frei/dokumente/{slug} |
Title and text of a document's shared version. 404 if it is not shared. |
GET /frei/dokumente/{slug}/anhaenge/{nr} |
Downloads an attachment of a shared document. 404 if the document is not visible, 403 without the herunterladen right. |
GET /frei/dokumente/{slug}/kommentare |
This share's own comments on a document, with replies to them. 403 without the kommentieren right. |
POST /frei/dokumente/{slug}/kommentare |
An external person comments on a shared document (at most 4000 characters). 403 without the kommentieren right, 429 for too many comments. |
POST /frei/link-anmelden |
Signs in with a share link without an account, if the project allows it, with a password if one is set. Every failure gives the same 401. |
GET /frei/ordner |
The shared documents as a flat list with their attachments (without content) and the session's rights. |
Evidence
| Method & path | What it does |
|---|---|
GET /aussagen/{aussage_id}/nachweise |
Which documents back this statement, with confirmation (bestaetigt_am, bestaetigt_von). Withdrawn evidence only with beendet=true. |
POST /aussagen/{aussage_id}/nachweise |
Attaches a document as evidence, initially unconfirmed. 409 if it already backs the statement or the document is closed. |
POST /nachweise/{nachweis_id}/beenden |
Withdraws a piece of evidence; it stays readable, nothing is deleted, and the same document may be attached again. 409 if already withdrawn. |
POST /nachweise/{nachweis_id}/bestaetigen |
Records that someone has looked at the evidence; the statement's status stays unchanged. 409 the second time or for withdrawn evidence. |
Tickets
| Method & path | What it does |
|---|---|
GET /epics |
The project's epics by rank, target date and number, with progress from their tickets and today's date for the timeline. |
PUT /epics |
Creates an epic (without nr, 201) or updates it (with nr). Start and target date are required; only a human may set zustand=fertig. rang and verschieben (up/down) are set only by a human. With vorschlag it adopts an open proposal. |
POST /epics/import |
Imports an epic from an external system as a new epic with a reference to its origin. Human only; nr must be omitted. |
GET /epics/{nr} |
One epic with its tickets and its history. |
POST /epics/{nr}/vorschlaege |
Proposes moving the epic (start, target, reason); the epic does not change. A human or the lead adopts it with PUT /epics (vorschlag) or rejects it. |
POST /epics/{nr}/vorschlaege/{vid}/verwerfen |
Rejects an open proposal with a reason. Only a human or the lead; the proposal stays in the history. |
GET /streams |
The project's streams with status counts of their tickets, without paging. A ticket can belong to several streams; the per-stream counts then overlap. |
PUT /streams |
Creates or changes a stream. A human needs project administration, a lead persona the permission for stream_put. An ended stream keeps its assignments but takes no new ones. |
GET /streams/{kennung} |
One stream with its history, also after it has been ended. |
GET /tickets |
Lists the project's tickets, filterable by status, priority, assignee, epic, label, area and search text; with gesamt and abgeschnitten, pageable. |
POST /tickets |
Creates a ticket (201). A persona creates in the inbox (otherwise 403); if the assignee takes orders from it, it may name them on creation, also in backlog or todo. Leadership and humans pick any status. |
POST /tickets/import |
Imports a ticket from an external system with a reference to its origin. Human only; no network fetch, no sync. |
POST /tickets/pr-ereignisse |
Reports a PR event (opened, merged, closed) and moves the tickets whose identifier appears in its title or branch. Only a human or a key not bound to a persona. |
GET /tickets/{nr} |
One ticket with its history, linked PRs, acceptance rule and sub-tickets including progress. |
PATCH /tickets/{nr} |
Updates a ticket; every change is recorded with old and new value. A persona may change title, description, labels, streams and the work status of its own tickets; a ticket of its own, or an unassigned one it created, in backlog or todo may be assigned to a persona that takes its orders. Otherwise 403, unless it has leadership. |
POST /tickets/{nr}/besprechen |
Records the outcome of discussing a flagged ticket in the daily (todo, epic, backlog, discarded, duplicate). Human only; 409 if it is not flagged. |
POST /tickets/{nr}/kommentare |
Adds a comment to a ticket; it is recorded in the history and returned. |
POST /tickets/{nr}/prs |
Links a PR (https address) to the ticket: 201 the first time, 200 when the same address is sent again. |
Daily and roadmap
| Method & path | What it does |
|---|---|
GET /daily/eintraege |
The daily list entries, oldest first, filterable by bereich and zustand; gesamt and abgeschnitten show whether limit cut anything. 403 if the daily is switched off. |
POST /daily/eintraege |
Records a finding, question or idea by creating a ticket in the inbox. An emergency goes straight to the human as an urgent message. |
POST /daily/eintraege/{id}/zustand |
Decides an entry (humans only): besprochen, priorisiert, verworfen or auf_roadmap (then with a new roadmap point). There is no way back to offen. |
GET /daily/prioritaeten |
The current priority list of an area, in order, with when it was set. Empty is a named state. |
PUT /daily/prioritaeten |
Sets an area's priorities (humans only); the order is the rank. The previous list is superseded, not overwritten; if no daily is running, one is opened. |
POST /daily/starten |
Starts the daily for an area (humans only): closes any open one, opens a new one and returns the open entries. |
GET /roadmap |
The current roadmap by area and order, optionally narrowed to an owner persona and a state. |
GET /roadmap/anteil |
What share of the assignments completed in a calendar week came from the roadmap, per category with target values. With no completed assignments the share is null, not 0. |
PUT /roadmap/punkte |
Creates a roadmap point or writes a new version of it (humans only); the old version is superseded. fertig only with nachweis; 409 for a second in_arbeit point per persona. |
GET /roadmap/punkte/{nr} |
A roadmap point with its history: the current version and all superseded ones, oldest first. |
POST /roadmap/punkte/{nr}/in-arbeit |
An agent sets its own point to in_arbeit. 403 for someone else's point, 409 if it is fertig or the persona already has another one in progress. |
My Day
| Method & path | What it does |
|---|---|
GET /mein-tag |
“My Day” in one call: what is waiting, what is new or done since the reference point, who works on what, this week's roadmap. Read-only; ?bereich= and ?seit= narrow it down. |
POST /mein-tag/besuch |
Records a visit to “My Day”: from now on “new since” counts from here and shown reminders count as delivered. Humans only. |
Routines
| Method & path | What it does |
|---|---|
GET /routinen |
Lists the active routines of the project and its company; with persona only those that apply to that persona, with alle=true including ended ones. |
POST /routinen |
Creates a routine (art start or takt, scope persona, projekt or firma). Only humans, the guide and lead personas; otherwise 403. |
GET /routinen/zustellung |
Shows, per routine, when it was last delivered to which session of the persona; luecke flags routines never delivered despite active sessions. |
POST /routinen/{id}/aendern |
Changes a routine by superseding it: a new row with ersetzt pointing to the old one, which is ended. Only humans, the guide and lead personas. |
POST /routinen/{id}/beenden |
Ends a routine with a required grund; it stays in the history. Only humans, the guide and lead personas; 409 if already ended. |
Ledger
| Method & path | What it does |
|---|---|
GET /ledger/export |
The ledger chain links up to a head, for checking against a separately stored head. 409 if the chain is empty or not yet fully hashed. An access bound to a persona gets 403. |
GET /ledger/kopf |
The current head of the ledger chain (number, chain hash) with a completeness flag, without links. Meant to be stored separately. |
Linear import
| Method & path | What it does |
|---|---|
POST /agents/auftraege/linear-uebernahme |
Creates tasks for an_persona from the selected Linear tickets (kennungen); tickets already imported are skipped. Operator project only, owner or manager only. |
GET /agents/auftraege/linear-vorschau |
Shows a team's open Linear tickets and what each would become as a task; writes nothing. Operator project only, humans with the owner or manager role only. |
Company memory
| Method & path | What it does |
|---|---|
GET /firma |
The six fields of the company memory. |
PUT /firma |
Updates named fields of the company memory. Only with a signed-in human; a key alone gets 403, and the author comes from the sign-in. |
GET /firma/stats |
How many of the six fields are filled, which are empty and which are older than a year. |
Company and departments
| Method & path | What it does |
|---|---|
GET /betreiber/firmen/{firma}/einstellungen |
State of a customer company's switches and what the operator has changed. Only a person with a lead role in the operator project. |
PUT /betreiber/firmen/{firma}/einstellungen |
The operator sets abteilungsanfragen at the customer's request (grund required, the customer reads it). Only a person with a lead role in the operator project. |
GET /firma/annahme-persona |
This project's receiving persona, or null (without one no department request gets through), plus modus and frist_minuten. |
PUT /firma/annahme-persona |
Sets the persona that receives requests from other departments in this project; it must be an active agent. Owners or admins with a human session only. |
PUT /firma/annahme-regel |
Sets whether a department request waits for the persona (warten) or goes to humans after N minutes of absence (an_menschen). Owners or admins with a human session only. |
GET /firma/vorgaenge |
The company cases of the active project with the proposing company's name. Human session only. |
POST /firma/vorgaenge/{vorgang_id}/ablehnen |
Declines a company proposal for the active project, optionally with a reason. Human session only. |
POST /firma/vorgaenge/{vorgang_id}/loesen |
The project leaves the company at any time; its own data stays, it only loses read access to company data. Human session only. |
GET /firma/vorgaenge/{vorgang_id}/vorschau |
Measured effects of approving plus the hash the approval binds to. Read-only; project owners or admins with a human session only. |
POST /firma/vorgaenge/{vorgang_id}/zustimmen |
Approves a company proposal; only then is the project in the company. Bound to the preview hash; 409 vorschau_veraltet if it no longer matches. |
POST /firmen |
Creates a company; the creator becomes its owner and the slug is derived from the name. With erste_abteilung, the current project becomes the first department in the same step and gets its department name; if anything fails, nothing is created. Operators or owners of a project from Team upwards, with a human session. |
GET /firmen/{firma}/abteilungen |
The company map: its departments, with details only where the human has access. Company members with a human session only, otherwise 404. |
POST /firmen/{firma}/abteilungen |
Creates a new department directly in the company (name) or attaches an own project (projekt) without the approval loop. Company owners with a human session only. |
GET /firmen/{firma}/abteilungsanfragen |
The state of the department-request switch. Company members with a human session only, otherwise 404. |
PUT /firmen/{firma}/abteilungsanfragen |
Switches whether the company's departments may send each other requests (off by default); off applies immediately. Company owners with a human session only. |
GET /firmen/{firma}/verbindungen |
Reads visible department connections with open and answered request counts and your own proposals. |
POST /firmen/{firma}/verbindungen |
Connects or disconnects departments using request routes. Without destination permission it creates a proposal. Enabling requests requires explicit consent. |
GET /firmen/{firma}/verbindungen/annahme-auswahl |
Lists, for each department the signed-in person manages, its agent personas and who is suggested to take requests. |
GET /firmen/{firma}/vorgaenge |
The company's assignment cases; the project name appears only after approval. Company owners with a human session only. |
POST /firmen/{firma}/vorgaenge/{vorgang_id}/loesung-anfragen |
The company asks a project to leave; it is only detached once the project leaves itself. Human session only. |
POST /firmen/{firma}/vorgaenge/{vorgang_id}/zurueckziehen |
Withdraws a company's proposal or open request to detach. Human session only. |
POST /firmen/{firma}/vorschlaege |
Proposes placing a project under the company; nothing changes until the project agrees. Company owners with a human session only. |
GET /ich/firma-vorschlaege |
Open company proposals to every project where the human is owner or admin. Human session only. |
Project
| Method & path | What it does |
|---|---|
GET /kunde |
Returns the project the presented credentials belong to: slug, name, plan, description, budget and people limit. |
PATCH /kunde |
Changes the own project's name, description, monthly budget, ticket system, daily, acceptance settings, the seat for bugs (bug_sitz), the threshold for waiting mail (post_meldung_stunden, default 24), the excluded personas (post_meldung_ausschluss) and whether the assignment check runs (zuweisung_pruefen, off by default). Only humans with the owner or admin role. |
Project logo
| Method & path | What it does |
|---|---|
GET /projekt/logo |
Returns the project's current logo as an image, an older version with version, or the small WebP preview with vorschau=1. 404 if there is no logo. |
POST /projekt/logo |
Uploads a logo; replacing it creates a new version and the old one is kept. Only humans with the owner or admin role. |
GET /projekt/logo/versionen |
Lists all logo versions without image data, newest first, and names the current version. |
Setup
| Method & path | What it does |
|---|---|
GET /einrichtung |
The project's setup state in four steps with evidence, progress and the next open step. Writes nothing. |
Lotse (setup guide)
| Method & path | What it does |
|---|---|
GET /lotse/stand |
Where this customer stands in setup, measured rather than stored, with the success criteria. With wo it tells where something lives in the app. |
POST /lotse/stationen/{station}/gezeigt |
Reports that the guide has shown a station, or for an optional station the human's answer. Only the guide or a human with a human session; the first timestamp stays. |
Assistant
| Method & path | What it does |
|---|---|
GET /assistent/status |
Whether the assistant is ready: provider, reason, today's usage and cap. |
POST /assistent/vorschlaege |
Turns free text into rule suggestions, deterministically first and via a language model for the rest. Writes no rule; 503 if a model is needed but not ready. |
Model providers
| Method & path | What it does |
|---|---|
GET /kunden/{kunde_slug}/modell-anbieter |
Shows, per stage of the model chain, jurisdiction, consent and whether it is in effect, plus the current notice version. Readable by every member. |
POST /kunden/{kunde_slug}/modell-anbieter/{anbieter}/widerrufen |
Revokes consent for a model provider, effective from the next model call. Owner or admin only; 404 if none applies. |
POST /kunden/{kunde_slug}/modell-anbieter/{anbieter}/zustimmen |
Grants consent to transfer data to a model provider; hinweis_fassung must match the notice shown. Only humans with the owner or admin role; 409 if the same consent already applies. |
Account, session and members
| Method & path | What it does |
|---|---|
POST /auth/abmelden |
Revokes the current human session and removes the session cookie. |
POST /auth/abmelden-alle |
Revokes all sessions for the signed-in account across its projects and removes its session cookie. |
POST /auth/anmelden |
Signs in with email and password and returns the session token, memberships and active project. 401 on wrong credentials, 429 after too many failed attempts. |
POST /auth/email-bestaetigen |
Redeems the link from the confirmation email and thereby confirms the account's address; does not sign in. 422 if the link is no longer valid. |
POST /auth/erneuern |
Extends the session behind an MCP connection to 30 days from now, at most 180 days after consent. Browser and chat sessions, and the short sign-in session of the consent step, stay unchanged. |
GET /auth/google/callback |
Return path from Google: checks the state and only signs in someone with a verified address and a membership or open invitation. Never creates a customer. |
GET /auth/google/login |
Starts sign-in with Google and redirects there (ziel: web or mcp). 404 if Google is not set up on this installation. |
GET /auth/konfiguration |
Which sign-in methods this installation offers: email and password, Google and Apple, each with verfuegbar. No authentication required. |
POST /auth/registrieren |
Creates an account with email and password, optionally via an invitation or as the first owner of an ordered customer. Without an invitation the account only counts after the link in the confirmation email has been clicked. 409 if the address is already registered. |
POST /einladungen/auskunft |
The same answer as GET /einladungen/{token}/auskunft, but with the token in the body, including the token from the invitation email. Changes nothing and consumes no token. |
POST /einladungen/magic |
Accepts an invitation via the link from the email: creates the account and membership and signs in. New addresses only; if an account exists, 409 and the token stays unused. |
POST /einladungen/magic/annehmen |
Accepts an invitation via the email link for an existing, signed-in account; the address must match the invitation, otherwise 403. The session does not switch. |
POST /einladungen/{token}/annehmen |
Accepts an invitation with the invitation token for the signed-in human and creates the membership. 403 if it is for a different address. |
GET /einladungen/{token}/auskunft |
An invitation's state (gueltig, abgelaufen, angenommen, widerrufen, unbekannt); project and role only when gueltig. No authentication, rate-limited for unknown tokens. |
GET /ich |
Who is calling: human, projects, active project and persona. Works with a human session or a key; 401 without either. |
PATCH /ich/einstellungen |
Sets the signed-in human's sprache and/or thema; null resets it. Answers like GET /ich. |
GET /ich/meine-projekte |
Your own projects and, in each, the personas you may start there. Read-only, own human session only. |
GET /ich/overview |
The signed-in person's overview entries from all their projects, each marked with its project, urgent ones first. Read-only and for humans only; each project is read under row-level security, abgeschnitten names projects with too many entries. |
GET /ich/projekte-mit-objekt |
In which of your own projects a document (dokument) or question (frage) exists; only slugs and names, never content. Exactly one parameter, own human session only. |
GET /kunden/{kunde_slug}/chats |
The running chats of all members of this project. Owner or manager only. |
POST /kunden/{kunde_slug}/chats/{sitzung_id}/widerrufen |
Ends a chat of a member of this project. Owner or manager only. |
GET /kunden/{kunde_slug}/einladungen |
This project's open invitations, oldest first; accepted and revoked ones are kept but not listed. Owner or manager only. |
POST /kunden/{kunde_slug}/einladungen |
Invites an email address with a role and, optionally, the person's function in the company, sends the invitation email and returns the invitation token. Accepting it creates and binds the person's human role. Owner or manager only, limited by the tier. |
POST /kunden/{kunde_slug}/einladungen/{einladung_id}/widerrufen |
Withdraws an open invitation. 404 if it is unknown, accepted, revoked or expired. Owner or manager only. |
GET /kunden/{kunde_slug}/mitglieder |
This project's members with role, lock status and the number of their active and revoked keys. Owner or manager only. |
POST /kunden/{kunde_slug}/mitglieder/{benutzer_id}/entsperren |
Lifts a membership lock; revoked keys do not come back. Owner or manager only, not yourself. |
POST /kunden/{kunde_slug}/mitglieder/{benutzer_id}/sperren |
Locks a person's membership and, in the same step, revokes every key they created for this project. Owner or manager only, not yourself. |
GET /kunden/{kunde_slug}/mitgliedschaft/rundgang-einstellungen |
Your own delivery setting for this project's review (sofort, nur_wenn_zu_tun or nie). |
PUT /kunden/{kunde_slug}/mitgliedschaft/rundgang-einstellungen |
Sets your own delivery setting for the review (zustellung). Each member for themselves. |
GET /kunden/{kunde_slug}/schluessel |
All keys of this project with name, scope, last use, status and creator, without the key itself. Owner or manager only. |
POST /kunden/{kunde_slug}/schluessel |
Creates an API key for this project and returns it once in plain text. scope (ro or rw) can never exceed your own permission. |
POST /projekte |
Creates another project (tier free) owned by the caller; the session does not switch. Own human session only, limited by your tier. |
POST /sitzung/chat |
Creates a chat session for a permitted persona and returns its token once. Several chats can run in parallel; the connection stays unbound. |
POST /sitzung/chat/widerrufen |
Revokes the chat token sent in X-Compass-Chat, and only that one; the connection stays. 422 without a chat token. |
GET /sitzung/chats |
Your own running chats across all projects, newest first. A chat token is never included. |
POST /sitzung/chats/{sitzung_id}/widerrufen |
Ends one of your own chats; the connection and the other chats keep running. 404 if it is unknown or already ended. |
POST /sitzung/mcp-zugriff |
Records at the MCP handshake which client connected and when it first did; erster_zugriff never changes afterwards. Human session only. |
POST /sitzung/persona |
Binds the current session to an active persona of your own project and answers like GET /ich. 409 for an inactive persona. |
POST /sitzung/projekt |
Switches to another project you are a member of, with a new session (token in the body and the cookie). The browser session the switch came from ends with it; a connection stays valid. 403 for a connection permanently bound to a persona. |
GET /sitzung/stelle |
Your own role in the active project, or null. Only ever shows your own, never other people's. |
POST /sitzung/stelle |
Binds yourself to an active human role in the active project, or releases it (empty slug). Only a human for themselves; 409 if the role is taken. |
POST /sitzung/verbindung/persona |
Permanently binds the current connection to a permitted persona of its active project. 409 if already bound or for a chat session. |
Sign-up and keys
| Method & path | What it does |
|---|---|
POST /registrierungen |
Starts a sign-up and sends a confirmation link by email. Without consent 422; limits against bulk sign-ups may reject it. |
POST /registrierungen/{token}/einloesen |
Redeems the confirmation link and creates the project with a key; the key is shown only the first time. 404 for an unknown link, 410 for an expired one. |
POST /schluessel/neu |
Requests a link for a new key by email address. Always answers the same way (202), whether or not the address is known. |
POST /schluessel/neu/{token}/einloesen |
Redeems the renewal link: creates a new key and revokes this person's previous write keys. Each link works once (409), 410 once expired. |
Password reset
| Method & path | What it does |
|---|---|
POST /auth/passwort-vergessen |
Requests a password reset link by email (valid for one hour, once). Always answers the same with 202, whether the address exists or not. |
POST /auth/passwort-zuruecksetzen |
Sets a new password using the token from the email and revokes all of the person's sessions; does not sign in. 422 if the link is no longer valid. |
Keys
| Method & path | What it does |
|---|---|
GET /kunden/{kunde_slug}/mitglieder/{benutzer_id}/personas |
Returns the personas a member may work as. Every member sees their own list; others' lists only owners or admins. |
PUT /kunden/{kunde_slug}/mitglieder/{benutzer_id}/personas |
Replaces a member's list of personas; removed entries are revoked, not deleted. Owner or admin only, not for your own list. |
GET /personas/{slug}/schluessel |
Shows the keys bound to a persona and the number of unbound active keys in the project, without secrets. Owner or admin only. |
GET /schluessel |
Lists your own keys without the secret, including revoked ones. Human session only. |
POST /schluessel |
Creates a key of your own, optionally bound to a persona; the plain text appears only in this response. Never with more rights than your own role; human session only. |
PATCH /schluessel/{schluessel_id} |
Renames one of your keys, including a revoked one. Human session only. |
POST /schluessel/{schluessel_id}/entziehen |
Human session only: revokes one of your keys (revoked_at); the row is kept. The response includes weitere_aktive. |
MCP OAuth clients
| Method & path | What it does |
|---|---|
POST /mcp-oauth/clients |
Stores an OAuth client registered at the MCP gateway; idempotent on client_id. Only with a valid MCP gateway signature, otherwise 401. |
GET /mcp-oauth/clients/{client_id} |
Looks up a registered OAuth client; a revoked one counts as not found (404). Only with a valid MCP gateway signature. |
POST /mcp-oauth/clients/{client_id}/widerrufen |
Revokes an OAuth client; the record stays with time and reason, nothing is deleted. Only with a valid MCP gateway signature. |
Postbote (machine pairing)
| Method & path | What it does |
|---|---|
GET /postbote |
All mail-carrier hosts of the project with heartbeat, service version, state per seat and latest events. lebt is null until a heartbeat arrives. |
POST /postbote/ereignisse |
For a mail-carrier key: records whether a persona on its host was woken, or why not (201). 422 for an unknown type or a seat not on this host. |
PUT /postbote/geraete/{geraet}/sitze |
Sets the personas allowed to run on a connected server; the list replaces the previous one, empty is allowed. Only personas of the own project. Human session only, as owner or admin; a disconnected server gives 409. |
POST /postbote/geraete/{geraet}/sperren |
Disconnects a connected server; it gets no further tokens. Human session only, as owner or admin in the selected project. |
POST /postbote/herzschlag |
For a mail-carrier key: reports that the host is alive, with the number of seats served, optionally with the service version and the state per seat (fixed keys, never free text). |
POST /postbote/konto/abteilungen |
Lists the departments with approved seats where the server may act now. No login, signed. 403 with a fixed reason if the device, account or role no longer holds. |
GET /postbote/konto/geraete |
The company's servers with account, departments, seats, last address and change marker, plus the warning. Human session only, as owner or admin of the company. |
PUT /postbote/konto/geraete/{geraet}/abteilungen/{abteilung}/sitze |
Sets which of the department's personas may run on this server; an empty list withdraws the approval including tokens. Human session only, as owner of the company. |
POST /postbote/konto/geraete/{geraet}/sperren |
Detaches the server immediately in all departments and revokes all tokens. Owner of the company, or the person whose account the server is attached to. |
POST /postbote/konto/koppeln |
Exchanges the one-time code and a server's public Ed25519 key for an account device of the company (201). No login, the code is the proof. The device may not act anywhere yet: the per-department approval comes first. |
POST /postbote/konto/kopplungen |
Issues the one-time code for a server attached to the account (15 minutes, once). Human session only, as owner of the company; an admin or department admin may not. The response carries the warning about losing the role. |
POST /postbote/konto/token |
Gives the server a token (10 minutes) for ONE department of its company, in exchange for a signature over department, device and time. 403 without approval or after the role was lost. |
POST /postbote/koppeln |
Exchanges a one-time code and a server's public Ed25519 key for a device entry (201). No login, the code is the proof; 409 if it was already used or has expired. |
POST /postbote/kopplungen |
Issues a one-time code for pairing a server, valid for 15 minutes; the plain code appears only in this response. Human session only, as owner or admin in the selected project. |
GET /postbote/postfach |
For a mail-carrier key: the inbox state of the personas on its host, counts and newest unread ID only, never text, with a stand marker and starten per seat (the start list). With warten and seit the response is held until the next change, at most 50 s. Changes nothing. |
POST /postbote/token |
Gives a connected server a short-lived token in exchange for a signature over project, device and time. 401 for a wrong signature or a reused time, 403 for a disconnected device. |
Subscription
| Method & path | What it does |
|---|---|
GET /kunden/{kunde_slug}/abo |
The active subscription (null means none, not Free), its history and the per-seat prices. Any member may read; requires a human session. |
POST /kunden/{kunde_slug}/abo |
Takes out a subscription (stufe, zyklus, plaetze). Owner only; while payment is not connected, self-service answers with 403. |
PATCH /kunden/{kunde_slug}/abo |
Changes the subscription's tier, billing cycle or seats. Owner only; while payment is not connected, self-service answers with 403. |
POST /kunden/{kunde_slug}/abo/kuendigen |
Cancels the subscription at the end of the period, not immediately; the tier only drops to free when it expires. Owner only. |
Payment
| Method & path | What it does |
|---|---|
POST /kunden/{kunde_slug}/abo/checkout |
Starts a checkout session and returns its URL with net, tax and gross; creates nothing itself. Owner only; 409 with an active subscription or no billing address. |
POST /kunden/{kunde_slug}/abo/portal |
Returns the link to the billing portal (change payment method, cancel); without a stored payment customer a message instead of a link. Owner only. |
GET /kunden/{kunde_slug}/abo/steuer-vorschau |
Shows what a purchase would cost (net, rate, tax, gross) using the same calculation as checkout. Without a country bereit: false instead of a number. |
GET /kunden/{kunde_slug}/rechnungsdaten |
The tenant's billing details, as far as known. Owners or admins with a session only. |
PUT /kunden/{kunde_slug}/rechnungsdaten |
Sets the billing details and replaces them completely: a missing field is cleared. Owners or admins with a session only. |
GET /zahlung/stand |
Whether payment is set up and in which mode, with the reason if closed. Names variables, never values; session only. |
POST /zahlung/stripe/webhook |
Receives payment events from Stripe; only here does the plan tier come into being. 401 without a valid signature, always 200 with one, even on redelivery. |
Invoices
| Method & path | What it does |
|---|---|
GET /kunden/{kunde_slug}/rechnungen |
This project's invoices, newest first; an empty list means no invoices. For members with a human session. |
GET /kunden/{kunde_slug}/rechnungen/{nummer}/pdf |
The invoice with this number as a PDF, exactly as it was fixed when issued. For members; 404 for an unknown number. |
Contact
| Method & path | What it does |
|---|---|
POST /kontakt |
Public contact form without login: puts the request into the operator inbox and emails it. 422 without consent, 429 when rate-limited, 503 if nothing got through. |
Erasure requests
| Method & path | What it does |
|---|---|
GET /betreiber/loeschung |
The logs of erasure runs, newest first. Operator human only. |
POST /betreiber/loeschung |
Makes a person's direct data unrecognisable, creates the log and records free-text findings as open. Requires the count from the preview, otherwise 409; operator human only. |
GET /betreiber/loeschung/fristen |
Open erasure runs with their promised deadline, overdue ones counted. Operator human only. |
POST /betreiber/loeschung/vorschau |
Counts what an erasure run for a person would affect, including the unreachable part. Writes nothing; operator human only. |
GET /betreiber/loeschung/{loeschung_id} |
One erasure log with all free-text findings across tenants, the number still open and whether it can be closed. Operator human only. |
POST /betreiber/loeschung/{loeschung_id}/abschliessen |
Closes an erasure run, only if no finding is still open, otherwise 409. Operator human only. |
POST /betreiber/loeschung/{loeschung_id}/freitext/{stelle_id} |
Records the assessment of a finding: ersetzt or bleibt (with a reason). Does not change the content itself; operator human only. |
Project deletion
| Method & path | What it does |
|---|---|
GET /betreiber/projekt-loeschung/{ziel} |
Shows the operator the status and preview of a customer project's deletion, after deletion only the record of it. Only owners or admins of the operator project. Only with the person's own signed-in session, not with a guide key (403). |
POST /betreiber/projekt-loeschung/{ziel} |
The operator requests deletion of a customer project, only with a verweis to the written request. Only owners or admins of the operator project. Only with the person's own signed-in session, not with a guide key (403). |
POST /betreiber/projekt-loeschung/{ziel}/{vorgang}/bestaetigen |
The operator confirms a deletion request it made itself with its password; the owners are notified. 409 if no owner can be reached by email. Only with the person's own signed-in session, not with a guide key (403). |
POST /betreiber/projekt-loeschung/{ziel}/{vorgang}/widerrufen |
The operator withdraws a not yet executed deletion request for a customer project. Only owners or admins of the operator project. Only with the person's own signed-in session, not with a guide key (403). |
GET /projekt-loeschung |
Returns the open deletion request, the sentence to type for confirmation and the waiting period. Only the owner, as a human. Only with the person's own signed-in session, not with a guide key (403). |
POST /projekt-loeschung |
Requests deletion of the project and binds the request to the preview hash. Only the owner, as a human; 409 if one is already running or if ziel is not the session's project. Only with the person's own signed-in session, not with a guide key (403). |
GET /projekt-loeschung/vorschau |
Shows the target (identifier, kind, the company of a department) and what would be removed, kept or anonymised if it were deleted, with a hash; writes nothing. Only the owner, as a human. Only with the person's own signed-in session, not with a guide key (403). |
POST /projekt-loeschung/{vorgang}/bestaetigen |
Confirms deletion with password, the exact sentence, the hash and the target that was shown (ziel, required); starts the waiting period, after which the project is read-only. 409 if the target is not the session's project or the project changed since the preview. Only with the person's own signed-in session, not with a guide key (403). |
POST /projekt-loeschung/{vorgang}/widerrufen |
Withdraws a deletion request that has not yet been carried out, also during the waiting period. Only the owner, as a human. Only with the person's own signed-in session, not with a guide key (403). |
Succession
| Method & path | What it does |
|---|---|
GET /personas/{slug}/haengt-daran |
What a persona is responsible for, grouped by kind with the open cases, plus its access grants and a suggested successor. To settle before retiring it. |
Customer feedback
| Method & path | What it does |
|---|---|
GET /betreiber/rueckmeldungen |
Lists active submissions across projects for an operator session without a persona binding. ticket_projekte counts projects with an active submission linked to the same ticket and is null when there is no ticket. limit ranges from 1 to 100 and offset from 0 to 2,147,483,647. Values outside these ranges return 422. |
GET /betreiber/rueckmeldungen/ablehnungsfragen/{frage_id}/entwurf |
Shows the rejection draft for an open decision to authorized triage staff. |
GET /betreiber/rueckmeldungen/{kunde_slug} |
Lists active submissions in the selected project for the operator. limit ranges from 1 to 100 and offset from 0 to 2,147,483,647. Values outside these ranges return 422. |
PUT /betreiber/rueckmeldungen/{kunde_slug}/{entwurf_id}/ablehnungsentwurf |
Saves a private rejection draft for triage. |
POST /betreiber/rueckmeldungen/{kunde_slug}/{entwurf_id}/ablehnungsfrage |
Creates a decision for human review of the rejection draft. |
POST /betreiber/rueckmeldungen/{kunde_slug}/{entwurf_id}/abschliessen |
Closes triage after a confirmed rejection or verified implementation. The public status is preserved. |
PUT /betreiber/rueckmeldungen/{kunde_slug}/{entwurf_id}/antwort |
Sets the public reply for an active submission. |
POST /betreiber/rueckmeldungen/{kunde_slug}/{entwurf_id}/live-nachweis |
Checks the supplied release against the running Core version and records evidence of implementation for a completed ticket. |
POST /betreiber/rueckmeldungen/{kunde_slug}/{entwurf_id}/ticket |
Creates a ticket from the submitted fields and links it to the feedback. |
PUT /betreiber/rueckmeldungen/{kunde_slug}/{entwurf_id}/ticket |
Links an active submission to an existing ticket in the operator project. |
GET /rueckmeldungen/entwuerfe |
Lists feedback in the current project with its customer-visible status. limit ranges from 1 to 100 and offset from 0 to 9,223,372,036,854,775,807. Values outside these ranges return 422. |
POST /rueckmeldungen/entwuerfe |
Creates a bug report or feature request draft. A known error ID returns the existing draft in the project. |
GET /rueckmeldungen/entwuerfe/{entwurf_id} |
Reads feedback in the current project and its public reply, if available. |
POST /rueckmeldungen/entwuerfe/{entwurf_id}/fehler-einreichen |
Submits a bug report with an error ID within the project limit. Repeated submissions count once. |
POST /rueckmeldungen/entwuerfe/{entwurf_id}/wunsch-bestaetigen |
Submits a feature request draft when a signed-in human in the same project confirms it. |
POST /rueckmeldungen/entwuerfe/{entwurf_id}/zurueckziehen |
Withdraws feedback from the current project and preserves its history. |
Operator
| Method & path | What it does |
|---|---|
GET /betreiber/abrechnung/oss |
Operator only: the current calendar year's revenue total against the OSS threshold, with a warning as it gets close. No invoices, no customer content. |
GET /betreiber/anmeldebremse |
Operator only: how many identifiers are currently in a login-throttle lockout and how many triggered it in the last 24 hours. |
GET /betreiber/anmeldungen |
Operator only: sign-ups as counts per hour and day (accepted, confirmed, rejected), rejections by reason and the current limits. No addresses. |
GET /betreiber/kreis |
Operator only: who currently holds operator status. |
POST /betreiber/kreis/entfernen |
Operator only: removes a person's operator status. 409 if they are the last operator. |
POST /betreiber/kreis/ernennen |
Operator only: makes an existing user an operator by email. 404 if there is no account, 409 if they already are one. |
GET /betreiber/kreis/erster |
Tells a human session whether it may make itself the first operator right now, with reason and status code if not. Always answers 200. |
POST /betreiber/kreis/erster |
Makes the calling human session the first operator, only if none exists yet and its email is configured as first operator. Otherwise 404, 409 or 403. |
GET /betreiber/kunden |
Operator only: every customer with usage counts and the email of the person who created it. No content. |
GET /betreiber/kunden/{slug} |
Operator only: one customer with counts, type, company, trial period, subscription, encryption, members and departments. No content or secrets; 404 if unknown. |
PATCH /betreiber/kunden/{slug} |
Operator only: changes a customer's display name and logs it; the identifier stays. The response includes the previous name. |
GET /betreiber/kunden/{slug}/abo |
Operator only: a customer's active subscription and its history. abo: null means no subscription. |
POST /betreiber/kunden/{slug}/abo |
Operator only: takes out a subscription with tier and billing cycle for a customer; the action stays identifiable as an operator's. |
PATCH /betreiber/kunden/{slug}/abo |
Operator only: changes tier, cycle, amount or seats of a customer's subscription and syncs with Stripe. |
POST /betreiber/kunden/{slug}/abo/kuendigen |
Operator only: cancels a customer's subscription. |
POST /betreiber/kunden/{slug}/betreiber-projekt |
Operator only: sets or clears the operator-project flag and logs it. war_vorher in the response tells whether anything changed. |
POST /betreiber/kunden/{slug}/entsperren |
Operator only: lifts a customer's suspension and logs it. |
PATCH /betreiber/kunden/{slug}/lehren/{id} |
Operator only: corrects area and wording of one of this customer's lessons, with the same limits as for its author. 409 for an ended lesson. |
POST /betreiber/kunden/{slug}/mitglieder |
Operator only: adds an existing user with a role as member of a customer, or reactivates them. The tier's limit applies; 409 if already a member. |
GET /betreiber/kunden/{slug}/pakete |
Operator only: all template packages with their state for this customer, including locked ones. |
POST /betreiber/kunden/{slug}/pakete/{paket_slug} |
Operator only: unlocks a template package for a customer. Doing it twice is not an error. |
POST /betreiber/kunden/{slug}/pakete/{paket_slug}/entziehen |
Operator only: withdraws a package without deleting anything; existing personas stay, only new ones can no longer be created from it. |
GET /betreiber/kunden/{slug}/rechnungen/{nummer}/zahlungen |
Operator only: all payments on an invoice, corrections included. |
POST /betreiber/kunden/{slug}/rechnungen/{nummer}/zahlungen |
Operator only: records a payment against an invoice (201) and logs it; the invoice status follows the total. |
GET /betreiber/kunden/{slug}/schluessel |
Operator only: a customer's API keys without plaintext or hash; revoked ones stay visible. |
POST /betreiber/kunden/{slug}/schluessel |
Operator only: creates an API key and returns the plaintext exactly once (201); it cannot be retrieved later. |
PATCH /betreiber/kunden/{slug}/schluessel/{schluessel_id} |
Operator only: renames an API key. |
POST /betreiber/kunden/{slug}/schluessel/{schluessel_id}/entziehen |
Operator only: revokes an API key; the row is kept with revoked_at so it stays traceable who worked with it. |
POST /betreiber/kunden/{slug}/sperren |
Operator only: suspends a customer immediately on every channel; its keys are rejected with 401. Reversible with entsperren. |
POST /betreiber/kunden/{slug}/stufe |
Operator only: sets the pricing tier without a subscription; on a downgrade, excess memberships are deactivated, not deleted. |
POST /betreiber/kunden/{slug}/verschluesselung |
Operator only: sets the content encryption switch (aus, schreiben, an) and logs it. If the key service fails, the switch stays as it was. |
POST /betreiber/kunden/{slug}/verschluesselung/einschalten |
Operator only: starts switching on encryption for an existing project in the background and answers 202 at once; 409 if a run is already in progress. |
GET /betreiber/kunden/{slug}/verschluesselung/stand |
Operator only: progress of switching on encryption, with switch state, open rows per group, run state and last error. No content, no key. |
POST /betreiber/kunden/{slug}/zahlungen/{zahlung_id}/korrigieren |
Operator only: reverses a payment with a reason instead of deleting it; the amount is taken from the payment itself. The wrong payment stays visible. |
GET /betreiber/modell-preise |
Operator only: all language-model price records, current and past. |
POST /betreiber/modell-preise |
Operator only: sets a new price record (201) and ends the previous one the day before. 409 if it does not start after the current one; negative prices 422. |
POST /betreiber/modell-preise/nachtragen |
Operator only: computes costs for a customer's usage rows that had no price when reported. Existing amounts are never overwritten. |
GET /betreiber/modelle-ohne-preis |
Operator only: which of a customer's models were reported and have no computable price today, with reason, quantity and similarly named catalogue rows. Unknown customer 404. Writes nothing. |
POST /betreiber/notfall-lesen |
Operator only: announces reading without row-level security and writes one log entry per project (201). Needs a reason and exactly one of kunden or alle. |
GET /betreiber/protokoll |
Operator only: every operator action with who, when, which customer and what; filterable by customer, action and time. Entries cannot be deleted. |
POST /betreiber/sachen/{slug}/umhaengen |
Operator only: moves a matter with all its statements and questions to another customer; check-path links are detached. trocken=true shows the counts without writing. |
Operator: usage
| Method & path | What it does |
|---|---|
GET /betreiber/kunden/{slug}/nutzung |
Operator only: usage of one customer. Quantities against the plan limits, calls and model costs per day (1 to 90 days). Numbers only; missing values come with a reason. |
Operations
| Method & path | What it does |
|---|---|
GET /bereit |
Checks whether the database is ready again after a restore; 503 with a reason if not, or if the required configuration is missing. |
GET /health |
Says whether the process is alive and gives the key service state in one word. status stays ok even if the key service is down. |
GET /version |
Which build is running: git_sha, gebaut_am and dienst, reachable without a key. A missing value is null and grund says why. |
Sprints
| Method & path | What it does |
|---|---|
GET /sprints |
The project's sprints, most recent start first, with goal, period, epic link and state. |
PUT /sprints |
Creates a sprint (without nr, 201) or changes the named fields (with nr). A persona can only propose; any other state is set by a human, otherwise 403. At most one running sprint per project. |
GET /sprints/stand |
The running sprint from the caller's view: goal, end, their own list in order, the next ticket and the WIP situation. With persona= another persona's view; {"sprint": null} if none is running. |
GET /sprints/{nr} |
One sprint with its seats (each the ordered list with status, next ticket and WIP situation) and its measurement. Without a readable status the measurement is null, not 0. |
PUT /sprints/{nr}/liste |
Sets one seat's list in a new order. Missing items are taken out, never deleted; every move is recorded in the ticket's history. A closed sprint does not change (409). |
Knowledge
| Method & path | What it does |
|---|---|
GET /wissen |
What holds for an area or a matter, in brief: rules, decisions and facts with gilt_seit, contradicting statements side by side and the rule count. Exactly one of bereich or sache; an empty answer names the reason in fehlt. |
Route requests between projects
| Method & path | What it does |
|---|---|
GET /weg-antraege |
This project's own requests with target, type, status and decision time. From the other project you only learn the outcome. |
POST /weg-antraege |
Requests a route from this project to another one. The answer is the same for a known and an unknown target. 429 if 5 requests are already open, or the same request was rejected or withdrawn within the last 7 days. |
GET /weg-antraege/eingang |
The open requests to this project, oldest first, at most 50 with the count weitere. Owners and administrators only. |
POST /weg-antraege/{absender}/{antrag_id}/ablehnen |
Rejects a request, without a reason or a name. Owners and administrators only; the same refusals as when accepting. |
POST /weg-antraege/{absender}/{antrag_id}/annehmen |
Accepts a request: the route is created in this project, with the persona that accepts future requests. Owners and administrators only; 404 for unknown or foreign requests, 409 if it is no longer open. |
POST /weg-antraege/{antrag_id}/zurueckziehen |
Withdraws an open request of your own; the waiting period starts from then. |
Internal document read-only shares
| Method & path | What it does |
|---|---|
GET /dokumente/{slug}/lesefreigaben |
Lists internal read-only shares of a local document. |
POST /dokumente/{slug}/lesefreigaben |
Shares a local document read-only within the company. |
GET /lesefreigaben/ziele |
Lists active target departments and personas of the same company for human administrators. |
POST /lesefreigaben/{id}/beenden |
Ends an internal read-only share, effective on the next request. |
GET /ordner/{id}/lesefreigaben |
Lists internal read-only shares of a local folder. |
POST /ordner/{id}/lesefreigaben |
Shares the active subtree of a local folder read-only within the company. |
Rule changes
| Method & path | What it does |
|---|---|
GET /agents/{persona}/regeln-seit |
Lists rule changes since a rule checkpoint and the current rules for affected matters within the persona’s scope. An unknown checkpoint stays explicitly unknown. |
Questions and approvals
| Method & path | What it does |
|---|---|
POST /dokumente/{slug}/bau-gemessen |
A bound review persona reports a measured build against the approved frame with images of its current version. No second question is created; existing human rejections take precedence. |
POST /dokumente/{slug}/bau-widerspruch |
A signed-in person objects to build measurement evidence with a reason. The evidence stays readable and the reviewer is notified; agent keys are not sufficient. |
POST /fragen/{id}/regel-im-chat |
A verified person confirms a rule with its exact displayed wording and a chat reference. Missing human session or persona binding returns 403; different wording returns 422. |
POST /fragen/{id}/rueckfragen/{rueckfrage_id}/antwort |
The active bound asker replies to a follow-up. The history is preserved and the question stays open; identical text is idempotent, different text returns 409. |