Node API Reference
A merod node serves one HTTP API on its --listen address. The route table is
router in crates/node/src/api.rs with the area routers it merges
(crates/node/src/api/<area>.rs); this page lists every route in it.
Calls, reads, events (server-sent events) and administration are all routes of
this one API.
Each route’s request and response schemas and error codes are in the
Node API reference (OpenAPI), rendered from
openapi.json, an OpenAPI 3.1 document generated from the
code and checked against the router on every CI run. Its requests are sealed
like every other client’s, so a tool built from it needs a sealing client
underneath (see Transport).
Transport
Section titled “Transport”- In the clear:
GET /health,GET /attestationand the consent page (GET /consent/{id},GET /consent/{id}/model,POST /consent/{id}/approve,POST /consent/{id}/decline), which a person opens in a browser on the node’s own origin; app frontends under--apps-domain(below) and a job node’s/job/*routes are served by their own layers. - Sealed: everything else travels inside the sealed channel
(
calimero-sealed, wire format v2, Noise NK). A client fetches/attestation, checks the quote binds the node’s transport key and that the quote’s measurements match a signed mero-tee release it trusts, and only then seals requests to that key. The sealed envelope wraps the router from outside, so an opened request meets the same handlers as a direct one. - A node started with
--devalso accepts plain requests; a TDX node refuses them. - Requests are limited to 64 MiB.
- The path carries no version: the API changes additively, and a route on its
way out answers with a
Deprecationheader (RFC 9745, the day it was deprecated) and aLink(rel="deprecation") to Compatibility, which says how long it stays (crates/node/api-deprecations.tomllists them).
Use a client that does this: meroctl, calimero-client (Rust), mero-js
CalimeroClient, or calimero-client-py CloudClient. A hand-written curl
reaches only /health and /attestation on a TDX node.
Credentials
Section titled “Credentials”The Authorization: Bearer header carries one of:
| Credential | Form | Obtained from |
|---|---|---|
| Session token | v2.<claims>.<signature> by the issuing node, 15 minutes |
a passkey ceremony, or /auth/refresh |
| API key | cal_… |
POST /auth/apikeys |
| Ops token | the configured token | --ops-token / --ops-token-sha256 |
Cluster peers add an x-cluster-auth header on /internal/*. See
Authentication for lifetimes, scopes and revocation.
The Who column below uses these terms:
| Who | Means |
|---|---|
| anyone | no credential needed |
| signed in | a session or an API key; a key scoped to some apps reaches only those on every route that names an app (and GET /apps lists only those), a read-only or method-scoped key changes no settings (app metadata, aliases), and an organization’s settings need an unscoped key |
| session | a passkey session; an API key is refused (403) |
| account holder | a passkey session not bound to an app’s frontend |
| installer | an account holder, or an API key scoped to no app and no method and not read-only |
| app access | whoever the app’s grants admit (anyone: any signed-in account); an API key’s app, method and read-only scope apply |
| ops | the ops token |
| peer | another node of the cluster |
Authority beyond the credential (an org admin, the app’s owner, the holder of a
governance decision) is checked when the command applies to the system log,
so every node reaches the same verdict; a refusal there answers
400 REJECTED.
Errors
Section titled “Errors”An error answer has an HTTP status and a JSON body:
{ "status": 403, "error": "FORBIDDEN", "message": "this needs a passkey session, not an API key" }with details when there is more to say (for example leaderUrl with
421 NOT_LEADER). The codes an operator meets most:
| Status | error |
Means |
|---|---|---|
| 400 | BAD_REQUEST, BAD_NONCE, BAD_PACKAGE, BAD_BUNDLE, UNKNOWN_CHALLENGE, EXPIRED_CHALLENGE, TOO_FEW, NO_REGISTRY |
The request is malformed, refers to nothing valid, or needs a registry the node lacks. |
| 400 | REJECTED |
The system log refused the command when it applied; message says why (for example the caller is not an admin of the organization). |
| 403 | BAD_OPERATOR_SIGNATURE |
The operatorProof does not verify under the operator key recorded at genesis. |
| 401 | UNAUTHENTICATED |
No, unknown, expired or revoked credential. |
| 401 | PASSKEY_UNKNOWN_HERE |
A sign-in or step-up with a passkey no account of this cluster has: one from another cluster under the same rp-id, or a removed one. |
| 403 | FORBIDDEN |
The credential may not do this (scope, role, governance, read-only). |
| 404 | NOT_FOUND |
No such object, or one the caller may not see. |
| 409 | CONFLICT, UPGRADE_PENDING, FEATURE_NOT_ACTIVE |
The state does not allow it now; a fuel cap waits for every node to run this release; a command or field waits for every node to support its cluster version (details: { feature, needs, active }). |
| 409 | APP_RESTORING |
The app is being restored from a backup; retry once the restore answers. |
| 410 | UNSUPPORTED_ENGINE |
The app is an SDK 0.12 (wasmer) app: listed and deletable, nothing runs. |
| 412 | CONFIRM_REQUIRED |
A passkey assertion is needed; details carries the challenge. |
| 428 | OPERATOR_SIGNATURE_REQUIRED |
An operator decision: details names the statement and a nonce; send the request again with operatorProof, the operator key’s signature over them. |
| 413 | TOO_LARGE |
Over a size limit (a bundle over 16 MiB, a log entry over 1 MiB). |
| 421 | NOT_LEADER |
Send it to the leader named in details.leaderUrl. |
| 422 | INIT_FAILED, APP_ERROR, UPGRADE_FAILED |
The app’s code refused. |
| 422 | COMPILE_TIMEOUT |
A package install or raw bundle upload: a component did not compile within 60 s (details names the service, as BAD_BUNDLE’s do). |
| 429 | QUOTA_EXCEEDED, RATE_LIMITED |
An account quota, or a node’s limit on open streams or ceremonies. |
| 503 | UNAVAILABLE, NOT_CAUGHT_UP |
The cluster cannot answer now, or a replica is behind minIndex. |
| 503 | BUSY |
GET /attestation: too many quotes asked for at once; a package install or raw bundle upload: too many components compiling at once. Send it again after Retry-After (1 s). |
Public
Section titled “Public”| Route | Who | What | meroctl |
|---|---|---|---|
GET /health |
anyone | { ok, node, systemLeader, release, clusterVersion, rollbackEpoch } (clusterVersion: the newest cluster version this node supports; rollbackEpoch: the cluster’s rollback epoch, null without a rollback counter). A node waiting for the cluster key adds waiting |
network status |
GET /attestation?nonce=HEX[&app=ID | &appHash=HEX][&purpose=receipts|kms|orchestrator|jobs] |
anyone | The node’s attestation document: quote, transport key, app hash, nonce, release and profile. purpose=receipts attests the receipt key, the governance, the cluster and the node id instead; kms adds the evidence of the mero-kms that released its storage key (and --kms-disk-evidence); orchestrator binds the cluster identity; jobs is a job node’s job key (404 on a cluster node) |
attest |
GET /releases |
anyone | { governance, deadlines: [{ version, after, afterSecs }] }: the cluster’s governance and the deadlines the operator set on mero-tee releases |
Accounts and credentials (/auth)
Section titled “Accounts and credentials (/auth)”| Route | Who | What | meroctl |
|---|---|---|---|
GET /sign-up |
anyone | The cluster’s sign-up policy: { policy, orgInvites, signUpInvites, inviteRequired } |
|
POST /auth/passkey/register/begin |
anyone | Start a sign-up: { name, invite? } → { challengeId, options }; 403 SIGN_UP_REFUSED when the policy would refuse it |
login (new file) |
POST /auth/passkey/register/finish |
anyone | { challengeId, registration, invite? } → 412 CONFIRM_REQUIRED (the new passkey signs the account it creates); the retry with confirm (and the same invite) → a session. invite (an organization or cluster sign-up invite token) is redeemed for the new account |
login |
POST /sign-up, POST|GET /sign-up/invites, DELETE /sign-up/invites/{key} |
the cluster’s owner, once named | Set the policy and run sign-up invites with a passkey (412 first) |
|
POST /auth/passkey/login/begin |
anyone | Start a sign-in | login |
POST /auth/passkey/login/finish |
anyone | { challengeId, assertion } → a session |
login |
POST /auth/passkeys/add/begin, /finish |
account holder | Add a passkey (a device): /finish { challengeId, registration, confirm? } answers 412 and is sent again with confirm signed by a passkey the account already has |
account device add |
POST /auth/passkeys/{cred} |
account holder | { label }: name a device |
account device label |
DELETE /auth/passkeys/{cred} |
account holder | Remove a device; its sessions end. 412 first; the retry’s JSON body is { confirm } |
account device revoke |
POST /auth/recovery, DELETE /auth/recovery |
account holder | Make (shown once, replacing any) or remove the account’s recovery code; 412 first |
- |
POST /auth/recovery/begin, /start |
signed out | begin { code } → a passkey registration; start { challengeId, code, registration } spends the code and logs the new passkey as pending → { accountId, credentialId, startedAt, readyAt }. 401 wrong or spent code, 409 RECOVERY_PENDING |
- |
POST /auth/recovery/cancel |
account holder | Cancel the recovery under way with a passkey the account has; 412 first |
- |
POST /auth/recovery/finish |
signed out | { accountId? }, 412 first, approved by the new passkey once readyAt passed (72 h): adds it, ends every session of the account → a session. 409 RECOVERY_NOT_READY before |
- |
POST /auth/refresh |
anyone with a refresh token | { refreshToken, holderProof? } → a new session and the refresh token to use next (the same one until it is an hour old) |
(automatic) |
POST /auth/logout |
session | End this session | |
POST /auth/logout-all |
account holder | End every session of the account | logout --all |
GET /auth/sessions |
account holder | The account’s live sessions, latest active first (at most 256): { sessions: [{ session, passkey, app, origin, openedAt, lastActiveAt, current }] } (Sessions) |
account session list |
DELETE /auth/sessions/{session} |
account holder | End one of the account’s sessions; 404 for one it does not hold live |
account session revoke |
GET /auth/activity[?after=T] |
account holder | What the account’s passkeys did, newest first (the last 100): { activity: [{ at, passkey, kind, app, origin, method, subject }] }, kind signIn (with app, origin) or approval (with method, subject); after: only entries after T (Unix seconds) (Activity) |
account activity |
GET /auth/me |
signed in | The account, passkeys (each with addedAt and lastSignInAt), passkeyId, organizations (personal: true on the one made at sign-up), via (session or apiKey), the app and origin a session is bound to, recoveryCode, recoveryPending |
whoami, account show |
GET /auth/apps[?after=ID&limit=N] |
signed in | The apps the account owns, in any organization (a package-bound session: its package’s): { scope, governance, approvedReleases, clusterReleases, apps, next }, approvedReleases its only organization’s (below cluster version 1.0.0-rc.32 its personal organization’s), each app’s release, newer releases it may upgrade to (availableVersions, and latestReachable/latestBlocked: the newest it can reach and why the latest is not it, Which release an app can reach), last upgrade, replicas’ releases and lastWriteAt (as in GET /ops/apps) (Reading the approvals) |
|
GET /auth/usage |
signed in | Apps, bundle bytes, API keys and owned orgs against the quotas; developerFuelToday and developerWritesToday: what today’s runs of the apps the account is the developer of used (D76, D78). bundleBytes, developerFuelToday and developerWritesToday are decimal strings |
account usage |
GET /auth/aliases |
signed in | The account’s aliases | instance alias list |
GET/PUT/DELETE /auth/aliases/{alias} |
signed in | Resolve, set ({ app }) or remove an alias |
instance alias get/add/remove, instance use |
POST /auth/apikeys |
account holder (a passkey session) | { label, apps?, methods?, pipelines?, readOnly, allowConfirm, ttlSecs?, upgrades?, then?, confirm? } → { keyId, key, then }, approved with a passkey (412 first). then: [{ app, method, args }] runs confirm calls of the key’s apps under the same passkey before the key is made, key:$key written as key:<keyId> (follow-ups). upgrades: { app, package? } makes an upgrade key, which signs that app’s upgrades in place of a passkey and is refused everywhere else (403 UPGRADE_KEY_ONLY); only an owner or admin of the app’s organization makes or uses one. pipelines (with apps) makes a pipeline key, refused 403 PIPELINE_KEY_ONLY off the pipeline routes and the methods it names |
account api-key create |
GET /auth/apikeys |
account holder | The account’s keys | account api-key list |
DELETE /auth/apikeys/{key} |
account holder | Revoke a key, approved with a passkey (412 first; the retry’s body carries confirm) |
account api-key revoke |
POST /auth/account-proof |
session (not package-bound) | { nonce, audience } → an account proof: this node’s receipt key’s signature that the caller’s session asked to bind nonce for audience, valid 5 minutes, which another party checks against the key GET /ops/nodes/{id}/receipt-key names |
|
GET /auth/backup-key, POST /auth/backup-key |
account holder | The account’s recovery-disk backup key { holder, key, apps }, or set it ({ publicKey, confirm? }, 64 hex, an X25519 public key; 412 first; 409 FEATURE_NOT_ACTIVE below 1.0.0-rc.20). Every app is in an organization, so a person’s own apps are backed up under their personal organization’s key (/orgs/{org}/backup-key) |
Packages and bundles
Section titled “Packages and bundles”| Route | Who | What | meroctl |
|---|---|---|---|
POST /bundles |
installer | Upload raw WASM (16 MiB at most). Only with --allow-unsigned-bundles or --dev. |
package install --path X.wasm |
POST /packages?org= |
installer | Upload a signed .mpk, private to org (else the caller’s only organization; in none, to the accounts that install it). Only with --dev; otherwise 403 UPLOADS_DISABLED. |
package install --path X.mpk [--org ORG] |
POST /packages/install |
installer | { package, version, org? } from the registry, for org (else the caller’s only organization); public when the registry serves it to anyone, else private to that organization (in none, to the accounts that install it) |
package install P@V [--org ORG] |
GET /packages |
signed in | Installed packages, only the releases the caller may see (who sees a release) | package list |
GET /packages/{package} |
signed in | One package and the versions the caller may see; 404 when none |
package get, package versions, package get-latest-version |
DELETE /packages/{package} |
account holder | Uninstall every version; refused while an app runs one | package uninstall |
DELETE /packages/{package}/{version} |
account holder | Uninstall one version | package uninstall --version |
GET /packages/{package}/{version}/pipelines |
signed in | The pipelines the release registers: per name hash, worstCaseFuel, the modules they pin and the canonical pipeline; 404 for a release the caller may not see |
package pipelines |
GET /packages/{package}/{version}/capabilities |
signed in | What a release is and may do, before any app of it exists: package, version, service, bundle (the service WASM’s hash), mpk, manifestHash, signer, name, author, the sorted outbound prefixes and the embedded abi (null when none), and over the release and the apps its uses would create, destinations (empty: no data leaves Calimero; an external endpoint, a TEE included, is listed like any other) and members (both null while such a release is not installed); ?service=<name> picks the service (default: the release’s only one; 400 NO_SUCH_SERVICE for an unknown name, or none on a release with several; 400 BAD_REQUEST for an over-long name); 404 for a release the caller may not see; a session bound to the package sees what its account sees |
- |
GET /package-origins/{package} |
signed in | The web origins the package’s manager registered (origin, rpId, addedBy, addedAt, served) |
package origins list |
POST /package-origins/{package} |
account holder | { origin, rpId?, served?, confirm? }: register an origin whose pages sign people in to the package (served: true: the cluster also serves its frontend there, a custom domain); the package’s manager, 412 first (Registered origins) |
package origins add |
DELETE /package-origins/{package} |
account holder | { origin, confirm? }: remove one; the sessions opened there end. 412 first |
package origins remove |
POST /orgs/{org}/publishers |
account holder | { signerId, publicKey, signature, confirm? }: bind a package signing key to the organization (the key’s signature over the binding, an APPROVE_RELEASES holder’s passkey, 412 first), so its MANAGE_APPLICATION holders upgrade the apps of packages that declare upgrades: publisher |
|
GET /publishers/{signer} |
signed in | { bound, generation }: whether a signing key (did:key) is bound on this cluster, never to which organization, and the generation the next binding signs |
Before an install is logged the node checks the publisher signature and every
artifact digest, minRuntimeVersion, the package’s pinned signer (the first
release’s wins) and that each service’s WASM compiles. A node that later runs
the release fetches and verifies it again.
Apps (app instances)
Section titled “Apps (app instances)”{app} is an app id or its context id (hex(SHA-256(app_id))).
| Route | Who | What | meroctl |
|---|---|---|---|
POST /apps |
installer | { name, package?, version?, service?, bundle?, deployment?, org?, newOrg?: { name }, grants?, initArgs?, metadata? } → { appId, group, replicas, compute, links }. The organization is the release’s instanceOrg choice: org, the caller’s only one, or a new one made with it (newOrg; Where an instance goes); deployment creates from a deployment’s offer. Confirm methods are the ones the app’s ABI declares (#[app::confirm]) |
instance create |
GET /apps[?package=P] |
signed in or anyone | Apps the caller reaches | instance list |
GET /apps/{app} |
signed in or anyone | One app | instance get |
DELETE /apps/{app} |
account holder | Delete (owner or org admin) | instance delete |
POST /apps/{app}/intents |
app access | { method, args, idempotencyKey?, confirm? }: a call. A confirm method answers 412 first. |
call |
POST /apps/{app}/views |
app access | { method, args, consistency?: "stale", minIndex? }: a read |
call --view |
POST /apps/{app}/methods/{method} |
app access | The body of /intents or /views without method: runs as /views for a view the ABI declares (without confirm), else as /intents, with the same gate, step-up and limits |
|
GET /apps/{app}/events?from=N |
app access | Server-sent events: committed events from N, then live ones |
instance watch |
POST /apps/{app}/upgrade |
account holder | { bundle? | package?, version?, service?, migrate?, confirm? }; where the owner holds app upgrades, by an owner or admin of the app’s organization |
instance update |
GET /apps/{app}/update |
whoever the app admits | { app, running, available: { package, version, source: deployment | release } | null, mayApprove, approvers }: whether an update is available, for the app’s frontend to offer on the consent page; available carries the update classifier’s class (green/red), reasons, and egress diff (before, after, added, removed) |
|
GET /apps/{app}/egress |
whoever the app admits | { app, destinations, members }: every destination outside the cluster the app and the apps it created may send data to; empty when no data leaves Calimero |
|
POST /apps/{app}/transfer |
account holder | { to, confirm? }: hand the app to another account (the owner, or for an organization’s app its owner while a member, and in the app’s team for an app on a team, or an organization admin, with a passkey step-up; an organization’s app only to a member) |
instance transfer |
POST /apps/{app}/move |
account holder | { toOrg, bringMembers?, confirm? }: move the app to another organization, its data where it is (whoever manages it now, as an admin or the owner of toOrg, with a passkey step-up). Its files, runs and quotas go to the target; its org or app-team grant becomes the target’s app team of its package (made when missing, closed when every app team of the target is; an org grant in a legacy target). bringMembers adds the source’s members who reach it, capped at member. Answers { appId, from, org, grants, created, added, revokedInvites }; a node without the route answers 404 |
instance move |
POST /apps/{app}/access |
account holder | { grants: [{ kind: org | team | account | anyone, … }] }, the instance’s grant list (App access); empty: only the owner |
instance access |
POST /apps/{app}/metadata |
signed in | { metadata } (owner or org admin; 16 KiB) |
instance metadata |
GET /apps/{app}/storage |
app access | Keys, bytes and blobs held, and lastWriteAt (Unix seconds of its last committed write, null before one) |
instance storage |
GET /apps/{app}/usage |
owner or org admin | A component’s runs per UTC day: today and the 30 days before it, each { date, runs, fuel, wallMs, writes, bytesWritten, events }, figures as decimal strings; wallMs is information only |
|
GET /apps/{app}/outbound-log |
owner or org admin | { entries, partial }: the instance’s outbound HTTPS requests, sent or refused, newest first (at most 100, none older than 7 days, kept in memory by the replica whose run made each): { atMs, method, host, path, pathTruncated, status?, failure?, secrets, requestBytes, responseBytes } (status when the host answered, else failure); never a secret value, a body, a query string or a header (What the owner sees) |
instance outbound-log |
GET /apps/{app}/abi |
app access | The bundle’s embedded ABI | instance abi |
POST /pipelines/validate |
a signed-in account | { source, package?, version? }: { ok, errors: [{ path, code, message }], pipeline?, worstCaseFuel?, worstCaseCost? }; with package and version (both, a release the caller sees, else 404) the source is checked against that release’s methods, modules and the cluster’s pools. Writes nothing |
cloud compute pipeline validate |
POST /apps/{app}/pipelines/{name}/estimate |
the app’s owner or its organization’s members | { inputs?: { name: [fileId] } | counts?: { name: n }, params? }: { steps: { step: { runs, fuel, cost? } }, fuel, cost?, priceVersion? }, numbers as decimal strings; ids are only counted. 400 BAD_INPUTS, 404 NO_SUCH_PIPELINE |
cloud compute pipeline estimate |
POST /apps/{app}/pipelines/{name}/runs |
the app’s owner or its organization’s members | { inputs: { name: [fileId] }, params, maxCost? }: start a run of a pipeline the app’s release registers; 200 { run }, with worstCase when maxCost (micro-units, a decimal string) is given. 404 NO_SUCH_PIPELINE, 400 BAD_INPUTS, 400 BAD_PARAMS, 400 BAD_MAX_COST, 409 NO_PRICE_TABLE, 429 TOO_MANY_PIPELINE_RUNS, 409 CLUSTER_NOT_UPGRADED. An API key must give maxCost (400 MAX_COST_REQUIRED), on a retry too |
cloud compute pipeline run |
POST /apps/{app}/pipeline-runs/{run}/retry |
the app’s owner or its organization’s members | { limits?: { step: { fuel?, memoryMib?, wallSecs? } }, maxCost? }: a new run of an ended run’s pipeline at the same release, hash and compute component, with the same inputs and params, retryOf set and the limits applied; 200 { run, retryOf }. 409 STILL_RUNNING, 400 BAD_LIMITS (a step the pipeline lacks, or zero), 400 LIMIT_EXCEEDS_CAP, 410 INPUT_EXPIRED once an input was forgotten |
cloud compute pipeline retry |
GET /apps/{app}/pipeline-runs, GET /apps/{app}/pipeline-runs/{run} |
app access | A pipeline run’s record (state, version, hash, computeBundle, inputs, params, per-step status, runs, outputs, result, reason, cost; cost and costSoFar for a run with a cap), or the recent ones as { runs } (limit 1 to 100; each step shows its counters only, without runs, outputs, result or results, which one run’s record carries); sizes, hashes and results only for callers who may list the app’s files |
cloud compute pipeline get, cloud compute pipeline runs |
GET /apps/{app}/pipeline-runs/{run}/receipt |
the app’s owner or its organization’s members | { receipt, node, signature } for an ended run, signed by the node’s receipt key; 409 RUN_NOT_ENDED |
cloud compute pipeline receipt |
GET /apps/{app}/pipeline-runs/{run}/events |
whoever may read the run | Server-sent events, metadata only: snapshot, then run and step per change, then end and the stream closes; at most 64 per app per node (429 TOO_MANY_SUBSCRIBERS), one hour long |
cloud compute pipeline watch |
POST /apps/{app}/pipeline-runs/{run}/cancel |
the app’s owner or its organization’s members | Cancel a pipeline run | cloud compute pipeline cancel |
GET /apps/{app}/openapi.json |
app access | The ABI as an OpenAPI 3.1 document (App interface) | |
GET /apps/{app}/runs[?limit=N&before=CURSOR] |
app access | The app’s compute runs, newest first, 1 to 100 at a time (default 20); next is the next page’s before |
- |
GET /apps/{app}/xcalls |
signed in (owner or org admin) | { pending, deadLetters }: how many cross-app calls wait in its outbox, and the ones given up on |
- |
GET /apps/{app}/runs/{run} |
app access | A compute run’s record without its arguments or keys: method, state, cancelRequested, startTsMs, attempts, input and output ids (with plaintext sizes and SHA-256 only for callers who may list the app’s files), usage, and progress (percent, step) as the app’s leader last polled it |
- |
GET /apps/{app}/attestation |
app access | { appId, cluster, replicas }: every replica’s receipt-key attestation, each bound to the cluster and its node id |
attest app |
GET/POST /apps/{app}/presence |
app access | Who is present; publish { seq, state } |
instance presence list/publish |
GET /apps/{app}/presence/stream |
app access | Server-sent events: snapshot, then presence diffs |
instance presence stream |
POST /apps/{app}/blobs |
app access | Upload a blob | blob upload |
GET /apps/{app}/blobs |
app access | List blobs (plain blobs only) | blob list |
POST /apps/{app}/files |
owner, org member | Upload a sealed file of up to 16 MiB: { id, blobId, size, sha256, index } |
file upload |
GET /apps/{app}/files, GET /apps/{app}/files/{id} |
owner, org member | List a component’s files; one file’s size and plaintext SHA-256 | - |
POST /apps/{app}/files/{id}/export |
owner, org member | { recipient } (64 hex, an X25519 public key; 400 BAD_RECIPIENT for a bad or low-order one): the file’s { app, id, size, sha256, segments, ephemeral, wrapped }, its data key wrapped to recipient; 404 for a file the app does not hold, 429 TOO_MANY_EXPORTS past 30 a minute per account |
file download |
GET /apps/{app}/files/{id}/segments/{k} |
owner, org member | Segment k of the file’s ciphertext, raw; 404 NO_SUCH_SEGMENT past the last |
file download |
POST /apps/{app}/files/uploads |
owner, org member | Begin an upload session for { size }: { uploadId, partBytes, parts, expiresAt } |
file upload |
PUT /apps/{app}/files/uploads/{upload}/parts/{k} |
session’s account | One part, raw bytes: { next } |
file upload |
GET /apps/{app}/files/uploads/{upload}, DELETE ... |
session’s account | Where the session is (next); abort it |
file upload |
POST /apps/{app}/files/uploads/{upload}/complete |
session’s account | Charge and commit the file; a retry answers the same file | file upload |
GET /apps/{app}/blobs/{id} |
app access | Download (id base58 or hex) | blob download |
GET /apps/{app}/blobs/{id}/info |
app access | A blob’s size | blob info |
DELETE /apps/{app}/blobs/{id} |
app access | Forget (owner or org admin) | blob delete |
POST /apps/{app}/blobs/{id}/revoke |
app access | Invalidate the grants made so far for a published blob (owner or org admin) | blob revoke |
Every /intents and /views answer carries a receipt signed by the answering
node’s receipt key over (app, index, SHA-256(JCS(result)), node).
Organizations and teams
Section titled “Organizations and teams”| Route | Who | What | meroctl |
|---|---|---|---|
POST /orgs |
account holder | { name, recoveryKey? } (a recovery key’s public half); name is 1 to 64 characters on one line, without surrounding spaces (400 otherwise) |
org create |
GET /orgs/{org} |
signed in | Members, teams (filtered to those the caller reaches or manages), metadata | org get, teams, members list, metadata get |
GET /orgs/{org}/members?detail=security |
account holder, owner or admin | Each member’s lockout risk: { orgId, members: [{ account, name, role, teams, passkeys, recoveryCode, lastActiveDay, sessions }] }, passkeys 1, 2 or "3+", lastActiveDay a UTC day (YYYY-MM-DD, null: unknown). 403 below admin, 404 outside the organization (Members’ security) |
org members list --security |
DELETE /orgs/{org} |
account holder | Delete with teams, invites and apps (owner; 412 first) |
org delete |
POST /orgs/{org}/name |
account holder | { name, confirm? }: rename the organization (owner or admin; 412 first), the name as POST /orgs takes it → { orgId, name }. 403 below admin, 404 outside the organization (Organizations) |
- |
POST /orgs/{org}/metadata |
signed in | { metadata } |
org metadata set |
GET /orgs/{org}/usage |
org admin | What today’s runs of the apps the org is the developer of used: apps, developerFuelToday, developerWritesToday (decimal strings), the quotas (D78); a member gets 403 |
|
POST /orgs/{org}/members |
account holder | { account, role, confirm? }; owner moves ownership. 412 first |
org members add |
DELETE /orgs/{org}/members/{account} |
account holder | Remove a member, or leave. 412 first; the retry’s JSON body is { confirm } |
org members remove, org leave |
POST /orgs/{org}/members/{account}/metadata |
signed in | { metadata } |
org member-metadata |
POST /orgs/{org}/members/{account}/teams |
account holder | { teams: [{ team, role?, capabilities? }], confirm? }: the account’s row in each team (1 to 64, each once), each judged as POST /orgs/{org}/teams/{team}/members; all or nothing. 400 BAD_TEAMS; 412 first |
|
DELETE /orgs/{org}/members/{account}/teams |
account holder | { teams: [team], confirm? }: out of each team (or leave them), the teams below included, each judged as DELETE /orgs/{org}/teams/{team}/members/{account}; all or nothing. 400 BAD_TEAMS; 412 first |
|
POST /orgs/{org}/capabilities |
account holder | { account?, team?, capabilities, confirm? }. 412 first |
org capabilities, team settings |
POST /orgs/{org}/all-apps |
account holder | { account, allApps, confirm? }: give a member every app added to the organization from now on, or stop it (owner or admin; 412 first). 403 below admin, 404 outside the organization (Every app added later) |
- |
POST /orgs/{org}/invites |
account holder | { role, teams, ttlSecs?, uses?, allApps?, confirm? } → a token. 412 first; allApps: true (owner or admin, 403 below) also gives whoever redeems it every app added later |
org invite |
GET /orgs/{org}/invites |
session | { invites: [{ inviteKey, role, teams, usesLeft, expiresAt, expired, createdBy, createdAt, allApps }] }: the invites the caller may see, never a token |
|
DELETE /orgs/{org}/invites/{key} |
session | Revoke an invite by its key; 412 first |
|
POST /orgs/{org}/settings |
account holder | { allowGuests?, allowPublicLinks?, confirm? } → { org, allowGuests, allowPublicLinks }: the owner or an admin; 412 first (Guests) |
|
POST /apps/{app}/invites |
account holder | { ttlSecs?, uses?, scope?, confirm? } → a token whose redeemer is named on the instance (a guest, or a named member), with scope on the grant; any instance, whatever its guest switches (a guest’s redemption is refused 409 GUESTS_NOT_ALLOWED while they forbid guests); whoever may change its access; 412 first |
|
GET /apps/{app}/invites |
session | { invites: [{ inviteKey, usesLeft, expiresAt, expired, createdBy, createdAt, scope }] }, never a token |
|
DELETE /apps/{app}/invites/{key} |
account holder | Revoke an instance invite; 412 first |
|
POST /apps/{app}/public-links |
account holder | { label?, expiresAt?, ratePerMinute?, confirm? } → { link, token } (the token once): whoever may change the instance’s access; 409 PUBLIC_LINKS_OFF; 412 first (Public links) |
|
GET /apps/{app}/public-links |
session | { links: [{ link, label, expiresAt, expired, ratePerMinute, createdBy, createdAt }] }, never a token |
|
DELETE /apps/{app}/public-links/{link} |
account holder | Revoke a public link; 412 first |
|
POST /invites/{token}/redeem |
account holder | Join (no passkey prompt: the node signs with the token’s key): an organization invite answers { org }, an instance invite { app, org, member } (named on that app: a guest, or a member when member) |
org join |
POST /orgs/{org}/recovery |
account holder | { publicKey, confirm? }: set, rotate or (null) remove the recovery key (owner; 412 first); cancels a recovery under way |
- |
POST /orgs/{org}/recovery/start |
account holder | { nonce, signature }: the seed’s signature handing the org to the caller → { startedAt, readyAt }. 403 WRONG_RECOVERY_KEY, 409 RECOVERY_PENDING |
- |
POST /orgs/{org}/recovery/cancel |
account holder | Cancel the recovery under way (owner; 412 first) |
- |
POST /orgs/{org}/recovery/finish |
account holder | Become the owner once readyAt passed (the account that started it; 412 first; 409 RECOVERY_NOT_READY before) |
- |
POST /orgs/{org}/teams |
account holder | { name, parent?, join: everyone | invite }: an admin, a lead of parent, a member with CREATE_TEAM at the top, or a member who writes parent and holds CREATE_CHILD_TEAM there (a restricted team only) |
org create-team |
GET /orgs/{org}/teams/{team} |
signed in | One team | team get, team members list |
POST /orgs/{org}/teams/{team} |
account holder | { name?, join?, parent?, metadata? } |
team update, reparent, metadata |
DELETE /orgs/{org}/teams/{team} |
account holder | Delete with the teams below and the apps only they admit; { keepApps: true, confirm? } keeps those apps without the teams’ grants (cluster version 1.0.0-rc.33). 412 first when apps are concerned, its details naming apps and keepApps |
team delete [--keep-apps] |
POST /orgs/{org}/teams/{team}/members |
account holder | { account, lead?, role?, capabilities?, confirm? }. 412 first. A session on a package’s frontend may do this on its own package’s teams only |
team members add |
DELETE /orgs/{org}/teams/{team}/members/{account} |
account holder | Remove, or leave. 412 first; the retry’s JSON body is { confirm } |
team members remove, team leave |
GET /orgs/{org}/app-teams |
signed in (a member) | { mode, appTeams }: each app team’s package, id, name, join, member count, default capabilities, and whether the caller is in it or manages it (a guest: only their own) |
|
POST /orgs/{org}/app-teams |
account holder | { apps?: [{ package, name?, instances?, join?, keep?, childTeams? }], shared?, confirm? } (owner or admin): give apps app teams, or open or close one (join), keeping everyone or the accounts in keep; childTeams lets that team’s members make private channels below it (CREATE_CHILD_TEAM), or no longer. 412 first |
|
GET /orgs/{org}/apps[?after=ID&limit=N] |
signed in (a member) | As GET /auth/apps, for the organization’s apps the caller reaches or manages; 404 to a non-member |
|
POST /orgs/{org}/releases |
account holder | { version, approved, confirm? } (owner) |
org approve-release |
POST /orgs/{org}/outbound |
account holder | { package, prefixes, replace, confirm? } (owner) |
org outbound |
POST /orgs/{org}/upgrade |
account holder | { package, version, team?, cascade?, migrate?, confirm? }: an upgrade run, by the organization’s owner or an admin |
team upgrade trigger |
POST /orgs/{org}/packages/{package}/upgrade |
account holder | { version, migrate?, confirm? }: a publisher’s upgrade run, by an owner or admin of the publisher organization, over the package’s instances in the organizations they are an owner or admin of; 412 first |
|
GET /orgs/{org}/backup-key, POST /orgs/{org}/backup-key |
account holder | The organization’s recovery-disk backup key { holder, key, apps } (any member), or set it ({ publicKey, confirm? }, 64 hex, an X25519 public key; the organization’s owner and admins, where owners upgrade apps (org-wide MANAGE_APPLICATION below cluster version 1.0.0-rc.38); 412 first; 409 FEATURE_NOT_ACTIVE below 1.0.0-rc.20) |
|
GET /orgs/{org}/upgrades/{run} |
signed in (a member) | A run’s progress | team upgrade status |
POST /orgs/{org}/upgrades/{run}/retry |
account holder, or ops for an operator’s run | Retry the failed apps as a new run | team upgrade retry |
Consent requests
Section titled “Consent requests”How an app’s frontend asks the person to approve what its own session may not do (The consent page): the request is sealed, the approval happens on the node’s own page in the clear, with the person’s passkey.
| Route | Who | What | meroctl |
|---|---|---|---|
POST /consent/requests |
session (an app’s frontend included) | { kind, scope?, subject, returnTo } → { requestId, url, expiresAt, code }. kind: release, upgrade, outbound, createOrg, createInvite, acceptInvite, leaveOrg, removeMember, setMemberRole, setMemberTeams, removeMemberTeams, revokeInvite, renameOrg, deleteOrg, setCapabilities, setAllApps. One undecided request per account per node: a new one replaces the older, whose page then answers 404 |
|
GET /consent/{request}/result |
session (the asking account) | { decidedAt, ... , outcome? }: decidedAt null while pending; outcome what the approval made ({ orgId }, { token }, { org }, { orgId, name }, { apps }) |
|
GET /consent/{id}, GET /consent/{id}/model |
anyone, in the clear | The page (static HTML, hash-only CSP, no framing) and the frozen model it shows; with --attestation-verifier-url, verifier links to the independent verifier |
|
POST /consent/{id}/approve, POST /consent/{id}/decline |
the page, same origin | Approve with the person’s passkey (412 first, over the frozen arguments; 409 CONSENT_STALE when the facts changed), or decline |
Deployments and deployers
Section titled “Deployments and deployers”A deployment is a named set of releases an owner (an account or
organization) offers for others to instantiate (POST /apps { deployment });
deployers are who may install where --deployments granted.
| Route | Who | What | meroctl |
|---|---|---|---|
GET /deployments |
signed in | The deployments the caller manages | |
POST /deployments |
account holder | { name, owner, confirm? } → its id, record and frontend host (null without --apps-domain); 412 first |
|
GET /deployments/{id} |
signed in | Its name, its owner’s kind and name, the releases it offers; never its managers or customers | |
DELETE /deployments/{id} |
account holder | Delete one that offers nothing and has no instance; 412 first |
|
POST /deployments/{id}/apps |
account holder | { app, package, version, confirm? }: offer an installed release under an app name; 412 first |
|
DELETE /deployments/{id}/apps/{app} |
account holder | Withdraw an offer (refused while an instance runs it); 412 first |
|
GET /deployments/{id}/orgs |
signed in (its managers) | Each customer organization’s id, name, member counts, instances and their releases, and outsideOrgs (instances in personal organizations below cluster version 1.0.0-rc.32, counted only) |
|
GET /deployments/{id}/secrets |
signed in (its managers) | Each secret its offered releases declare (or a release they use declares) or it holds: the apps that reach it, the releases that declare it (declaredBy), set, and when set its fingerprint, setBy and setAt; never a value |
|
PUT /deployments/{id}/secrets/{name} |
account holder (its managers) | { value, confirm? }: the value every instance created from it uses unless the instance set its own; a name an offered release declares, or a release an offered one uses (404 UNDECLARED_SECRET); 412 first |
|
DELETE /deployments/{id}/secrets/{name} |
account holder (its managers) | Remove its value: instances fall back to the operator’s; 412 first |
|
GET /deployers |
account holder (the cluster’s owner) or ops | The deployments and deployers governance, the owner, every grant | |
POST /deployers, DELETE /deployers/{key} |
account holder (the cluster’s owner, once named) | { deployer, until?, confirm? }: grant, or revoke, a deployer with a passkey; 412 first |
Recovering an organization’s apps
Section titled “Recovering an organization’s apps”| Route | Who | What | meroctl |
|---|---|---|---|
POST /recover/holder |
the holder’s own device, admitted by the operator | { holder, slice, apps, code, operatorProof? }: bring an organization’s apps back from its files on this node’s recovery disk (--recovery-dir, or --recover-from), each with the data key the holder opened with its backup key (hex). 428 OPERATOR_SIGNATURE_REQUIRED first, over cluster / __recover_holder / { holder, slice, apps }; refused where the cluster holds the organization, a person, an app or a passkey already. 409 RECOVERY_SEGMENTS_MISSING, 400 UNATTESTED_RECOVERY_FILE, 400 NOT_A_REPLICA_NODE (Recover after every key service is gone) |
Every route needs the ops token. The Ops API returns counts, Raft status,
placement and per-app usage by id, never app state, names or credentials.
A node started with --metrics-listen ADDR also serves the /ops/metrics
text as plain-HTTP GET /metrics on that separate address, and nothing else
there.
| Route | What | meroctl |
|---|---|---|
GET /ops/status |
{ node, system, governance, groups, nodes, apps, accounts, rollback } |
ops status |
GET /ops/cluster |
{ cluster, identity }: the cluster’s name and identity key (hex), which merod run --job-node --cluster-identity takes |
ops cluster |
GET /ops/job-nodes/{id}/attestation |
{ state: "admitted", node, release }, or { state: "refused" | "unreachable", node, reason }: the check the leader makes before it sends a job node work, without the per-app release approval; refused (final) covers a 400 or 404 from the node, a 2xx answer that is oversized or does not decode, a quote that fails verification, and a 400 or 404 from the collateral source on the PCK certificate or TCB info request; unreachable (transient, ask again) covers everything else: no answer, any other status from the node, and any other collateral failure (Intel PCS, a PCCS, the release host); 404 for an id that is no job node; 503 when this node’s directory is stale. A verified answer is reused for up to a minute |
|
GET /ops/metrics |
Prometheus text, including per-app usage for billing; see Observability and usage metering | ops metrics |
GET /ops/placement |
{ fresh, apps: [{ app, group, replicas }], nodes: [{ id, zone, role, release, apps }], clusterVersion }: where every app’s replicas are, ids and counts only, read after a read index (fresh: this node caught up with the system leader); release is the node’s attested release, null when unknown; clusterVersion is the logged cluster version, null until the first |
ops placement |
GET /ops/apps[?after=ID&limit=N] |
{ fresh, governance, apps: [{ app, group, scope, bundle, package, publisher: { signer, org }, upgradesHeldBy, releasesApprovedBy, lastUpgrade, approvedReleases, replicas: [{ node, release, approved }], lastWriteAt }], next }: what each app runs and which releases may hold it; lastWriteAt is when the app last committed a write (Unix seconds, the timestamp the leader stamped into the entry, so every node names the same one; null before its first write or when no replica answered within 2 s); package only for a release the operator installed, the upgrade’s actor by kind only (What runs where) |
|
GET /ops/orgs[?after=ID&limit=N] |
{ fresh, governance, orgs: [{ org, approvedReleases }], next } |
|
GET /ops/served-origins |
{ fresh, origins: [{ origin, host, label, addedAt }] }: every custom domain a package’s manager registered as a served origin, by the package’s label (app_host::label), never its name; what certificates and routes are made for |
|
POST /ops/nodes |
{ id, addr, zone?, role?, pool?, operatorProof? }: register a node (role: job a job node, in compute pool; a role is fixed until the node is removed), signed with the operator key (428 OPERATOR_SIGNATURE_REQUIRED first, over cluster / __register_node / { id, addr, zone }); the nodes in the first leader’s --peers are registered at genesis; the system leader adds it as a learner, and promotes caught-up learners while fewer than 3 voters are left (straight to 3, never 2) |
ops add-node |
GET /ops/nodes/{id}/receipt-key |
{ node, key, release, attestedAt }: the receipt key this node attested for node id, to check an account proof or a session it signed |
|
DELETE /ops/nodes/{id} |
Remove a node no app keeps a replica on (system leader; elsewhere 421 NOT_LEADER), signed (428 first, __remove_node / { id }; the retry’s JSON body is { operatorProof }). 503 UNAVAILABLE while an organization’s tenant group or a session group has not yet followed the system voters: each takes the system group’s voters a reconcile after a membership change, and removing another node before then could leave one of them without a quorum. It is a wait, not a failure: nothing was removed, and the same request succeeds once the groups converge, usually within a reconcile, as during a rollout that removes nodes in turn (system group sharding) |
ops remove-node |
POST /ops/apps/{app}/replicas |
{ replicas: [id, …], operatorProof? }: move an app, signed (428 first, <app> / __set_replicas / { replicas }, the target sorted; asked before the leader redirect, so the signed body goes to the leader as it is) (at least min(3, nodes in the cluster) registered nodes, and only nodes on a release the app’s owner approved; a node the app is not on yet whose runtime is older than its release’s minRuntimeVersion: 409 RUNTIME_TOO_OLD) → { status, unchanged }. The set it already has: unchanged: true, nothing written. Another move of the app running: 409 MOVE_IN_PROGRESS. On a follower: 421 NOT_LEADER. |
ops move |
POST /ops/backup[?all=true] |
Snapshot the apps this node leads, and the system group when it leads it, into --backup-dir, each with its sealed manifest, beside the cluster key wrapped for this release and the code the directory names → { written }. all=true: every group the node holds, leader or not (disaster recovery) |
ops backup [--all] |
POST /ops/apps/{app}/restore |
{ backup?, recovery?, operatorProof? }: restore the app from a backup in this node’s --backup-dir ({app}/{backup}, the newest when left out), signed (428 first, <app> / __restore_app / { backup, sha256 }); this node seeds the app’s new group and becomes its first replica → { app, group, rows, backup: { name, index, format, merod, release }, status } once every replica holds it. Refused before the signature: 404 BACKUP_NOT_FOUND, 400 BAD_BACKUP (another cluster’s, another app’s, a swapped file), 409 UNKNOWN_BACKUP_FORMAT, 409 BACKUP_FROM_NEWER_RELEASE, 409 BUNDLE_GONE, 409 UPGRADE_PENDING; 409 MOVE_IN_PROGRESS while a move or restore of the app runs. The app’s calls and views answer 409 APP_RESTORING until it is done (Restore an app). recovery: { file, key } restores from a recovery-disk file instead (the app’s holder’s directory under --recover-from, else --recovery-dir), opened with the data key the holder opened from it |
ops restore [--recovery-key-file] |
GET /ops/backup-key, POST /ops/backup-key |
The operator’s recovery-disk backup key { holder, key, apps }, or set it ({ publicKey }, 64 hex, X25519), signed (operator / __set_backup_key / { publicKey }), where the operator upgrades apps (else 403); 409 FEATURE_NOT_ACTIVE below 1.0.0-rc.20 |
ops backup-key |
GET /ops/recovery-files[?holder=H] |
The recovery files this node reads (in --recover-from, else --recovery-dir) of holder (operator, the default, or org:<id>): each file’s name, its signed header and the node’s signature, for the holder’s device to check before it opens a key. Never a key. 409 NO_BACKUP_DIR |
ops recover, ops restore --recovery-key-file |
POST /ops/recover |
{ system: { file, key }, code: [{ file, key }] }: on a founder started with --bootstrap --recover-from DIR, seed the system group from the newest system file and the code files of DIR/operator/, each with the data key the operator opened (hex). The same checks as founding from backups (governance, operator key, no node of the old cluster answering: 409 OLD_CLUSTER_ANSWERS); 409 NOT_RECOVERING on any other node |
ops recover |
POST /ops/sign-up, POST|GET /ops/sign-up/invites, DELETE /ops/sign-up/invites/{key} (or POST .../{key}/revoke) |
Set the sign-up policy ({ policy }) and issue, list and withdraw cluster sign-up invites ({ token, uses?, expiresAt }); each change signed (428 first), refused once the cluster’s owner runs sign-up |
|
GET /ops/quotas, POST /ops/quotas |
Read or change the per-account quotas; a change is signed (428 first, cluster / __set_quotas / { quotas } with every limit after the change; operatorProof sits beside the limits) |
ops quotas, ops set-quotas |
POST /ops/quotas with org |
Override one payer’s maxConcurrentRuns, computeFuel (decimal string) and maxFileBytes (null clears a field; none left removes the override); signed (cluster / __set_org_quotas / { payer, quotas }), refused 409 UPGRADE_PENDING while a node runs an older release. GET /ops/quotas lists them under orgs |
|
GET /ops/pools, POST /ops/pools |
Read the compute pools and the runs each takes, or set them ({ pools: { name: { runsPerNode, maxMemoryMib } } }); a change is signed (428 first, cluster / __set_pools / { pools }) and refused 409 UPGRADE_PENDING while a node runs an older release, POOL_IN_USE when a pool to remove still has job nodes or runs. POST /ops/nodes takes pool for a job node |
|
GET /ops/prices, POST /ops/prices |
Read the price table ({} until one is set), or set it ({ table: { version, fuelPerVcpuSecond, vcpuSecond, gibSecond, connectorGib, storageGibMonth, egressGib } }, micro-units of the billing currency); a change is signed (428 first, cluster / __set_price_table / { table }) and refused 409 UPGRADE_PENDING while a node runs an older release, PRICE_VERSION unless version is the current one plus one (1 for the first), BAD_PRICES for a zero fuelPerVcpuSecond |
ops prices, ops set-prices |
POST /ops/releases |
{ version, approved }, where the operator holds release approvals |
ops release |
POST /ops/releases/{version}/deadline, DELETE ... |
{ after } (RFC 3339): after it, a party that has not approved this release or a newer one creates, installs and upgrades nothing (409 RELEASE_DEADLINE) and placement skips nodes on it; DELETE lifts it. Signed (cluster / __release_deadline / { version, after }); any governance. Public at GET /releases |
|
POST /ops/cluster-owner |
{ owner }: name the cluster’s owner (an account or organization) once, on a --deployers owner cluster; from then on it runs deployers and sign-up with passkeys. Signed; 409 the second time |
|
POST /ops/deployers, DELETE /ops/deployers/{key} (or POST .../{key}/revoke) |
{ deployer, until }: grant a deployer until an RFC 3339 time, or revoke one. Signed; refused once the owner is named |
|
POST /ops/deployments/granted |
From now on only granted deployers install; once, never back. Signed | |
POST /ops/outbound |
{ package, prefixes, replace }, where the operator holds outbound approvals |
ops outbound |
POST /ops/packages, POST /ops/packages/install, GET /ops/packages |
Install (upload or registry) and list the releases the operator upgrades to | ops install, ops packages |
DELETE /ops/packages/{package}[/{version}] |
Uninstall what the operator installed | ops uninstall |
POST /ops/apps/{app}/upgrade |
{ bundle? | package?, version?, service?, migrate? }, where the operator holds app upgrades |
ops upgrade |
POST /ops/orgs/{org}/upgrade |
{ package, version, team?, cascade?, migrate? }, an operator’s upgrade run |
ops upgrade-org |
Quotas (POST /ops/quotas changes the fields it names; a field left out keeps
its value):
| Field | Default |
|---|---|
maxAppsPerAccount |
100 |
maxBundleBytesPerAccount |
1073741824 (1 GiB) |
maxApiKeysPerAccount |
50 |
maxOrgsPerAccount |
20 |
maxAccounts |
100000 |
maxFileBytesPerOrg |
50000000000 (50 GB) |
maxConcurrentRunsPerOrg |
4 |
computeFuelPerOrg |
10000000000000 |
maxFuelPerDeveloperPerDay |
"0" (a decimal string, D20; no limit; per developer: a deployment’s owner for its instances, else the app’s org or owner, D78; 409 UPGRADE_PENDING until every node runs this release) |
Internal
Section titled “Internal”/internal/raft, /internal/system, /internal/system/index,
/internal/call, /internal/view, /internal/challenge/take,
/internal/consent/result, /internal/runtime, /internal/digests, /internal/blob,
/internal/blob/get, /internal/blob/held, /internal/blob/pin,
/internal/blob/delete, /internal/segment/{hash} (GET, PUT),
/internal/upload-begin/... and /internal/upload/... (a resumable file
upload forwarded to the app’s leader), /internal/storage,
/internal/last-write, /internal/xcalls, /internal/usage,
/internal/usage/today, /internal/presence, /internal/app-ready and
/internal/events are for the cluster’s own nodes: they need the cluster secret (an HMAC of the cluster key
and the cluster name) inside a sealed channel whose key was attested like any
client’s. Nothing outside the cluster calls them.
/internal/cluster-key is the one internal route without the cluster secret:
a new node, often of the next mero-tee release, asks it for the cluster key
K_c ({ cluster, node, token }). It is never answered with the key: the peer
delivers K_c (POST /internal/cluster-key/deliver on the waiting node) to the address the cluster has for that node id, inside a sealed
channel to the key the TD there attests (403 for another cluster, an
unknown or removed node, or a delivery that fails; 429 BUSY past four at
once). See The cluster key.
A job node (merod run --job-node) serves only /health,
/attestation?purpose=jobs, GET /job/load, PUT /job/bundles/{hash} and
/job/runs/..., each judged by the cluster identity’s signature or the run’s
token, never by a session or the ops token.
In calimero-node
Section titled “In calimero-node”Where the node implements this chapter, by the names in its code: paths are under crates/node/src
unless another crate is named. The design and its reasons are above; a module’s own detail is in its
//! doc, and the node’s mental model is crates/node/AGENTS.md.
Placement read
Section titled “Placement read”Code: GET /ops/placement, meroctl ops placement, for mdma’s rebalancer.
Each app’s id, group and replicas, each node’s id, zone, attested release (Node::release_of_node,
at most PLACEMENT_RELEASE_WAIT) and app count, after sys_fresh (fresh in the answer).
Ids and counts only.
Version and approval reports
Section titled “Version and approval reports”Code: report.rs, read-only.
GET /ops/apps, GET /ops/orgs (operator), GET /orgs/{org}/apps (any member; 404 else) and
GET /auth/apps (the account’s own apps), paged (?after&limit, report::MAX_REPORT_PAGE).
Per app: scope, bundle digest, package release (report::release_of_app: the one the instance runs,
so releases sharing a WASM are told apart), upgradesHeldBy (operator, else owner once the
logged version brings Feature::OwnerApprovedUpgrades, else the manifest’s), lastUpgrade
(AppRecord::last_upgrade, with report::actor_kind: owner/member/operator, judged against
the app’s and org’s owners as they stand), approved releases, each replica’s release and whether
approved; for accounts also name, the upgrader’s account, newer visible releases
(availableVersions, the newest MAX_AVAILABLE_VERSIONS, from the release it runs, those with its
WASM included), the newest of all of them it can reach (latestReachable) and why the latest is not
it (latestBlocked: runtime, authority), and clusterReleases.
lastUpgrade.from/to name each end’s release from UpgradeRecord::from_release/to_release when
recorded.
The operator sees a package name only for releases it installed (Reader::Operator,
sees_release), never an account, a name or an upgrade’s error text.
Node releases come from Node::release_of_node (attested once, then kept; at most
PLACEMENT_RELEASE_WAIT each), as for placement.
Every report also names each app’s lastWriteAt (Unix seconds, null before its first write;
api::with_last_writes): ComponentHead::last_write_ms, read from this node’s replica or, for an
app it does not host, a replica’s (Node::last_write_ms, internal/last-write, at most
LAST_WRITE_WAIT each, one page at a time).