ZEQ · SDKzeqstate.com

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

MethodPathAccessWhat it does
GET/anchorread keythe 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

MethodPathAccessWhat it does
GET/appsread keythe applications born on this machine: each one's ZID, key and name, countersigned by the machine, issued once in its log
POST/appsread 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

MethodPathAccessWhat it does
POST/askwrite key{question} -> a sealed answer, signed into the log; Authorization: Bearer zeq_owner_...

/card

MethodPathAccessWhat it does
GET/cardpublicthis machine's card: its public record and the key a parcel for it is sealed to

/catalogue

MethodPathAccessWhat it does
GET/cataloguepublicwhat this file computes and offers a builder, counted from the file

/children

MethodPathAccessWhat it does
GET/childrenread keythe machines this one issued, from its signed log: index, ZID, slug, and whether each is here

/clips

MethodPathAccessWhat it does
POST/clipswrite key{"name", "sha256" and "bytes" / "text" / "base64", "source"?, "cites"?} -> the clip stamped: its hash signed into the log, the payload never kept
GET/clipsread keyevery clip of the log, every stamp among them: its id, Zeqond, name, sha256, length, source and the clips it cites
GET/clips/{id}read keyone clip's evidence graph: the clips it rests on, walked from the log, and held or what is wrong
POST/clips/{id}/checkread key{"text" / "base64" / "sha256"} -> whether that payload is the one the clip stamped; nothing kept

/connect

MethodPathAccessWhat it does
GET/connectread keythe catalogue of services: how each is authorized, where it answers, what is set and whether it is connected; never a value
GET/connect/callbackpublicwhere the service sends the browser back: the state of an authorization this machine began, once, and its code
POST/connect/{name}/callwrite 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}/dropadmin keyeverything kept for a service removed, each by a signed row
POST/connect/{name}/setadmin key{client_id, client_secret} or {key}, and base where the catalogue names none: sealed in the connect store
POST/connect/{name}/startadmin key{redirect_uri, scope} -> the address to open to authorize the service, valid 600 s

/connections

MethodPathAccessWhat it does
GET/connectionsread keyevery 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/defineadmin key{name, kind: process/tcp/udp/socket/serial/mqtt/modbus, ...} -> a connection defined, by a signed row
GET/connections/stubread key?lang=python/javascript/csharp/cpp/gdscript/c -> a client for this machine in that language, written from its own API
POST/connections/{name}/closewrite keythe session closed; what was not yet sealed, sealed
POST/connections/{name}/forgetadmin keythe definition, its secret and any open session gone, by signed rows
POST/connections/{name}/framewrite keyone JSON frame on the open session -> the reply; chained and sealed once a Zeqond
GET/connections/{name}/messagesread keythe last 128 messages of an open subscription and the chain's root
POST/connections/{name}/modbuswrite key{read: {fc, address, count}} or {write: {address, values}} on a modbus definition; a signed row
POST/connections/{name}/openwrite keya framed session opened to a socket definition (an engine, a simulation)
POST/connections/{name}/publishwrite key{topic, data/json, qos?, retain?} to an mqtt definition; a signed row
POST/connections/{name}/runwrite keya process run once with the body on its standard input, its file hashed first -> stdout, exit, hashes; a signed row
POST/connections/{name}/secretadmin key{secret} -> the one secret a connection may need (a broker's password), sealed in this module's vault
POST/connections/{name}/sendwrite key{data/hex/json, until?, max_bytes?, reply?} on a tcp or udp definition -> the reply; a signed row
POST/connections/{name}/serialwrite key{data/hex, until?, max_bytes?} to a serial definition -> the reply; a signed row
POST/connections/{name}/shelfadmin 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}/subscribewrite key{topics} on an mqtt definition: a subscription held open, messages chained and sealed once a Zeqond

/contracts

MethodPathAccessWhat it does
GET/contractsread keythe contracts this machine runs: each one's name, state, fires and definition hash
POST/contractswrite key{definition} -> the contract deployed, its definition hash pinned
GET/contracts/{id}read keyone contract: its definition, state and the chain of its fires, checked
POST/contracts/{id}/firewrite key{to, input, dry_run} -> fired, won't_fire, refused or tampered, with why
POST/contracts/{id}/pausewrite keystop the contract's timed fires until it is resumed; a manual fire still runs
POST/contracts/{id}/resumewrite keytimed fires again, the next slot set from now
POST/contracts/{id}/skip-nextwrite keypass over the next timed fire, up to 100 ahead

/coverage

MethodPathAccessWhat it does
GET/coveragepublicevery branch: what this file computes there, from which equations, and the extensions named for it

/elapsed

MethodPathAccessWhat it does
GET/elapsedread keythis machine's spine: every seal, each checked against its record and the seal before
POST/elapsed/verifyread key{seal, record, before} -> whether the seal is that machine's and its time is real, in under 0.01 s

/endpoints

MethodPathAccessWhat it does
GET/endpointspublicthis catalog of the machine's routes

/events

MethodPathAccessWhat it does
POST/eventswrite key{"events": [hit, ...]} or {"event": hit} -> the hits appended hash-linked at this Zeqond, sealed at the tick
GET/eventsread keythe hits from ?after=N, 250 at most, as they are on disk
GET/events/verifyread keythe file replayed against every signed tick: events, sealed, pending, and held or what is wrong

/export

MethodPathAccessWhat it does
POST/exportwrite 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

MethodPathAccessWhat it does
GET/feedread keythe log as RSS 2.0

/find

MethodPathAccessWhat it does
GET/findread key?q=WORDS -> identities on the shelf by name or meaning, and the named extensions a term points to

/handoff

MethodPathAccessWhat it does
POST/handoffpublic{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

MethodPathAccessWhat it does
GET/healthpublicliveness for a load balancer: ok, the version and the API version

/hitev4

MethodPathAccessWhat it does
GET/hitev4/capabilitiespublicthe machine a vault page talks to, its exact timebase and what a certificate is
POST/hitev4/certifywrite key{question, payload_sha256} -> a certificate binding the file's SHA-256 to an answer sealed now, signed and logged
POST/hitev4/inspectread key{vault: base64} -> its header, its Ed25519 and ML-DSA-65 signatures and its certificate checked here

/inbox

MethodPathAccessWhat it does
POST/inboxdrop keya parcel sealed to this machine by --share, delivered with a drop key its owner gave; kept 0600, opened only here

/keys

MethodPathAccessWhat it does
GET/keysadmin keythe key table: names, scopes, prefixes and expiry; for an admin key
POST/keysadmin key{name, scope, days} -> a new key, shown once; for an admin key, so a directory bridge manages keys from outside
POST/keys/revokeadmin key{prefix} -> revoked, refused at its next request; for an admin key

/log

MethodPathAccessWhat it does
GET/logread keythe 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

MethodPathAccessWhat it does
POST/mcpwrite keyModel Context Protocol, JSON-RPC 2.0: initialize, tools/list, tools/call

/metrics

MethodPathAccessWhat it does
GET/metricsread keyPrometheus text: requests by route and status, uptime, log rows and live keys, in aggregate

/nearby

MethodPathAccessWhat it does
GET/nearbyread keyNearby on this machine: open to everyone or to paired machines, its ports, the offers and pairings waiting for the owner, its paired machines
POST/nearbyadmin 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

MethodPathAccessWhat it does
GET/notebookread keyevery 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

MethodPathAccessWhat it does
GET/openapi.jsonpublicthis 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

MethodPathAccessWhat it does
POST/playgroundpublic{question} -> the answer as the door gives it, for anyone, five an hour per address; nothing sealed

/pulse

MethodPathAccessWhat it does
GET/pulseread keyserver-sent events, one per Zeqond: zeqond, phase, R_t; ?n= to stop after n

/reach

MethodPathAccessWhat it does
GET/reachread keywhat 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/attestadmin key{document} -> this machine's attestation over a signed definition, to publish beside it
POST/reach/defineadmin 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/signadmin key{name, kind: service / connection, definition, note?} -> the definition signed by this machine as its author, to publish on a shelf
POST/reach/trustadmin key{record, role: author / attester} -> a machine trusted here to sign or attest definitions on the shelf, by a signed row
GET/reach/trustread keythe authors and attesters trusted here, by ZID
GET/reach/{name}/eventsread keythe events the service sent to its hook, newest last, each with its sha256 and Zeqond
POST/reach/{name}/forgetadmin keya service defined here removed with everything connect kept for it, each by a signed row
POST/reach/{name}/hookpublicwhere 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/newadmin 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}/importadmin key{url} or {document}, entry? laid over it -> the service read from its OpenAPI document into the catalogue, its operations mapped
GET/reach/{name}/mapread keythe operations the service's document named; ?q= narrows them
POST/reach/{name}/shelfadmin 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

MethodPathAccessWhat it does
POST/reactorswrite key{definition: {question, initial, transition, guards}} -> a reactor whose solver is the door
GET/reactorsread keyevery reactor this machine holds: id, status, steps, deployed_z and its last output
GET/reactors/{id}read keyone reactor: its definition, status and every sealed step, their links checked
POST/reactors/{id}/closewrite keystop an active reactor; it takes no more steps and the close is signed into the log
POST/reactors/{id}/stepwrite key{env} -> the next step, asked, sealed, linked and gated

/record

MethodPathAccessWhat it does
GET/recordread keythe machine's genesis record

/repo

MethodPathAccessWhat it does
GET/reporead keythe repositories by name: created, commits, files, bytes, tree and head; never a file's content
POST/repowrite key{name} -> the repository created, commit 0 signed into the log
GET/repo/{name}read keyone repository's tree: each file's path, size, sha256 and Zeqond, with its head
POST/repo/{name}/commitwrite 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}/deployadmin keythe 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}/dropadmin keythe repository removed, by a signed row of the log; its commits stay in the log
GET/repo/{name}/fileread keyone file by ?path=, opened as it was committed
GET/repo/{name}/logread keythe repository's commits from the log alone, in order, with the chain's verdict

/rpn

MethodPathAccessWhat it does
POST/rpnread key{"keys": [...]} -> the stack, every arithmetic key a question at the door with the units carried; nothing sealed

/shelf

MethodPathAccessWhat it does
GET/shelfread keythe door's vocabulary: identities, fields, units

/skills

MethodPathAccessWhat it does
GET/skillsread keythe skills kept in the skills repository, by name
POST/skillswrite key{name, domains} -> the skill made from the shelf and committed to the skills repository
GET/skills/{name}read keyone skill's page

/title

MethodPathAccessWhat it does
GET/titleread keythe 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

MethodPathAccessWhat it does
POST/touradmin keythe 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

MethodPathAccessWhat it does
GET/uipublicthe skins here, carried and installed, by name
GET/ui/{name}/publica skin's files, served only while they hash to their signed manifest, sandboxed so it talks to this machine alone

/vault

MethodPathAccessWhat it does
GET/vaultread keythe vault's entries by name: when each was put, its size and expiry; never a value
POST/vaultwrite key{name, text or base64, expires_in_zeqonds} -> the entry sealed in the vault
GET/vault/{name}admin keyone entry's value, opened only as it was sealed and before its expiry; for an admin key
POST/vault/{name}/dropadmin keyan entry removed from the vault, by a signed row of the log

/verify

MethodPathAccessWhat it does
POST/verifyread keywhat /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