API reference
Generated from the machine's own /openapi.json (Zeq machine 5.83.1, 109 operations). A route that needs a key takes Authorization: Bearer KEY with at least the scope shown (drop < read < write < admin); the full schema of each body is in /openapi.json itself.
/anchor
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /anchor | read key | the machine's signed anchor of its log: its row count and newest link; keep it, and the log can later be checked whole against it |
/apps
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /apps | read key | the applications born on this machine: each one's ZID, key and name, countersigned by the machine, issued once in its log |
| POST | /apps | read key | {name} -> an application born on this machine, its record signed into the log, and a write key of its own shown once; for an admin key |
/ask
| Method | Path | Access | What it does |
|---|---|---|---|
| POST | /ask | write key | {question} -> a sealed answer, signed into the log; Authorization: Bearer zeq_owner_... |
/card
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /card | public | this machine's card: its public record and the key a parcel for it is sealed to |
/catalogue
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /catalogue | public | what this file computes and offers a builder, counted from the file |
/children
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /children | read key | the machines this one issued, from its signed log: index, ZID, slug, and whether each is here |
/clips
| Method | Path | Access | What it does |
|---|---|---|---|
| POST | /clips | write key | {"name", "sha256" and "bytes" / "text" / "base64", "source"?, "cites"?} -> the clip stamped: its hash signed into the log, the payload never kept |
| GET | /clips | read key | every clip of the log, every stamp among them: its id, Zeqond, name, sha256, length, source and the clips it cites |
| GET | /clips/{id} | read key | one clip's evidence graph: the clips it rests on, walked from the log, and held or what is wrong |
| POST | /clips/{id}/check | read key | {"text" / "base64" / "sha256"} -> whether that payload is the one the clip stamped; nothing kept |
/connect
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /connect | read key | the catalogue of services: how each is authorized, where it answers, what is set and whether it is connected; never a value |
| GET | /connect/callback | public | where the service sends the browser back: the state of an authorization this machine began, once, and its code |
| POST | /connect/{name}/call | write key | {method, path, body, headers, form} -> the service's answer, its credential added here; a body goes as JSON, or as a form when form is true; the call a signed row |
| POST | /connect/{name}/drop | admin key | everything kept for a service removed, each by a signed row |
| POST | /connect/{name}/set | admin key | {client_id, client_secret} or {key}, and base where the catalogue names none: sealed in the connect store |
| POST | /connect/{name}/start | admin key | {redirect_uri, scope} -> the address to open to authorize the service, valid 600 s |
/connections
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /connections | read key | every connection defined here: its kind, where it reaches, whether a session is open; the kinds and stub languages the module offers; never a secret |
| POST | /connections/define | admin key | {name, kind: process/tcp/udp/socket/serial/mqtt/modbus, ...} -> a connection defined, by a signed row |
| GET | /connections/stub | read key | ?lang=python/javascript/csharp/cpp/gdscript/c -> a client for this machine in that language, written from its own API |
| POST | /connections/{name}/close | write key | the session closed; what was not yet sealed, sealed |
| POST | /connections/{name}/forget | admin key | the definition, its secret and any open session gone, by signed rows |
| POST | /connections/{name}/frame | write key | one JSON frame on the open session -> the reply; chained and sealed once a Zeqond |
| GET | /connections/{name}/messages | read key | the last 128 messages of an open subscription and the chain's root |
| POST | /connections/{name}/modbus | write key | {read: {fc, address, count}} or {write: {address, values}} on a modbus definition; a signed row |
| POST | /connections/{name}/open | write key | a framed session opened to a socket definition (an engine, a simulation) |
| POST | /connections/{name}/publish | write key | {topic, data/json, qos?, retain?} to an mqtt definition; a signed row |
| POST | /connections/{name}/run | write key | a process run once with the body on its standard input, its file hashed first -> stdout, exit, hashes; a signed row |
| POST | /connections/{name}/secret | admin key | {secret} -> the one secret a connection may need (a broker's password), sealed in this module's vault |
| POST | /connections/{name}/send | write key | {data/hex/json, until?, max_bytes?, reply?} on a tcp or udp definition -> the reply; a signed row |
| POST | /connections/{name}/serial | write key | {data/hex, until?, max_bytes?} to a serial definition -> the reply; a signed row |
| POST | /connections/{name}/shelf | admin key | {url} / {shelf, name} / {document}, trust_author? -> a connection definition signed on the shelf, verified through reach (tier S attested, T trusted author) and defined here |
| POST | /connections/{name}/subscribe | write key | {topics} on an mqtt definition: a subscription held open, messages chained and sealed once a Zeqond |
/contracts
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /contracts | read key | the contracts this machine runs: each one's name, state, fires and definition hash |
| POST | /contracts | write key | {definition} -> the contract deployed, its definition hash pinned |
| GET | /contracts/{id} | read key | one contract: its definition, state and the chain of its fires, checked |
| POST | /contracts/{id}/fire | write key | {to, input, dry_run} -> fired, won't_fire, refused or tampered, with why |
| POST | /contracts/{id}/pause | write key | stop the contract's timed fires until it is resumed; a manual fire still runs |
| POST | /contracts/{id}/resume | write key | timed fires again, the next slot set from now |
| POST | /contracts/{id}/skip-next | write key | pass over the next timed fire, up to 100 ahead |
/coverage
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /coverage | public | every branch: what this file computes there, from which equations, and the extensions named for it |
/elapsed
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /elapsed | read key | this machine's spine: every seal, each checked against its record and the seal before |
| POST | /elapsed/verify | read key | {seal, record, before} -> whether the seal is that machine's and its time is real, in under 0.01 s |
/endpoints
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /endpoints | public | this catalog of the machine's routes |
/events
| Method | Path | Access | What it does |
|---|---|---|---|
| POST | /events | write key | {"events": [hit, ...]} or {"event": hit} -> the hits appended hash-linked at this Zeqond, sealed at the tick |
| GET | /events | read key | the hits from ?after=N, 250 at most, as they are on disk |
| GET | /events/verify | read key | the file replayed against every signed tick: events, sealed, pending, and held or what is wrong |
/export
| Method | Path | Access | What it does |
|---|---|---|---|
| POST | /export | write key | {sealed, record?, lang} -> the envelope, verified and computed again, as code in python, javascript or c; the snippet's sha256 signed into the log |
/feed
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /feed | read key | the log as RSS 2.0 |
/find
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /find | read key | ?q=WORDS -> identities on the shelf by name or meaning, and the named extensions a term points to |
/handoff
| Method | Path | Access | What it does |
|---|---|---|---|
| POST | /handoff | public | {token} -> a skin's own key, once: a token --console or --ui mints for 60 s, so no key rides a browser's address or command line |
/health
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /health | public | liveness for a load balancer: ok, the version and the API version |
/hitev4
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /hitev4/capabilities | public | the machine a vault page talks to, its exact timebase and what a certificate is |
| POST | /hitev4/certify | write key | {question, payload_sha256} -> a certificate binding the file's SHA-256 to an answer sealed now, signed and logged |
| POST | /hitev4/inspect | read key | {vault: base64} -> its header, its Ed25519 and ML-DSA-65 signatures and its certificate checked here |
/inbox
| Method | Path | Access | What it does |
|---|---|---|---|
| POST | /inbox | drop key | a parcel sealed to this machine by --share, delivered with a drop key its owner gave; kept 0600, opened only here |
/keys
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /keys | admin key | the key table: names, scopes, prefixes and expiry; for an admin key |
| POST | /keys | admin key | {name, scope, days} -> a new key, shown once; for an admin key, so a directory bridge manages keys from outside |
| POST | /keys/revoke | admin key | {prefix} -> revoked, refused at its next request; for an admin key |
/log
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /log | read key | the signed history of what it computed; ?after=N for the rows after the first N, ?limit=M for up to 250 of them (100 when not given) |
/mcp
| Method | Path | Access | What it does |
|---|---|---|---|
| POST | /mcp | write key | Model Context Protocol, JSON-RPC 2.0: initialize, tools/list, tools/call |
/metrics
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /metrics | read key | Prometheus text: requests by route and status, uptime, log rows and live keys, in aggregate |
/nearby
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /nearby | read key | Nearby on this machine: open to everyone or to paired machines, its ports, the offers and pairings waiting for the owner, its paired machines |
| POST | /nearby | admin key | {"answer": ID, "accept": true/false} / {"everyone": SECONDS} / {"contacts": true} -> the owner's word on an offer or a pairing, or who may reach the machine |
/notebook
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /notebook | read key | every application's moves on this machine, in the log's order, each a signed row at its Zeqond; ?app=NAME for one application's |
/openapi.json
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /openapi.json | public | this API as OpenAPI 3.1: every route, its scope and its body, so a UI or an agent in any language is generated from it |
/playground
| Method | Path | Access | What it does |
|---|---|---|---|
| POST | /playground | public | {question} -> the answer as the door gives it, for anyone, five an hour per address; nothing sealed |
/pulse
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /pulse | read key | server-sent events, one per Zeqond: zeqond, phase, R_t; ?n= to stop after n |
/reach
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /reach | read key | what reach adds: the second catalogue's names, and every service defined or imported on this machine with its map size, hook and events; never a token |
| POST | /reach/attest | admin key | {document} -> this machine's attestation over a signed definition, to publish beside it |
| POST | /reach/define | admin key | {name, auth_mode, proxy_base_url?, authorization_url?, token_url?, key_header/key_query/key_path?, key_prefix?, headers?, zeq_use?} -> a service in the catalogue, by a signed row |
| POST | /reach/sign | admin key | {name, kind: service / connection, definition, note?} -> the definition signed by this machine as its author, to publish on a shelf |
| POST | /reach/trust | admin key | {record, role: author / attester} -> a machine trusted here to sign or attest definitions on the shelf, by a signed row |
| GET | /reach/trust | read key | the authors and attesters trusted here, by ZID |
| GET | /reach/{name}/events | read key | the events the service sent to its hook, newest last, each with its sha256 and Zeqond |
| POST | /reach/{name}/forget | admin key | a service defined here removed with everything connect kept for it, each by a signed row |
| POST | /reach/{name}/hook | public | where the service sends its events, with the hook's token in the query and, when the hook was made with sig, its signature in the header: each a signed row and kept 128 deep |
| POST | /reach/{name}/hook/new | admin key | {sig?: {scheme: hex/prefixed/stripe/slack, header, secret}} -> a hook address for the service's events, its token shown once; with sig every event's signature is checked over its raw bytes |
| POST | /reach/{name}/import | admin key | {url} or {document}, entry? laid over it -> the service read from its OpenAPI document into the catalogue, its operations mapped |
| GET | /reach/{name}/map | read key | the operations the service's document named; ?q= narrows them |
| POST | /reach/{name}/shelf | admin key | {url} / {shelf, name} / {document}, trust_author? -> a signed definition from the shelf verified and, for a service, placed in the catalogue at tier S (attested) or T (trusted author) |
/reactors
| Method | Path | Access | What it does |
|---|---|---|---|
| POST | /reactors | write key | {definition: {question, initial, transition, guards}} -> a reactor whose solver is the door |
| GET | /reactors | read key | every reactor this machine holds: id, status, steps, deployed_z and its last output |
| GET | /reactors/{id} | read key | one reactor: its definition, status and every sealed step, their links checked |
| POST | /reactors/{id}/close | write key | stop an active reactor; it takes no more steps and the close is signed into the log |
| POST | /reactors/{id}/step | write key | {env} -> the next step, asked, sealed, linked and gated |
/record
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /record | read key | the machine's genesis record |
/repo
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /repo | read key | the repositories by name: created, commits, files, bytes, tree and head; never a file's content |
| POST | /repo | write key | {name} -> the repository created, commit 0 signed into the log |
| GET | /repo/{name} | read key | one repository's tree: each file's path, size, sha256 and Zeqond, with its head |
| POST | /repo/{name}/commit | write key | {message, files: [{path, text or base64}], delete: [path]} -> one commit: the files sealed, a signed row of the log with the tree, the parent and the message |
| POST | /repo/{name}/deploy | admin key | the repository deployed as a skin of this machine from its index.html: packed and signed by the machine, installed with a key of its own, served at /ui/NAME/; deployed again, replaced |
| POST | /repo/{name}/drop | admin key | the repository removed, by a signed row of the log; its commits stay in the log |
| GET | /repo/{name}/file | read key | one file by ?path=, opened as it was committed |
| GET | /repo/{name}/log | read key | the repository's commits from the log alone, in order, with the chain's verdict |
/rpn
| Method | Path | Access | What it does |
|---|---|---|---|
| POST | /rpn | read key | {"keys": [...]} -> the stack, every arithmetic key a question at the door with the units carried; nothing sealed |
/shelf
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /shelf | read key | the door's vocabulary: identities, fields, units |
/skills
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /skills | read key | the skills kept in the skills repository, by name |
| POST | /skills | write key | {name, domains} -> the skill made from the shelf and committed to the skills repository |
| GET | /skills/{name} | read key | one skill's page |
/title
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /title | read key | the machine's title: the certificate of its birth, self-issued or minted by its foundation, its serial and standing, and where the machine is |
/tour
| Method | Path | Access | What it does |
|---|---|---|---|
| POST | /tour | admin key | the demonstration computed now, each answer sealed by this machine into its log, against the value the proof pins: the owner's, since it signs a row for every question |
/ui
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /ui | public | the skins here, carried and installed, by name |
| GET | /ui/{name}/ | public | a skin's files, served only while they hash to their signed manifest, sandboxed so it talks to this machine alone |
/vault
| Method | Path | Access | What it does |
|---|---|---|---|
| GET | /vault | read key | the vault's entries by name: when each was put, its size and expiry; never a value |
| POST | /vault | write key | {name, text or base64, expires_in_zeqonds} -> the entry sealed in the vault |
| GET | /vault/{name} | admin key | one entry's value, opened only as it was sealed and before its expiry; for an admin key |
| POST | /vault/{name}/drop | admin key | an entry removed from the vault, by a signed row of the log |
/verify
| Method | Path | Access | What it does |
|---|---|---|---|
| POST | /verify | read key | what /ask returned, or {sealed: it, record?} -> {verified, by, reproduction}: a sealed answer against this machine's record, or another machine's against its public record, computed again here |