Node API Reference (OpenAPI)
This page is the node API as a machine-readable
OpenAPI 3.1 document, rendered: every
route of router in crates/node/src/api.rs (and the area routers it merges,
api/<area>.rs) outside /internal/, with its
credential, parameters, request body, answer and error codes.
Node API is the same API as an operator’s overview
with the meroctl command for each route.
Where it comes from
Section titled “Where it comes from”The document is docs/public/openapi.json, served beside this page as
openapi.json. It is generated from the registry next to
the router, crates/node/src/api/openapi.rs, and that registry’s tests hold it
to the code on every CI run:
- every route
routerserves (outside/internal/) has exactly one entry, and no entry names a route the router lacks; - each entry’s request body and query are the ones its handler extracts
(
Json<T>,Option<Json<T>>,Query<T>or raw bytes), with the same field names asT; a sample of the shape deserializes intoT, and a field is optional in the document exactly whenTaccepts the body without it; additionalProperties: falsemarks a body whose type refuses unknown fields;- every error code a handler raises with a literal code is listed for it;
- each error code that carries
detailsnames that value’s schema, on every error response that lists the code (x-calimero-details) and at the document’s root (x-calimero-error-details), and the schema is held to the constructor that builds the error: each value it builds is one of the schema, and each property is built, always when it is required and not always when it is optional; - a response schema the node answers by serializing a Rust type (an app record,
an API key, a package release reference, an organization and its teams, an
upgrade,
Access,Deployer, an attestation and its KMS evidence, an account proof, a registered node, the quotas, a session, a package and its releases, a team, a compute run, an update policy, a backup key, a package origin, the sign-up policy and its invites, and what release, deadline, outbound, uninstall and invite changes answer) names that type, and is held to it the same way: the same field names, a sample read into the type writes back as a value of the schema, and a field is optional exactly when the type may leave it out; one the type only serializes (a Raft group’s status, the rollback counter) is held to real values of the type; - every JSON answer is
{}, a plain value or a schema named after the Rust type the handler serializes, never an object written inline (answers_are_named_components), so each SDK names its type after the node’s; and every schema an operation answers whole by name ($ref) is bound to that type: a named answer built withjson!fails the build’s tests (every_component_answered_whole_is_a_types); - the committed
openapi.jsonis what the registry builds now.
A handler moved to a typed answer keeps its bytes: api::golden,
api::e7_oracles and the typed answers’ own tests compare what each writes
with what the json! it replaced wrote, key order and null against absent
included. A few named schemas hold a part whose keys the node does not fix:
a pipeline run’s view (its stored record, reshaped for the reader) and the
apps of the approval reports (ReportApp, still written from the handlers’
answers). A
value left free-form ({} in the schema) is one whose shape is not the API’s:
an app’s metadata, initArgs, a method’s result, an event’s data, an app’s
error value, the WebAuthn options a ceremony hands to the browser, an app’s ABI
and its own OpenAPI document. Each says so in its description. To
change the API, change the handler and its entry, then regenerate:
UPDATE_OPENAPI=1 cargo test -p calimero-node --lib openapicargo run -p calimero-client-genThe second command regenerates the Rust client’s route layer from the document
(crates/client/src/generated/, by crates/client/gen): one method per
operation on its x-calimero-group’s accessor (client.orgs().invite_create(..),
client.apps().call(..)), named as the other SDKs name it. Its test fails while
the checked-in code differs from what the document generates, so a route change
regenerates both in the same pull request.
Every error answers the one Error schema, so a client decodes any error,
including a code a route does not list, the same way; it reads details by the
error code with the schema the code names. The sealed channel’s own refusal
(busy, outside the envelope) is not an Error: its schema is the one
x-calimero-sealed-refusal names at the root.
The SDKs under sdks/ (mero-js, mero-py, mero-swift and mero-kotlin) generate
their clients from this document. When a push to master changes it,
sdk-regenerate.yml regenerates every SDK and opens or refreshes one pull
request in core (chore/sdk-regenerate), so the SDKs’ CI judges the change
before the next release ships them. Run the workflow by hand (dry run by
default) to see what it would open.
The pull request’s title says what the change does to callers.
scripts/openapi-classify.py diffs the document the SDKs were last generated
from against the new one, using a pinned oasdiff and a set of rules for the
x-calimero-* extensions:
| Change | Title |
|---|---|
Something callers of the generated client rely on is removed or changed: a route, a response field, an operationId, a narrowed enum, a new required request field. The same holds for an operation that now needs a step-up, an operator signature or the sealed channel, stops being retry-safe, or moves to another x-calimero-group. |
feat(sdks)!:, labelled api-breaking |
| Something is added and nothing is broken | feat(sdks): |
Descriptions, new x-calimero-codes entries, and anything else no generated signature sees |
chore(sdks): |
The SDKs are versioned with core, so the title marks the change in core’s
release notes rather than choosing an SDK version. A pull request here that
changes the document gets the same verdict in the summary of its
OpenAPI impact run, so its author sees it before merging.
Calimero node API, OpenAPI 3.1.0: openapi.json(194 paths). Shared schemas are listed at the end.
Public
In the clear (/health, /attestation) or sealed without a credential.
GET /attestation
The node's attestation. In the clear.
In the clear. A TDX quote binding the node's transport key (or, with purpose=receipts, its receipt key and the governance; with purpose=kms, what it verified of its KMS; with purpose=orchestrator, the cluster identity this replica holds) to nonce; app/appHash bind an app's bundle hash: app only an app anyone may reach (public), any other answering 404 as an unknown id does, so it never says that a private app exists; appHash only the bundle of an app placed on this node, any other hash answering 404, so a quote never binds a bundle the node does not run. A client checks it before it seals anything to the key. form=interval (without purpose) answers from the quote the node makes once a minute over its interval key, with interval: that key's signature over this nonce, so no quote is made for the request; a node with no current interval quote answers as without it. Otherwise the node makes one quote at a time and lets a few requests wait for it: past that 503 BUSY with Retry-After: 1, ask again then.
Who: anyone.
| Parameter | In | Type |
|---|---|---|
nonce | query | string |
app? | query | string |
appHash? | query | string |
purpose? | query | "receipts" | "kms" | "orchestrator" |
form? | query | "interval" |
Answer (application/json)
AttestationDoc| Status | Codes |
|---|---|
| 400 | BAD_FORM; BAD_HASH; BAD_NONCE; BAD_REQUEST: the request is malformed |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 503 | BUSY |
GET /health
Node health. In the clear.
In the clear. The node's id, the system group's leader (null: none known), its merod release, the newest cluster version it supports (clusterVersion) and the cluster's rollback epoch (null on a node without a rollback counter).
Who: anyone.
Answer (application/json)
HealthGET /publishers/{signer}
Whether a signing key is bound. Sealed.
Whether a package signing key (did:key) is bound to an organization on this cluster (bound, never which), and its binding generation (0: never bound).
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
signer | path | string |
Answer (application/json)
PublisherBinding| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /recover/holder
Bring an organization's or account's apps back from its recovery files. Sealed.
Sent by the holder's own device, over the sealed channel: its newest holder file (slice), each app's file and the code files, in the receiving node's --recovery-dir (or --recover-from) under org-<id>/ or account-<id>/, each with the data key the holder opened from it with its backup key (hex). The cluster admits it with the operator's signature over cluster / __recover_holder / { holder, slice, apps: [{ app, file, sha256 }] } (428 first, naming it). Where owners upgrade apps, and only for an organization, account, apps and passkeys the cluster does not hold; the receiving node seeds each app, which answers 409 APP_RESTORING until its replicas hold it. People sign in again with the passkeys they had. A pinned app keeps its lineage (taken again from its release where the record lost it), and is refused 409 OUTSIDE_LINEAGE where its package here has another publisher.
Who: anyone. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
Body (application/json)
{
holder: string,
slice: {
file: string,
key: string
},
apps?: {
file: string,
key: string
}[],
code?: {
file: string,
key: string
}[],
operatorProof?: OperatorProof
}Answer (application/json)
HolderRecovered| Status | Codes |
|---|---|
| 400 | BAD_RECOVERY_FILE; BAD_RECOVERY_KEY; BAD_REQUEST: the request is malformed; NOT_A_REPLICA_NODE; TOO_MANY_FILES; UNATTESTED_RECOVERY_FILE |
| 403 | BAD_OPERATOR_SIGNATURE |
| 409 | FEATURE_NOT_ACTIVE; NO_BACKUP_DIR; OUTSIDE_LINEAGE; RECOVERY_SEGMENTS_MISSING. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
GET /releases
The cluster's releases. Sealed.
The cluster's governance and the deadlines set on mero-tee releases, oldest release first: after after (RFC 3339; afterSecs Unix seconds) a scope that has not approved that release (or a newer one) starts no new work.
Who: anyone.
Answer (application/json)
ClusterReleasesAccounts
Sign-up, sign-in, passkeys, sessions, API keys and the account's own approvals.
POST /auth/account-proof
Prove the account to another party. Sealed.
A statement signed with this node's receipt key that the caller's passkey session asked to bind nonce for audience.
Who: a passkey session (an API key is refused).
Body (application/json)
{
nonce: string,
audience: string
}Answer (application/json)
AccountProof| Status | Codes |
|---|---|
| 400 | BAD_AUDIENCE; BAD_NONCE; BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /auth/activity
What the account's passkeys did. Sealed.
Newest first, the last 100: sign-ins (app, origin) and approvals (method, subject); after keeps the entries after that Unix second.
Who: an account holder (a passkey session not bound to an app's frontend).
| Parameter | In | Type |
|---|---|---|
after? | query | integer |
Answer (application/json)
ActivityList| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /auth/aliases
The account's aliases. Sealed.
Who: signed in (a session or an API key).
Answer (application/json)
AliasList| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /auth/aliases/{alias}
Resolve an alias. Sealed.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
alias | path | string |
Answer (application/json)
AliasView| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
PUT /auth/aliases/{alias}
Set an alias. Sealed.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
alias | path | string |
Body (application/json)
{
app: string
}Answer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /auth/aliases/{alias}
Remove an alias. Sealed.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
alias | path | string |
Answer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /auth/apikeys
The account's API keys. Sealed.
Who: an account holder (a passkey session not bound to an app's frontend).
Answer (application/json)
ApiKeyList| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /auth/apikeys
Make an API key. Sealed.
Scoped to apps and methods, read-only or not, for ttlSecs; pipelines (1 to 64 names, with apps: 400 BAD_PIPELINE_SCOPE) makes a pipeline key, which runs those pipelines of those apps, calls no app method (methods may name only __blob, to upload the files a run takes in, at most 1000 files and 1 GiB per key, 429 KEY_UPLOAD_LIMIT: it then reads only the files its pipelines' runs took in or made or that it uploaded, starts a run only over those, and deletes none) and is 403 PIPELINE_KEY_ONLY off the pipeline and method routes; upgrades makes an upgrade key, which signs upgrades of one app in place of a passkey; only an owner or admin of the app's organization makes one (403 FORBIDDEN), and its upgrades are judged by that rule again where they apply. then (at most 4, 64 KiB as JSON; not with upgrades) names confirm call methods of the key's own apps that the same passkey approves, each naming the new key: every string argument exactly key:$key is written key:<keyId> (a follow-up without one is 400 BAD_FOLLOW_UP), the consent and the system log state each call's arguments only by hash (argsHash: SHA-256 of a 16-byte salt, then the arguments as the 412 echoes them, keys sorted by UTF-8 bytes, in compact JSON), the 412 details list them so (then), and the retry runs them in order before making the key; the first that fails answers 422 FOLLOW_UP_FAILED (details: { index, app, method, error, applied }) and no key is made. A key write that fails after follow-ups ran adds applied and keyWrite (refused, or unknown when it may still land: list the keys and revoke it if unwanted) to its error's details. 412 first. The key is shown once.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
Body (application/json)
{
label?: string,
apps?: string[],
methods?: string[],
pipelines?: string[],
readOnly?: boolean,
allowConfirm?: boolean,
ttlSecs?: integer,
upgrades?: {
app: string,
package?: string
},
then?: {
app: string,
method: string,
args?: any
}[],
confirm?: Confirm
}Answer (application/json)
ApiKeyMade| Status | Codes |
|---|---|
| 400 | BAD_FOLLOW_UP; BAD_PIPELINE_SCOPE; BAD_REQUEST: the request is malformed; BAD_UPGRADE_KEY; EXPIRED_CHALLENGE; RESERVED_METHOD; UNKNOWN_CHALLENGE; WRONG_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | ARGS_TOO_LARGE; TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 422 | FOLLOW_UP_FAILED. details of FOLLOW_UP_FAILED: a FollowUpFailed. |
| 429 | QUOTA_EXCEEDED |
DELETE /auth/apikeys/{key}
Revoke an API key. Sealed.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
key | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /auth/apps
The account's own apps. Sealed.
The apps the account owns, in any organization (a package-bound session: its package's), with its only organization's approvedReleases: each app's release, the newer releases it may upgrade to, its last upgrade, its replicas' releases and lastWriteAt.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
after? | query | string |
limit? | query | integer |
Answer (application/json)
AppsReport| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /auth/logout
End this session. Sealed.
Who: a passkey session (an API key is refused).
Answer (application/json)
{}| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /auth/logout-all
End every session of the account. Sealed.
revoked: how many sessions ended.
Who: an account holder (a passkey session not bound to an app's frontend).
Answer (application/json)
SessionsRevoked| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /auth/me
The caller's account. Sealed.
The account, its passkeys (with addedAt and lastSignInAt), organizations (a sign-up makes none; personal is always false, kept for older clients), recovery state, and how the caller came (via). A session opened on an instance's own site reads the account's id and name and that instance's organization alone: passkeys empty, no recovery state.
Who: signed in (a session or an API key).
Answer (application/json)
AccountView| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /auth/passkey/login/begin
Start a sign-in. Sealed.
A WebAuthn challenge for any passkey of the cluster. origin is an app frontend's registered origin, whose rp-id the ceremony then uses. holderKey (base64url of an uncompressed P-256 public point, a browser's non-extractable key) binds the session to that key: the challenge states it, its refresh token is used only with the key's holderProof and lives 7 days rather than 30. then names outbound approvals the same passkey makes with the sign-in (in org, or in a new organization newOrg the sign-in creates): the challenge states them, the ceremony asks for a verified user, and each runs once the session opens. options are the WebAuthn options to hand to the browser as they are: free-form here, their shape is WebAuthn's.
Who: anyone.
Body (application/json, optional): May be absent.
{
origin?: string,
holderKey?: string,
then?: {
approveOutbound: {
org?: string,
newOrg?: string,
package: string,
prefixes: string[],
replace?: boolean
}
}[]
}Answer (application/json)
PasskeyChallenge| Status | Codes |
|---|---|
| 400 | BAD_FOLLOW_UP; BAD_HOLDER_KEY; BAD_REQUEST: the request is malformed |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 429 | RATE_LIMITED: a node's limit on open streams, ceremonies, sign-ups or stream starts (a stream share, a sign-up or a stream start with Retry-After and its details). details of RATE_LIMITED: a RetryAfter. |
POST /auth/passkey/login/finish
Finish a sign-in. Sealed.
Who: anyone.
Body (application/json)
{
challengeId: string,
assertion: Assertion
}Answer (application/json)
Session| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE; WRONG_CHALLENGE |
| 401 | PASSKEY_UNKNOWN_HERE |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /auth/passkey/register/begin
Start a sign-up. Sealed.
Creation options for a new passkey. invite is an organization or cluster sign-up invite token, which the policy may require; 403 SIGN_UP_REFUSED when the policy would refuse the sign-up; 429 RATE_LIMITED, with Retry-After, while this node has taken as many sign-ups as it takes per minute (the retry of register/finish spends one, invited or not). options are the WebAuthn options to hand to the browser as they are: free-form here, their shape is WebAuthn's.
Who: anyone.
Body (application/json)
{
name?: string,
origin?: string,
invite?: string
}Answer (application/json)
PasskeyChallenge| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 403 | SIGN_UP_REFUSED |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 429 | RATE_LIMITED: a node's limit on open streams, ceremonies, sign-ups or stream starts (a stream share, a sign-up or a stream start with Retry-After and its details). details of RATE_LIMITED: a RetryAfter. |
POST /auth/passkey/register/finish
Finish a sign-up. Sealed.
The new passkey's registration. Answers 412 CONFIRM_REQUIRED first: the new passkey signs the account it creates; the retry with confirm (and the same invite) opens a session, and redeems invite for the new account. holderKey on the first finish binds that session to a device key, as on /auth/passkey/login/begin.
Who: anyone. Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
Body (application/json)
{
challengeId: string,
registration: Registration,
invite?: string,
confirm?: Confirm,
holderKey?: string
}Answer (application/json)
Session| Status | Codes |
|---|---|
| 400 | BAD_HOLDER_KEY; BAD_REGISTRATION; BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE; WRONG_CHALLENGE |
| 401 | PASSKEY_UNKNOWN_HERE |
| 403 | ASSERTION_REFUSED; SIGN_COUNT_REPLAYED; SIGN_UP_REFUSED |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | RATE_LIMITED: a node's limit on open streams, ceremonies, sign-ups or stream starts (a stream share, a sign-up or a stream start with Retry-After and its details). details of RATE_LIMITED: a RetryAfter. |
POST /auth/passkeys/add/begin
Start adding a passkey. Sealed.
Creation options for another passkey (a device) on the caller's account. options are the WebAuthn options to hand to the browser as they are: free-form here, their shape is WebAuthn's.
Who: an account holder (a passkey session not bound to an app's frontend).
Answer (application/json)
PasskeyChallenge| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /auth/passkeys/add/finish
Finish adding a passkey. Sealed.
Answers 412 first; sent again with confirm signed by a passkey the account already has.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
Body (application/json)
{
challengeId: string,
registration: Registration,
confirm?: Confirm
}Answer (application/json)
PasskeyAdded| Status | Codes |
|---|---|
| 400 | BAD_REGISTRATION; BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE; WRONG_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /auth/passkeys/{cred}
Name a passkey. Sealed.
Who: an account holder (a passkey session not bound to an app's frontend).
| Parameter | In | Type |
|---|---|---|
cred | path | string |
Body (application/json)
{
label: string
}Answer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /auth/passkeys/{cred}
Remove a passkey. Sealed.
Its sessions end. 412 first; the retry's JSON body is { confirm }.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
cred | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /auth/recovery
Make a recovery code. Sealed.
Shown once, replacing any; 412 first.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
RecoveryCode| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE; WRONG_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /auth/recovery
Remove the recovery code. Sealed.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /auth/recovery/begin
Start an account recovery. Sealed.
Signed out, with the recovery code: creation options for the passkey that will replace the lost ones. options are the WebAuthn options to hand to the browser as they are: free-form here, their shape is WebAuthn's.
Who: anyone.
Body (application/json)
{
code: string
}Answer (application/json)
PasskeyChallenge| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | RATE_LIMITED: a node's limit on open streams, ceremonies, sign-ups or stream starts (a stream share, a sign-up or a stream start with Retry-After and its details). details of RATE_LIMITED: a RetryAfter. |
POST /auth/recovery/cancel
Cancel an account recovery. Sealed.
With a passkey the account has; 412 first.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /auth/recovery/finish
Finish an account recovery. Sealed.
Approved by the new passkey once readyAt passed (412 first): adds it and ends every session of the account.
Who: anyone. Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
Body (application/json)
{
accountId?: string,
confirm?: Confirm
}Answer (application/json)
Session| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE; WRONG_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; SIGN_COUNT_REPLAYED |
| 409 | RECOVERY_NOT_READY. details of RECOVERY_NOT_READY: a RecoveryNotReady. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /auth/recovery/start
Spend the recovery code. Sealed.
Logs the new passkey as pending; it may finish the recovery once readyAt passed (72 h). 401 for a wrong or spent code.
Who: anyone.
Body (application/json)
{
challengeId: string,
code: string,
registration: Registration
}Answer (application/json)
AccountRecoveryPending| Status | Codes |
|---|---|
| 400 | BAD_REGISTRATION; BAD_REQUEST: the request is malformed; WRONG_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 409 | RECOVERY_PENDING |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
POST /auth/refresh
Refresh a session. Sealed.
A new session and the refresh token to use next (the same one until it is an hour old). A reused, superseded token ends the sessions it opened. A token bound to a holder key needs holderProof: signature (base64url, the 64-byte r ‖ s of ECDSA P-256 with SHA-256) by that key over "calimero.refresh-holder.v1\0" ‖ b64url(SHA-256(refreshToken)) ‖ "\0" ‖ at ‖ "\0", at being Unix seconds within 120 of the node's clock; 401 HOLDER_PROOF_REQUIRED without it, 401 BAD_HOLDER_PROOF when it does not verify. Neither spends the token. A superseded token bound to a holder key ends its sessions only with that key's holderProof for it, so a copy without one is refused the same way and ends nothing.
Who: anyone.
Body (application/json)
{
refreshToken: string,
holderProof?: {
at: integer,
signature: string
}
}Answer (application/json)
Session| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | BAD_HOLDER_PROOF; HOLDER_PROOF_REQUIRED; UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 503 | UNAVAILABLE: the cluster cannot answer now |
GET /auth/sessions
The account's live sessions. Sealed.
Latest active first, at most 256. openedAt (Unix seconds) is null for a session opened before the node kept it.
Who: an account holder (a passkey session not bound to an app's frontend).
Answer (application/json)
SessionList| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /auth/sessions/{session}
End one session. Sealed.
404 for a session the account does not hold live.
Who: an account holder (a passkey session not bound to an app's frontend).
| Parameter | In | Type |
|---|---|---|
session | path | string |
Answer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /auth/usage
The account's usage against its quotas. Sealed.
The apps the account owns, its bundle bytes (a decimal string), API keys and owned organizations; the file bytes held by each payer it belongs to (each organization it is in, and account:<id> for its own apps); the cluster's quotas; and what today's runs of the apps the account develops used (decimal strings).
Who: signed in (a session or an API key).
Answer (application/json)
AccountUsage| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
Packages
Signed releases (.mpk), raw bundles and frontend origins.
POST /bundles
Upload a raw component. Sealed.
A calimero:app component, 16 MiB at most; only on a node started with --allow-unsigned-bundles or --dev. A WASM core module (SDK 0.12) is refused 400 UNSUPPORTED_BUNDLE.
Who: an installer (an account holder, or an unscoped API key that is not read-only).
Body (application/wasm): the component
Answer (application/json)
BundleStored| Status | Codes |
|---|---|
| 400 | BAD_BUNDLE; BAD_REQUEST: the request is malformed; UNSUPPORTED_BUNDLE. details of BAD_BUNDLE: a ServiceRefused, UNSUPPORTED_BUNDLE: a ServiceRefused. |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 422 | COMPILE_TIMEOUT. details of COMPILE_TIMEOUT: a ServiceRefused. |
| 429 | QUOTA_EXCEEDED; TOO_MANY_COMPILES |
| 503 | BUSY |
GET /package-origins/{package}
A package's frontend origins. Sealed.
The custom origins (and rp-ids) the package's manager registered for its frontend. Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
package | path | string |
Answer (application/json)
OriginList| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /package-origins/{package}
Register a frontend origin. Sealed.
By whoever manages the package, with a passkey step-up over the change. Answers the origin as registered (the one already there, when the same origin is registered again).
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
package | path | string |
Body (application/json)
{
origin: string,
rpId?: string,
served?: boolean,
confirm?: Confirm
}Answer (application/json)
PackageOrigin| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; BAD_RP_ID; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | QUOTA_EXCEEDED |
DELETE /package-origins/{package}
Remove a frontend origin. Sealed.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
package | path | string |
Body (application/json)
{
origin: string,
confirm?: Confirm
}Answer (application/json)
OriginRemoved| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /packages
Installed packages. Sealed.
Only the releases the caller may see. Who: signed in (a session or an API key).
Answer (application/json)
PackageList| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /packages
Upload a signed release. Sealed.
A signed .mpk, checked as an install from the registry is (signature, artifact digests, minRuntimeVersion, the package's pinned signer, every service compiles). Only with --dev; otherwise 403 UPLOADS_DISABLED. An upload is private to the organization org names (the caller a member, else 404), else the caller's only one: 400 ORG_REQUIRED in several; in none, it is private to the accounts that install it.
Who: an installer (an account holder, or an unscoped API key that is not read-only).
| Parameter | In | Type |
|---|---|---|
org? | query | string |
Body (application/octet-stream): the .mpk
Answer (application/json)
PackageInstalled| Status | Codes |
|---|---|
| 400 | BAD_BUNDLE; BAD_PACKAGE; BAD_REQUEST: the request is malformed; COMPUTE_ABI_MISMATCH; ORG_REQUIRED; UNSUPPORTED_BUNDLE. details of BAD_BUNDLE: a ServiceRefused, COMPUTE_ABI_MISMATCH: a ServiceRefused, UNSUPPORTED_BUNDLE: a ServiceRefused. |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | DEPLOY_NOT_GRANTED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); UPLOADS_DISABLED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 422 | COMPILE_TIMEOUT. details of COMPILE_TIMEOUT: a ServiceRefused. |
| 429 | TOO_MANY_COMPILES |
| 503 | BUSY |
POST /packages/install
Install a release from the registry. Sealed.
For the organization org names (the caller a member, else 404), else the caller's only one (400 ORG_REQUIRED in several). A release the registry serves without its credential is public: everyone here uses it. Else it is fetched with the credential and the caller's account, and is private: only the members of the organizations it was installed for use it, and an install for another adds that one; installed for none (the caller is in none), only the accounts that install it use it. 404 when the registry serves it to neither; 403 ACCOUNT_NOT_LINKED when the registry refuses the caller's account as linked to no Calimero Cloud developer (link it in Calimero Cloud, under node accounts).
Who: an installer (an account holder, or an unscoped API key that is not read-only).
Body (application/json)
{
package: string,
version: string,
org?: string
}Answer (application/json)
PackageInstalled| Status | Codes |
|---|---|
| 400 | BAD_BUNDLE; BAD_PACKAGE; BAD_REQUEST: the request is malformed; COMPUTE_ABI_MISMATCH; NO_REGISTRY; ORG_REQUIRED; UNSUPPORTED_BUNDLE. details of BAD_BUNDLE: a ServiceRefused, COMPUTE_ABI_MISMATCH: a ServiceRefused, UNSUPPORTED_BUNDLE: a ServiceRefused. |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ACCOUNT_NOT_LINKED; DEPLOY_NOT_GRANTED; 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 |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 422 | COMPILE_TIMEOUT. details of COMPILE_TIMEOUT: a ServiceRefused. |
| 429 | TOO_MANY_COMPILES |
| 503 | BUSY |
GET /packages/{package}
One package. Sealed.
The versions the caller may see; 404 when none.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
package | path | string |
Answer (application/json)
Package| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /packages/{package}
Uninstall a package. Sealed.
Every version; refused while an app runs one. Who: an account holder (a passkey session not bound to an app's frontend).
| Parameter | In | Type |
|---|---|---|
package | path | string |
Answer (application/json)
Uninstalled| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /packages/{package}/{version}
Uninstall one version. Sealed.
Who: an account holder (a passkey session not bound to an app's frontend).
| Parameter | In | Type |
|---|---|---|
package | path | string |
version | path | string |
Answer (application/json)
Uninstalled| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /packages/{package}/{version}/capabilities
A release's capabilities. Sealed.
What the release is and may do, read from its signed manifest and the ABI its service component embeds, before any app of it exists: bundle is the service WASM's hash, outbound the sorted prefixes it may call out to and abi the embedded calimero:abi verbatim (null when it embeds none). destinations is where an instance of it could send data, over the release and every app its uses would create with it (members, by path, each with its release, signer and own destinations), empty when no data leaves Calimero; both null while a release its uses would create is not installed here. service names the service whose card to read (default: the release's only one). A session bound to the package reads what its account does (every release of it recorded before releases were public or private). 404 for a release the caller may not see, 400 NO_SUCH_SERVICE for an unknown service or no service on a release with several, 400 BAD_REQUEST for an over-long service.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
package | path | string |
version | path | string |
service? | query | string |
Answer (application/json)
CapabilityCard| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; NO_SUCH_SERVICE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /packages/{package}/{version}/frontend
A release's frontend files. Sealed.
Every file the node serves for the release's frontend (at /{version}/{path} on the package's origin), with its SHA-256 and size, and the entry. The node verified each against the publisher's signature at install; a client that attested this node checks the page it was served against this list, so a TLS terminator or a certificate holder cannot swap the page unseen. Public, as the files are. 404 for a release that ships no frontend or that the cluster does not hold.
Who: anyone.
| Parameter | In | Type |
|---|---|---|
package | path | string |
version | path | string |
Answer (application/json)
FrontendDigests| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
GET /packages/{package}/{version}/pipelines
A release's pipelines. Sealed.
The pipelines the release registers, by name: hash, worstCaseFuel (a decimal string), the modules they pin and the canonical pipeline. 404 for a release the caller may not see.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
package | path | string |
version | path | string |
Answer (application/json)
ReleasePipelines| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /packages/{package}/{version}/recipes
A release's recipes. Sealed.
The recipes the release ships, by name: the SHA-256 hash and the source of each, as signed. They are never compiled or resolved at install, so one may name a module that is not installed. 404 for a release the caller may not see.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
package | path | string |
version | path | string |
Answer (application/json)
ReleaseRecipes| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
Apps
App instances: calls, views, events, upgrades and exports.
GET /apps
Apps the caller reaches. Sealed.
The instances the caller reaches; one an anyone grant admits is listed only to its owner.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
package? | query | string |
bundle? | query | string |
Answer (application/json)
AppList| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps
Create an app instance. Sealed.
From a release (package, version, service), a deployment's offer (deployment), or an uploaded bundle. Every app is in an organization, chosen by the release's signed instanceOrg (a raw bundle: either): standalone makes a new organization with the instance (its name newOrg.name, else the instance's), and naming org is 400 STANDALONE_INSTANCE; org goes into org, else the caller's only organization (400 ORG_REQUIRED with several, 409 NO_ORGANIZATION with none; newOrg is 400 ORG_INSTANCE); either goes into org, a new one when newOrg asks, else the caller's only one, else (none) a new one, 400 ORG_REQUIRED with several. grants say who reaches it (#Grant; absent: the organization; empty: the owner alone; the single access mode of earlier releases is 400 ACCESS_REMOVED, never read as no grants). initArgs go to the app's init and metadata is kept as given (both free-form JSON). Answers once init committed; compute says whether the app has a compute component.
Who: an installer (an account holder, or an unscoped API key that is not read-only).
Body (application/json)
{
name?: string,
bundle?: string,
package?: string,
version?: string,
service?: string,
org?: string,
newOrg?: {
name: string
},
grants?: Grant[],
initArgs?: any,
metadata?: any,
deployment?: string
}Answer (application/json)
AppCreated| Status | Codes |
|---|---|
| 400 | ACCESS_REMOVED; AMBIGUOUS_COMPUTE; BAD_REQUEST: the request is malformed; NOT_OFFERED; NO_SUCH_SERVICE; ORG_INSTANCE; ORG_REQUIRED; STANDALONE_INSTANCE; VERSION_REQUIRED. details of VERSION_REQUIRED: a VersionRequired. |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ACCOUNT_NOT_LINKED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | FEATURE_NOT_ACTIVE; NO_ORGANIZATION; RELEASE_DEADLINE; RUNTIME_TOO_OLD. details of FEATURE_NOT_ACTIVE: a FeatureNotActive, RELEASE_DEADLINE: a ReleaseDeadline, RUNTIME_TOO_OLD: a RuntimeTooOld. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 422 | INIT_FAILED. details of INIT_FAILED: a InitFailed. |
| 429 | QUOTA_EXCEEDED |
| 503 | UNAVAILABLE: the cluster cannot answer now |
GET /apps/{app}
One app. Sealed.
{app} is an app id or its context id (hex(SHA-256(app_id))), here and on every /apps/{app} route. A guest sees only their own grant in grants.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
App| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /apps/{app}
Delete an app. Sealed.
The owner or an organization admin. An instance whose release created apps with it (uses with mode: create, its links) is deleted with every one of them, theirs included, listed in members; a member is not deleted alone while its instance stands (409 UNIT_MEMBER).
Who: a passkey session (an API key is refused).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
AppDeleted| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 | FEATURE_NOT_ACTIVE; UNIT_MEMBER. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/abi
An app's ABI. Sealed.
The ABI its bundle embeds: methods, events, errors and state. abi is the bundle's own document, free-form here: its format is the ABI's, not this API's.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
AppAbi| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/access
Set who may reach an app. Sealed.
grants replace the instance's grant list (#Grant; empty: the owner alone). Its owner, or whoever manages the organization's apps (on each team it admits, before and after). A package-bound session: only its own package's app, from one of its package's teams to another.
Who: a passkey session (an API key is refused).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
grants: Grant[]
}Answer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/actions/{id}/stream
An action's live answer as server-sent events. Sealed.
The redacted text of each streamed answer the action reads (an outbound request with calimero-stream: sse, at the JSON Pointer its credential's binding declares as stream.text), as the node reads it: for the account that started the action only, from any node; anyone else gets the 404 of an action that does not exist. A subscriber gets what was sent so far first. Kept in memory on the node running the action, never logged or replicated: at most 1 MiB per action (past it, end with failed: "stream too large"; the app's answer stays whole), and 60 s after the end.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
id | path | string |
Answer (text/event-stream): Server-sent events: delta { text } as the redaction releases it, reset {} when a retry starts over, then end { failed: string | null }.
| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | RATE_LIMITED: a node's limit on open streams, ceremonies, sign-ups or stream starts (a stream share, a sign-up or a stream start with Retry-After and its details). details of RATE_LIMITED: a RetryAfter. |
| 503 | UNAVAILABLE: the cluster cannot answer now |
GET /apps/{app}/attestation
Every replica's receipt-key attestation. Sealed.
Each replica's /attestation?purpose=receipts for nonce (32 bytes, hex), or why it could not be had (error), and cluster, the cluster id each quote binds (with the replica's node): the documents are fetched in the clear, so their own cluster and node fields count for nothing. Any other query parameter is ignored.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
nonce | query | string |
Answer (application/json)
AppAttestations| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/delegations
What you let an app do as you. Sealed.
The apps you let this app call as you, each with the methods (SetDelegation). A session bound to an app's frontend reads its own app's only.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
Delegations| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
PUT /apps/{app}/delegations/{target}
Let an app call another as you. Sealed.
The methods of target that the release app runs lists for target's package in its signed uses (methods), with your passkey over exactly those. You must reach both apps, which are in one organization. From then on, when app calls one of those methods while serving you, target runs it with you as the caller and reads env::via() = app; without the grant it runs as app, and target never learns who app was serving. A method that needs your passkey confirmation is still refused there. 409 NOTHING_TO_DELEGATE when the release lists none. A session opened on an app's frontend is refused (403): the app asks on the consent page instead (POST /consent/requests { kind: "delegate" }).
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
target | path | string |
Body (application/json)
{
confirm?: Confirm
}Answer (application/json)
DelegationMade| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE; NOTHING_TO_DELEGATE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /apps/{app}/delegations/{target}
Take back what an app may do on another as you. Sealed.
No passkey: it only narrows. 404 NOT_DELEGATED when you granted nothing there.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
target | path | string |
Answer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_DELEGATED |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/egress
Where an app's unit may send data. Sealed.
For whoever may read the app (GET /apps/{app}'s rule). destinations: every destination (outbound prefix, and a declared secret's host no prefix names) of the release the instance runs and of each app it created with it (links, transitively; never an attached app), sorted; empty when no data leaves Calimero. An external endpoint, a TEE included, is listed like any other: the platform never vouches for one (an app that trusts one verifies it in its own code). members: each member by its path (<name>, a member's own <name>/<name>) with its app id, release, signer and own destinations. A development bundle declares none. egress: off while its organization (offBy: organization) or the instance (instance) turned egress off (offBy and summary are absent while it is on), when none of the destinations is reached and summary says the app cannot send data outside the cluster, naming the origins its page can still connect to (frontend.connect), which the switch does not cover.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
EgressView| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/egress
Turn one app's egress off or on. Sealed.
As POST /orgs/{org}/egress, for this instance alone, by its organization's owner or an admin: off, it sends nothing out of the cluster whatever was approved; on again (the consent page only, kind: setEgress with app) lets it send only while its organization's egress is on too.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
egress: boolean,
confirm?: Confirm
}Answer (application/json)
EgressSet| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; CONSENT_PAGE_REQUIRED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/egress/bytes
An app's bytes egress switch. Sealed.
Whether the app's release declares bytes.egress and the owner's switch as last set (none while it never was: off); the app's owner or an admin of its organization.
Who: an account holder (a passkey session not bound to an app's frontend).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
BytesEgress| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/egress/bytes
Turn an app's bytes egress on or off. Sealed.
Whether a view's stream may go to a caller who is neither the app's owner nor a member of its organization: off on every new install, even when the release declares bytes.egress; while off or undeclared such a stream is 404, and the owner's and members' streams are never affected. The app's owner or an admin of its organization, with a passkey over { on } either way (412 first; the retry's body adds confirm). Turning it on for a release that does not declare it is 409 BYTES_EGRESS_NOT_DECLARED.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
on: boolean,
confirm?: Confirm
}Answer (application/json)
Logged| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | BYTES_EGRESS_NOT_DECLARED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/egress/bytes/log
An app's bytes egress log. Sealed.
Every stream that started to a caller who is neither the app's owner nor a member of its organization, as core logged it (the app cannot write or drop a row), the last 1,000; the app's owner or an admin of its organization. Who: an account holder (a passkey session not bound to an app's frontend).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
BytesEgressLog| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/events
An app's events as server-sent events. Sealed.
Committed events from index from, then live ones, each to its audience. With watch=true, a watch stream instead: its first frame is event: stream with { stream }, then event: view-result (id: <index>:<seq>, { sub, index, answer }, or { sub, index, error } for an app error) when a watched view's answer changed (the first change at once, then at most one per the watch's interval), event: view-changed ({ sub, index }) when the new answer is over 64 KiB (read it), and event: watch-ended ({ sub, reason }: access-lost, view-refused or read-set-unbounded) when a watch is dropped. stream with last (or Last-Event-ID) resumes a stream within 30 s: each watch touched after last is sent its current answer again; a stream that is gone comes back as a new one followed by event: watch-reset ({}), and its watches must be added again.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
from? | query | integer |
watch? | query | boolean |
stream? | query | string |
last? | query | integer |
Answer (text/event-stream): Server-sent events: each committed event the caller is in the audience of, or a watch stream's notices.
| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | RATE_LIMITED: a node's limit on open streams, ceremonies, sign-ups or stream starts (a stream share, a sign-up or a stream start with Retry-After and its details). details of RATE_LIMITED: a RetryAfter. |
| 503 | UNAVAILABLE: the cluster cannot answer now |
POST /apps/{app}/export
Export the whole app. Sealed.
The app's owner or an admin of its organization, with a passkey over this export (412 first; the retry's body adds confirm), and never an API key (403, whatever its scope). Anyone else is refused as GET /apps/{app}/egress/bytes/log refuses them. 30 a minute per account, one at a time per app (503 BUSY). No app code runs, and the egress switch does not apply. Answers Content-Type: application/vnd.calimero.stream as a streamed view does (its record, the bytes, the SHA-256 trailer), and the record also carries manifest: { app, index, atMs, state, refs, missing, complete }, the log index the export is taken at, the app's state as a file of rows (state: id, size, SHA-256, segments), each file the app holds that may leave and whose segments could be had (refs: id, size, SHA-256, contentType, segments), the files whose segments could not be had (missing), and complete: missing is empty. The bytes are the state, then each ref in the manifest's order; a segment that cannot be had after the manifest was sent ends the body with an error, so a cut stream never looks whole. Never in the export: secrets, run scopes, run-scoped files, a run's logs and files a pipeline run holds. A node that does not host the app answers 503; so does one that cannot show the caller still manages the app, and a stream already going stops when they no longer do.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
confirm?: Confirm
}Answer (application/vnd.calimero.stream): OK: the stream, application/vnd.calimero.stream.
| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | NOT_SUPPORTED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | TOO_MANY_EXPORTS |
| 503 | BUSY; UNAVAILABLE: the cluster cannot answer now |
GET /apps/{app}/export/log
An app's export log. Sealed.
Every export made through POST /apps/{app}/export and POST /apps/{app}/export/{reference} by the app's owner or an organization member, as core logged it before any byte left (the app cannot write or drop a row), the last 1,000, with by as account:<id>, refs the file's id or for a whole export the state's SHA-256 followed by the first files, and bytes; the egress log holds none of them. The app's owner or an admin of its organization.
Who: an account holder (a passkey session not bound to an app's frontend).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
BytesEgressLog| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/export/{reference}
Export one file of the app. Sealed.
The owner and the organization's members, 30 a minute per account (shared with the whole-app export), held to the files routes' reach rules: an API key made for pipelines reaches only the files of its pipelines (404 for another), and a key scoped to methods without __blob is 403. One file the app holds, as a streamed view sends it: no app code, no egress switch. A file the app does not hold, one held by another app, a run-scoped one and one that may not leave are 404. The stream stops when the caller stops being a member.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
reference | path | string |
Answer (application/vnd.calimero.stream): OK: the stream, application/vnd.calimero.stream.
| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | TOO_MANY_EXPORTS |
| 503 | BUSY |
POST /apps/{app}/intents
Call a method. Sealed.
A logged call: the result, the events of the call the caller receives, and the answering node's receipt. A confirm method answers 412 first. An app error is 422 APP_ERROR with details { index, code, fields }; a trap 422 TRAP. args, result and each event's data are the app's own JSON, free-form here: the app's ABI (GET /apps/{app}/abi, or its OpenAPI document) types them. An idempotencyKey starting node:apikey: is the node's own (an API key's follow-ups): 400 RESERVED_IDEMPOTENCY_KEY.
Who: whoever the app's grants admit (anyone: any signed-in account). Step-up: when the method is a confirm method of the app's ABI, answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
method: string,
args?: any,
idempotencyKey?: string,
confirm?: Confirm
}Answer (application/json)
IntentResult| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; RESERVED_IDEMPOTENCY_KEY; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | RELEASE_DEADLINE. details of RELEASE_DEADLINE: a ReleaseDeadline. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | ARGS_TOO_LARGE; TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 422 | APP_ERROR; TRAP. details of APP_ERROR: a AppError, TRAP: a Trap. |
| 429 | QUOTA_EXCEEDED |
| 503 | TIMEOUT; UNAVAILABLE: the cluster cannot answer now. details of TIMEOUT: a RetryAfter. |
GET /apps/{app}/invites
An instance's invites. Sealed.
For whoever may change its access: keys, terms and scope, never a token. Who: a passkey session (an API key is refused).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
AppInviteList| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/invites
Invite someone to an instance. Sealed.
A token whose redeemer is named on this instance only (an account grant: a guest, or a named member when they are a member of its organization; never added to the organization), uses times (1 to 1000, default 1) within ttlSecs (at most 90 days, default 7), on any instance. scope (opaque JSON, at most 256 bytes) goes on the grant it makes, for the app to read: the platform admits, the app scopes (one channel of a chat, say). Whoever may change the instance's access, whatever its guest switches say: they are judged when someone redeems it. At most 64 pending per instance. 412 first.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
ttlSecs?: integer,
uses?: integer,
scope?: any,
confirm?: Confirm
}Answer (application/json)
AppInviteMade| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE; WRONG_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | QUOTA_EXCEEDED |
DELETE /apps/{app}/invites/{key}
Revoke an instance invite. Sealed.
Its creator, or whoever may change the instance's access; 412 first.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
key | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/links
List an app's links to the apps its release uses. Sealed.
One row per reference (uses) of the release the app runs, with the app linked under it: a member made with the instance (mode: create) or an app its owner attached (mode: attach), null when none. version is the release that app runs and inRange whether it is inside the reference's range (null with nothing linked). A link the release no longer names is listed with package, range and mode null.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
AppLinkList| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
PUT /apps/{app}/links/{name}
Attach an app to one of an app's references. Sealed.
name is an attach reference of the release the app runs, and app an app of the same organization that runs its package; the caller manages both. One outside the reference's range is attached anyway and answered inRange: false, and the consent page warns about it on later upgrades: an attached app is never upgraded with the instance. env::linked(name) answers it from the next run on. Answers the link as GET /apps/{app}/links lists it.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
name | path | string |
Body (application/json)
{
app: string,
confirm?: Confirm
}Answer (application/json)
LinkRow| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; NOT_ATTACHABLE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE; NOT_AN_ATTACH_REFERENCE; WRONG_PACKAGE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /apps/{app}/links/{name}
Detach an app attached to an app. Sealed.
Whoever manages the app. A member made with the instance is never detached.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
name | path | string |
Body (application/json)
{
confirm?: Confirm
}Answer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_ATTACHED; NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/metadata
Set an app's metadata. Sealed.
The owner or an organization admin; 16 KiB at most. metadata is the caller's own JSON, free-form, kept as given.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
MetadataBodyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/methods/{method}
Call a method by its path. Sealed.
The body of /intents or /views without method, which the path names, as the app's OpenAPI document lists it: a view the running bundle's ABI declares (without confirm) is answered as /views, anything else as /intents, with that route's gate, step-up and limits. Retry-safe as a view always, as a call with idempotencyKey. args, result and each event's data are the app's own JSON, free-form here: the app's ABI (GET /apps/{app}/abi, or its OpenAPI document) types them. A body of any media type but JSON is the call's byte body, up to 16 MiB: a method marked acceptsBody in the ABI takes it (any other is 400 NO_BODY_EXPECTED, a view included), the node stores it as a file of the app, charged to the app's payer, on a majority of its replicas before the method runs, and bytes.body answers the file's id in that run. The args go in the X-Calimero-Args header (base64url JSON, at most 8 KiB; 400 BAD_ARGS_HEADER) and the idempotency key in Idempotency-Key. A body no majority took is 503 BYTES_UNAVAILABLE with Retry-After: nothing is logged and the key is not spent. A key already spent answers only the body it was spent on: another body, or none, is 409 KEY_BODY_MISMATCH. A body the method does not store is collected as an unreferenced file is, and each such body counts as at least 16 MiB: an account whose bodies no call kept came to 256 MiB in the last day, per app, is refused another, as is any account once the app's came to 4 GiB: 429 TOO_MANY_UNUSED_BODIES. A view that answers a stream is answered as /views does.
Who: whoever the app's grants admit (anyone: any signed-in account). Step-up: when the method is a confirm method of the app's ABI, answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
method | path | string |
x-calimero-args? | header | string |
idempotency-key? | header | string |
Body (application/json)
{
args?: any,
idempotencyKey?: string,
confirm?: Confirm,
consistency?: "strong" | "stale",
minIndex?: integer
}Answer (application/json)
MethodResult| Status | Codes |
|---|---|
| 400 | BAD_ARGS_HEADER; BAD_BODY; BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; NO_BODY_EXPECTED; RESERVED_IDEMPOTENCY_KEY; RESERVED_METHOD; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | KEY_BODY_MISMATCH; RELEASE_DEADLINE. details of RELEASE_DEADLINE: a ReleaseDeadline. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | ARGS_TOO_LARGE; TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 422 | APP_ERROR; STREAM_TOO_SPARSE; TRAP. details of APP_ERROR: a AppError, TRAP: a Trap. |
| 429 | QUOTA_EXCEEDED; TOO_MANY_BODIES; TOO_MANY_UNUSED_BODIES. details of TOO_MANY_BODIES: a RetryAfter. |
| 503 | BYTES_UNAVAILABLE; NOT_CAUGHT_UP; TIMEOUT; UNAVAILABLE: the cluster cannot answer now. details of BYTES_UNAVAILABLE: a RetryAfter, TIMEOUT: a RetryAfter. |
POST /apps/{app}/move
Move an app to another organization. Sealed.
Its data where it is; its files, runs and quotas go to the target, its org or app-team grant becomes the target's app team of its package. bringMembers adds the source's members who reach it, capped at member. from is the organization it left, null for an app of the caller's own; added the accounts brought; revokedInvites how many invites to its old team were withdrawn.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
toOrg: string,
bringMembers?: boolean,
confirm?: Confirm
}Answer (application/json)
AppMoved| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/openapi.json
An app's OpenAPI document. Sealed.
Generated from the ABI of the bundle the app runs, under the access /abi has: one POST /apps/{app}/methods/{method} per method, with its arguments, result and errors. Free-form here: it is a document of its own, which a client reads as OpenAPI.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
AppOpenApi| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 410 | UNSUPPORTED_ENGINE |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 422 | BAD_ABI |
GET /apps/{app}/origins
An instance's web origins. Sealed.
The web origins its managers registered for the instance: a site of their own whose people sign in there, with passkeys of its own rp-id, and reach this instance alone. Who: an account holder (a passkey session not bound to an app's frontend).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
AppOriginList| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/origins
Register a web origin for an instance. Sealed.
By whoever manages the instance (its owner or an admin of its organization), with a passkey step-up over { origin, rpId }. A passkey ceremony there opens a session bound to the instance's package that reaches this instance alone; what the account may do in it is the instance's grants'. Answers the origin as registered (the one already there, when the same origin is registered again).
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
origin: string,
rpId?: string,
confirm?: Confirm
}Answer (application/json)
PackageOrigin| Status | Codes |
|---|---|
| 400 | BAD_ORIGIN; BAD_REQUEST: the request is malformed; BAD_RP_ID; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE; ORIGIN_TAKEN. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | QUOTA_EXCEEDED |
DELETE /apps/{app}/origins
Remove an instance's web origin. Sealed.
Whoever manages the instance, with a passkey step-up. The sessions opened there end.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
origin: string,
confirm?: Confirm
}Answer (application/json)
OriginRemoved| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/outbound-log
An app's outbound requests. Sealed.
The owner or an organization admin: the outbound HTTPS requests the instance's runs made, sent or refused, newest first, at most 100 (MAX_AUDIT_ENTRIES) and none older than 7 days (AUDIT_RETENTION_MS). Each replica keeps those its own runs made, in memory, until it restarts; partial says a replica did not answer. An entry holds no secret value, body, query string or header.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
OutboundLog| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/pipeline-runs
An app's pipeline runs. Sealed.
The recent runs, newest first, as { runs }; limit 1 to 100. Sizes, hashes and results only for callers who may list the app's files. A pipeline key lists the runs of its pipelines.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
limit? | query | string |
Answer (application/json)
PipelineRunList| Status | Codes |
|---|---|
| 400 | BAD_LIMIT; BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/pipeline-runs/{run}
One pipeline run. Sealed.
Its record: state, version, hash, computeBundle, inputs, params, per-step status, runs, outputs, result, reason and cost (usage and usageSoFar for a run with a budget; cost and costSoFar for a run with a cost cap that started before usage budgets). Sizes, hashes and results only for callers who may list the app's files.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
run | path | string |
Answer (application/json)
PipelineRunView| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/pipeline-runs/{run}/cancel
Cancel a pipeline run. Sealed.
The owner and the organization's members. Its pending steps end cancelled and its running steps' runs stop. Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
run | path | string |
Answer (application/json)
PipelineCancelled| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/pipeline-runs/{run}/events
A pipeline run as server-sent events. Sealed.
Whoever may read the run. Metadata only; at most 64 streams per app per node, and one lasts an hour.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
run | path | string |
Answer (text/event-stream): Server-sent events: a snapshot, then run and step per change, then end, and the stream closes.
| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | TOO_MANY_SUBSCRIBERS |
GET /apps/{app}/pipeline-runs/{run}/receipt
A pipeline run's receipt. Sealed.
The owner and the organization's members. For an ended run: the receipt, the answering node and its signature over it, by the node's receipt key. version=2 adds what each job's report signs to its proof (job) and each job node's attestation (jobAttestations); the default, 1, leaves them out.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
run | path | string |
version? | query | integer |
Answer (application/json)
SignedPipelineReceipt| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; BAD_VERSION |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 | RUN_NOT_ENDED |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/pipeline-runs/{run}/retry
Retry a pipeline run. Sealed.
The owner and the organization's members. A new run of an ended run's pipeline at the same release, hash and compute component, with the same inputs and params, the limits applied and retryOf set. maxUsage and idempotencyKey as on a start.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
run | path | string |
Body (application/json)
{
limits?: {
[key: string]: {
fuel?: integer,
memoryMib?: integer,
wallSecs?: integer
}
},
maxUsage?: {
fuel: string,
wallMs: string
},
idempotencyKey?: string
}Answer (application/json)
PipelineStarted| Status | Codes |
|---|---|
| 400 | BAD_IDEMPOTENCY_KEY; BAD_LIMITS; BAD_MAX_USAGE; BAD_REQUEST: the request is malformed; LIMIT_EXCEEDS_CAP; MAX_USAGE_REQUIRED |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 | CLUSTER_NOT_UPGRADED; FEATURE_NOT_ACTIVE; IDEMPOTENCY_KEY_REUSED; STILL_RUNNING. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 410 | INPUT_EXPIRED |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | TOO_MANY_PIPELINE_RUNS |
| 503 | UNAVAILABLE: the cluster cannot answer now |
GET /apps/{app}/pipeline-settings
An app's pipeline settings. Sealed.
resultDays: how many days after a pipeline run ends its final outputs (the files its pipeline names in outputs) are kept, from 1 to 90, 7 until set. It holds for every pipeline of the app, and the sweep reads the value current when it runs. The owner, or whoever manages the organization's apps.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
PipelineSettings| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
PUT /apps/{app}/pipeline-settings
Set how long an app's pipeline results are kept. Sealed.
Shortening it also releases results already older than the new value, at the next sweep; lengthening it keeps results not yet released. Input files keep their fixed 24 hours. The owner, or whoever manages the organization's apps, with a step-up over { resultDays }. 400 BAD_RESULT_DAYS outside 1 to 90;
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
resultDays: integer,
confirm?: Confirm
}Answer (application/json)
PipelineSettingsSet| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; BAD_RESULT_DAYS; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | CONFLICT: the state does not allow it now; FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/pipelines/{name}/estimate
Estimate a pipeline run. Sealed.
The owner and the organization's members. Runs, fuel and cost of a run of a pipeline the app's release registers, for inputs (file ids, only counted) or counts, not both; numbers as decimal strings.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
name | path | string |
Body (application/json)
{
inputs?: {
[key: string]: string[]
},
counts?: {
[key: string]: integer
},
params?: {
[key: string]: any
}
}Answer (application/json)
RunEstimate| Status | Codes |
|---|---|
| 400 | BAD_INPUTS; BAD_PARAMS; BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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; NO_SUCH_PIPELINE |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/pipelines/{name}/runs
Start a pipeline run. Sealed.
The owner and the organization's members. Starts a run of a pipeline the app's release registers. maxUsage ({ fuel, wallMs }, each a decimal string above zero) is a budget for all the run's jobs together: each job is granted what is left of it, and worstCase answers what the pipeline could use at its caps. An API key or an app must give it (400 MAX_USAGE_REQUIRED), and it waits for the cluster version that carries it (409 FEATURE_NOT_ACTIVE). With an idempotencyKey a repeat by the same caller answers the run it started while the app keeps it, and the same key with another body is 409 IDEMPOTENCY_KEY_REUSED; a key is 1 to 256 bytes (400 BAD_IDEMPOTENCY_KEY).
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
name | path | string |
Body (application/json)
{
inputs?: {
[key: string]: string[]
},
params?: {
[key: string]: any
},
maxUsage?: {
fuel: string,
wallMs: string
},
idempotencyKey?: string
}Answer (application/json)
PipelineStarted| Status | Codes |
|---|---|
| 400 | BAD_IDEMPOTENCY_KEY; BAD_INPUTS; BAD_MAX_USAGE; BAD_PARAMS; BAD_REQUEST: the request is malformed; MAX_USAGE_REQUIRED |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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; NO_SUCH_PIPELINE |
| 409 | CLUSTER_NOT_UPGRADED; FEATURE_NOT_ACTIVE; IDEMPOTENCY_KEY_REUSED. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 410 | INPUT_EXPIRED |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 422 | PIPELINES_NEED_ONE_SERVICE |
| 429 | TOO_MANY_PIPELINE_RUNS |
| 503 | UNAVAILABLE: the cluster cannot answer now |
GET /apps/{app}/presence
Who is present. Sealed.
One entry per present device (a session's passkey, or an API key): its account, device and state (hex).
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
PresenceList| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/presence
Publish presence. Sealed.
The caller's presence state (hex), in sequence; not logged. A null (or absent) state retracts it.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
seq: integer,
state?: string | null
}Answer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; BAD_STATE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/presence/stream
Presence as server-sent events. Sealed.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (text/event-stream): Server-sent events: a snapshot, then presence diffs.
| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/public-links
An instance's public links. Sealed.
For whoever may change its access: each link's key, terms and creator, never a token. Who: a passkey session (an API key is refused).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
PublicLinks| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/public-links
Make a public link of an instance. Sealed.
A link whose token lets anyone call the instance's #[app::public] methods as an anonymous visitor (Caller::Visitor { link, key }), whatever its access: send Authorization: Bearer vis1.<token>.<visitor key>.<at>.<signature>, the visitor's own Ed25519 key (64 hex) signing "calimero.visitor.v1\0" ‖ link ‖ 0 ‖ key ‖ 0 ‖ at (hex) with at within 5 minutes of the node's clock. Whoever may change the instance's access, while its organization allows public links (409 PUBLIC_LINKS_OFF). ratePerMinute (1 to 600, default 60) bounds each visitor's calls on each node; expiresAt (Unix seconds) is optional. The token is answered once; the log keeps only its public key (link). At most 16 per instance. 412 first;
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
label?: string,
expiresAt?: integer,
ratePerMinute?: integer,
confirm?: Confirm
}Answer (application/json)
PublicLinkMade| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE; WRONG_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE; PUBLIC_LINKS_OFF. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | QUOTA_EXCEEDED |
DELETE /apps/{app}/public-links/{link}
Revoke a public link. Sealed.
Its creator, or whoever may change the instance's access; it admits nobody from the next request. 412 first.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
link | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/public/{method}
Read a public view. Sealed.
A view the app's release marks public_view, run as an anonymous visitor with no credentials: a value answers as JSON (at most 64 KiB, 413 TOO_LARGE), a stream as its bytes with the first file's content type (application/octet-stream for none). Egress: the release declares bytes.egress and the owner has it on, else 404 with no hint whether the method exists, as for a method not marked public_view. args is the view's arguments as URL-encoded JSON (at most 16 KiB of query; 400 BAD_QUERY), minIndex an entry the view waits for (503 NOT_CAUGHT_UP). Also served in the clear (a GET or HEAD outside the sealed channel, Access-Control-Allow-Origin: *), so a browser's <img> reads it; every answer carries Content-Security-Policy: sandbox; default-src 'none' and X-Content-Type-Options: nosniff, and a success is cached at most 60 s. A stream is logged in the egress log as public and is cut when the owner turns egress off. A read that reaches a marked method of an app this node holds open takes from 600 a minute per app on each node and 6,000 per node (429 TOO_MANY_READS); each default read is served through the app's leader, which carries the sum over nodes. A value is not logged or counted, so with the switch on up to about 37.5 MiB a minute per app per node (600 values of 64 KiB) leave unlogged; streams are logged. The operator rate-limits per client at the TLS front. A HEAD of a stream sends its headers only: no body, no stream slot, no log row. Anything short of a declaring app, a marked method and the switch on (as this node holds it) is the same 404, before args is read and before a read token is taken. Any other method is 405; Range is not supported.
Who: anyone.
| Parameter | In | Type |
|---|---|---|
app | path | string |
method | path | string |
args? | query | string |
minIndex? | query | integer |
Answer (*/*): OK: the view's value as JSON, or the stream's bytes.
| Status | Codes |
|---|---|
| 400 | BAD_QUERY; BAD_REQUEST: the request is malformed |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 429 | TOO_MANY_READS |
| 503 | NOT_CAUGHT_UP |
GET /apps/{app}/runs
An app's compute runs. Sealed.
Newest first, limit (1 to 100, default 20) at a time; next is the before of the next page, null on the last.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
limit? | query | string |
before? | query | string |
Answer (application/json)
RunList| Status | Codes |
|---|---|
| 400 | BAD_CURSOR; BAD_LIMIT; BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/runs/{run}
One compute run. Sealed.
Its record without arguments or keys: method, state, cancelRequested, startTsMs, attempts, input and output ids (sizes and SHA-256 only for callers who may list the app's files), usage, and progress as the leader last polled it.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
run | path | string |
Answer (application/json)
Run| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/secrets
The secrets an app's release declares. Sealed.
For each secret the release the instance runs declares (its signed manifest's secrets): its binding, the one host, the path prefixes there it is attached under (paths, on whole segments; / for every path) and the one place the node attaches it (header with its format, or bodyField), with binding saying it in one line ("sends OPENAI_API_KEY as the Authorization header (Bearer …) to api.openai.com under /v1/"), its description and whether it is required, and source: app when the instance has its own value (with its fingerprint, the first 16 hex digits of its SHA-256, setBy and setAt), else deployment when the deployment it was created from holds one (deployment_secret_set; nothing more of it), else operator when the cluster operator's value of it is granted to the instance or its organization and scoped to its package, signer and the binding's host (ops_secret_set, ops_secret_grant; nothing more of it), else cluster (a node's operator value, if it bound one). managed: true when a secret of the cluster operator's of that name is scoped to the release's package and signer: then no value of the instance's own or its deployment's is used, source is operator while the secret is granted to the instance and bound to the binding's host, else cluster. Never a value. The owner, or whoever manages the organization's apps.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
AppSecrets| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
PUT /apps/{app}/secrets/{name}
Set an app's own value of a declared secret. Sealed.
Attached by the node only where the secret's binding says (its host, header or body field), never shown again (app_secrets answers its fingerprint), kept in the app's log on its replicas, out of the app's own reach. The owner, or whoever manages the organization's apps, with a step-up over { name, fingerprint }: the value is never in the consent. 404 for a name the release does not declare; 403 SECRET_MANAGED, before any step-up, for one a secret of the cluster operator's covers (managed in app_secrets); 1 to 4,096 bytes (400 BAD_SECRET); 409 CLUSTER_NOT_UPGRADED while a node runs an earlier release.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
name | path | string |
Body (application/json)
{
value: string,
confirm?: Confirm
}Answer (application/json)
SecretSet| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; BAD_SECRET; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SECRET_MANAGED; SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | CLUSTER_NOT_UPGRADED; CONFLICT: the state does not allow it now |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /apps/{app}/secrets/{name}
Remove an app's own value of a secret. Sealed.
The operator's value applies again. Same rules as setting one; a step-up over { name }.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
name | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
SecretCleared| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | CLUSTER_NOT_UPGRADED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/storage
What an app stores. Sealed.
Keys, bytes and the bytes of files held, and lastWriteAt (Unix seconds of its last committed write, null before one).
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
AppStorage| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/transfer
Hand an app to another account. Sealed.
The owner (for an organization's app, while a member and in the app's team), or an organization admin; only to a member of the app's organization (400 REJECTED before the passkey is asked for). Answers null.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
to: string,
confirm?: Confirm
}Answer (application/json)
null| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/undo
The upgrade an app may undo. Sealed.
For whoever may read the app. available: whether an owner or admin may undo its last upgrade now (within a week of it, while it runs what the upgrade moved it to, its restore point's node answering); else reason says why. apps: the app, and the members its unit's upgrade moved with it, each with what the undo loses: the restore point is the state just before the upgrade, so whatever the app wrote since is gone.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
UndoView| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/undo
Undo an app's last upgrade. Sealed.
An owner or admin of the app's organization, within a week of the upgrade (judged on the logged times), with a step-up over <app> / __undo_upgrade / { apps: { <app>: { to, bundle, from, restorePoint } } }. The app, and the members its unit's upgrade moved, go back to the release they ran before and, where the upgrade ran on their group, to their restore point's state in a new group (seeded by the node that holds it, as a restore is): the one move to an older release. Whatever they wrote since the restore point is lost (apps[].lostWrites, as GET showed it). Answers once each group takes calls again, or after a minute with restored: false (calls answer 409 APP_RESTORING meanwhile; sending the undo again seeds it again). 409 NO_RESTORE_POINT, UNDO_WINDOW_PASSED, UNDO_STALE (the app moved on), UNDO_RELEASE_GONE (the release it would return to is no longer installed), UNDO_NOT_AS_NAMED (a member its unit's run moved: undo its instance), RESTORE_POINT_UNAVAILABLE (its node does not answer), each before the step-up. A pinned instance (its record's lineage) goes back only to a release of its own package and publisher, an older one included: 409 OUTSIDE_LINEAGE, before the step-up.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
confirm?: Confirm
}Answer (application/json)
UndoDone| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE; NO_RESTORE_POINT; OUTSIDE_LINEAGE; RESTORE_POINT_UNAVAILABLE; UNDO_NOT_AS_NAMED; UNDO_RELEASE_GONE; UNDO_STALE; UNDO_WINDOW_PASSED; UPGRADE_PENDING. details of FEATURE_NOT_ACTIVE: a FeatureNotActive, UPGRADE_PENDING: a UpgradePending. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/update
Whether an update is available for an app. Sealed.
For whoever may read the app (GET /apps/{app}'s rule; a session bound to its package's frontend included), so its frontend can offer the update and open the consent page. available carries the update classifier's verdict (calimero_bundle::update::classify; absent for an instance on a development bundle), over the whole unit when the instance has members and the caller is a member of its organization or may use every release they move to, as upgrade-unit would move them, else the app alone: class red when the signer changes, egress grows, a state version changes, a member with egress joins or leaves, a release newly calls another app as the person, a release declaring lineage: pinned pins an instance that was not, or a release newly declares files.grants = export (reasons lists each), else green; egress: the unit's destinations before and after (empty: no data leaves Calimero; an external endpoint, a TEE included, is a destination like any other), with those added and removed; newMethods and removedMethods (a member's as <path>.<method>). available: for an instance from a deployment, the release the deployment offers for its package, only while that offer serves (someone acting for the deployment's owner may use it), when it is not the one running (source: deployment); for any other, the newest release of its package the caller sees, newer than the running one, that the upgrade would take (source: release, as a report's latestReachable); else null. unit: whether the instance has apps of its own (links), which move with it: review it with upgradeUnit. mayApprove: whether the caller may approve the upgrade. approvers: owner-and-admins (the owner and admins of the app's organization), operator where the cluster gives it app upgrades. policy: the update policy the app follows and its source. available.summary: the update in one plain line for a banner (the new destinations it adds, else "Nothing changes where your data goes" when green, else its first reason), the same words the consent page and the node's updates page use; the design's GET /apps/{app}/updates is this route. available.approvalsNeeded: 2 for a red (or unclassified) update where the policy asks for a second approver, else 1; available.approvedBy: who approved it first, while that approval waits. pendingApprovals: the first approvals waiting for their second that cover this app (its own, or its unit's). deployment: the deployment the instance comes from, which chooses its updates, else null.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
UpdateView| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/upgrade
Upgrade an app instance. Sealed.
To a release (version, of the app's own package unless package names another) or a bundle, code only: the state stays and is read by the new code. An owner or admin of the app's organization, whatever the package's manifest declares (403 FORBIDDEN for anyone else, before the step-up), with a step-up over { bundle, migrate, manifest }; an upgrade key signs in place of it, and its account is judged the same. A refused or failed upgrade leaves the app on its release and answers 422 UPGRADE_FAILED with the app log's error in details (MigrationsNotSupported when migrate is named: there are no migrations in this version). error is the app log's error value (null when it ran), free-form: the app's own. An instance created from a deployment moves only to the release its deployment offers for its package (naming no version accepts that offer): another version, another package or a bundle is 409 OUTSIDE_DEPLOYMENT, before the step-up. Where the app's policy asks for a second approver, an update the log cannot classify (a part's release no longer installed) is classified red (unclassified) and needs the second approver. An instance of a release declaring lineage: pinned (its record's lineage) moves only to a release of that package, signed by the same publisher: another package or a bundle is 409 OUTSIDE_LINEAGE, an older release 409 LINEAGE_OLDER_RELEASE, before the step-up.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
bundle?: string,
package?: string,
version?: string,
service?: string,
confirm?: Confirm,
migrate?: string
}Answer (application/json)
UpgradeApplied| Status | Codes |
|---|---|
| 400 | AMBIGUOUS_COMPUTE; BAD_BUNDLE; BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE; VERSION_REQUIRED. details of BAD_BUNDLE: a ServiceRefused, VERSION_REQUIRED: a VersionRequired. |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | CONFLICT: the state does not allow it now; FEATURE_NOT_ACTIVE; LINEAGE_OLDER_RELEASE; OUTSIDE_DEPLOYMENT; OUTSIDE_LINEAGE; OUTSIDE_UNIT_RANGE; RELEASE_DEADLINE; RUNTIME_TOO_OLD. details of FEATURE_NOT_ACTIVE: a FeatureNotActive, RELEASE_DEADLINE: a ReleaseDeadline, RUNTIME_TOO_OLD: a RuntimeTooOld. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 422 | UPGRADE_FAILED. details of UPGRADE_FAILED: a Applied. |
POST /apps/{app}/upgrade-approvals
Approve a red update first, for a second approver to apply. Sealed.
Where the app's policy asks for a second approver (409 ONE_APPROVAL otherwise, and for a green update), a red update needs two distinct owners or admins of its organization: this logs the first approval, its own consent over <app> / __approve_upgrade / { package, version, targets, class } (the class the classifier gives now, over the unit with unit). Another owner or admin then applies it with POST /apps/{app}/upgrade (or /upgrade-unit for a unit's approval), which until then answers 409 SECOND_APPROVAL_REQUIRED. One waits per app, for a week at most; a newer one replaces it, and another approver's of the same update is 409 APPROVAL_PENDING (apply it instead).
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
version: string,
unit?: boolean,
confirm?: Confirm
}Answer (application/json)
ApprovalLogged| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | APPROVAL_PENDING; CONFLICT: the state does not allow it now; FEATURE_NOT_ACTIVE; NOT_INSTALLED; ONE_APPROVAL; OUTSIDE_DEPLOYMENT. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/upgrade-policy
The update policy an app follows. Sealed.
For whoever may read the app. Its own policy where an owner or admin set one, else its organization's, else the defaults: nothing updates on its own, one approval applies an update.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
PolicyView| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/upgrade-policy
Set an app's own update policy. Sealed.
An owner or admin of the app's organization, with a step-up over org:<org> / __set_upgrade_policy / { app, policy }. policy: null (or left out) drops it: the app follows its organization's again. holdHours outside 24 to 168 is 400 BAD_UPGRADE_POLICY before the step-up. A move to another organization drops it.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
UpgradePolicyBodyAnswer (application/json)
PolicyView| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; BAD_UPGRADE_POLICY; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/upgrade-unit
Upgrade an app and the apps it created, in one consent. Sealed.
An instance created with apps of its own (links): it moves to version of its package, and each member the target release's uses gives a release other than the one it runs moves to that release (its lock's, else the newest installed one inside the range), all under one step-up over { app, package, version, targets }. Answers the run (GET /orgs/{org}/upgrades/{run} follows it); each app is upgraded on its own as an organization's run does. 400 NOT_A_UNIT for an app with no members; 409 CONFLICT when the target release creates a member the instance lacks. A version the caller may not use answers as one that is not installed, as POST /apps installs one (404 NOT_FOUND, 400 NO_REGISTRY), and for an instance from a deployment anything but its offer that still serves 409 OUTSIDE_DEPLOYMENT, before anything of it is read.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
version: string,
confirm?: Confirm
}Answer (application/json)
UpgradeRun| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; NOT_A_UNIT; NO_REGISTRY; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | CONFLICT: the state does not allow it now; FEATURE_NOT_ACTIVE; OUTSIDE_DEPLOYMENT; USES_NOT_INSTALLED. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/usage
An app's runs per day. Sealed.
The owner or an organization admin: today and the 30 days before it, figures as decimal strings; wallMs is information only.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
AppUsage| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /apps/{app}/views
Read with a view method. Sealed.
Read linearizably (consistency: "strong", the default; any value but "stale" reads as it): the replica answering waits until it applied the index the app's leader names once it confirmed it leads, and sends the view to the leader if it cannot catch up; or ("stale") on the replica answering, as it stands; minIndex waits until the replica applied it (503 NOT_CAUGHT_UP). args, result and each event's data are the app's own JSON, free-form here: the app's ABI (GET /apps/{app}/abi, or its OpenAPI document) types them. A view that answers a stream of byte parts (bytes.answer-stream) is answered not with a ViewResult but with Content-Type: application/vnd.calimero.stream: a 4-byte big-endian length and that many bytes of JSON record ({ size, pieces: [{ segment, segmentLen, offset, len }] }: the total length and each piece's segment hash as stored), then the bytes of the pieces in order, then the 32-byte SHA-256 of those bytes. A client checks each whole segment against its stored hash as it arrives, and the trailer at the end, which alone confirms a ranged piece; a body that ends before the trailer is cut short. A node serves at most 16 streams at once, 4 to one account, 2 to the callers of one app that have no account and 8 to one app (503 BUSY past the first, 429 RATE_LIMITED past a share, with Retry-After), sends at most 256 KiB at a time, drops a reader that takes nothing for 30 seconds and cuts a stream that lasts longer than 60 seconds plus its size at 64 KiB a second; an answer whose distinct segments are longer than the bytes it sends plus 64 MiB is 422 STREAM_TOO_SPARSE; the view's own value is dropped, and the stream goes to whoever the view answered.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
method: string,
args?: any,
consistency?: "strong" | "stale",
minIndex?: integer
}Answer (application/json)
ViewResult| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 422 | APP_ERROR; STREAM_TOO_SPARSE; TRAP. details of APP_ERROR: a AppError, TRAP: a Trap. |
| 429 | RATE_LIMITED: a node's limit on open streams, ceremonies, sign-ups or stream starts (a stream share, a sign-up or a stream start with Retry-After and its details). details of RATE_LIMITED: a RetryAfter. |
| 503 | BUSY; NOT_CAUGHT_UP; TIMEOUT. details of TIMEOUT: a RetryAfter. |
POST /apps/{app}/watches
Watch a subscribable view. Sealed.
Runs view (a view the app's ABI marks subscribable) as the caller, with /views' gate, records what it read and keeps it on stream (a watch stream of /events?watch=true): the stream then carries this watch's new answer, sub, when an entry that writes what it read (or, for a view that read the directory or the clock, a system change) changes it. index is the app's last entry in the state it read and answer its answer. The view runs again at most once per the interval its app sets (watchIntervalMs in the ABI, default 1000); intervalMs can only lengthen it, up to 10000. A stream holds at most 64 watches and a node 2,048; args is at most 4 KiB.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
stream: string,
view: string,
args?: any,
intervalMs?: integer
}Answer (application/json)
WatchAdded| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; NOT_A_VIEW; NOT_SUBSCRIBABLE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | UNKNOWN_STREAM |
| 413 | ARGS_TOO_LARGE; TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 422 | APP_ERROR; READ_SET_UNBOUNDED; TRAP. details of APP_ERROR: a AppError, TRAP: a Trap. |
| 429 | TOO_MANY_WATCHES |
| 503 | TIMEOUT. details of TIMEOUT: a RetryAfter. |
DELETE /apps/{app}/watches/{sub}
Stop watching a view. Sealed.
Forgets watch sub, which the caller holds.
Who: whoever the app's grants admit (anyone: any signed-in account).
| Parameter | In | Type |
|---|---|---|
app | path | string |
sub | path | string |
Answer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | UNKNOWN_WATCH |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /apps/{app}/xcalls
An app's cross-app calls. Sealed.
The owner or an organization admin: how many calls wait in its outbox for delivery (pending, a count), and its dead letters, oldest first (atMs: the entry time it was dead-lettered at, Unix milliseconds).
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
app | path | string |
Answer (application/json)
XcallsReport| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 503 | UNAVAILABLE: the cluster cannot answer now |
POST /pipelines/validate
Validate a pipeline. Sealed.
Every problem of source; with package and version (both, a release the caller sees) also against that release's methods, modules and the cluster's pools. Writes nothing.
Who: signed in (a session or an API key).
Body (application/json)
{
source: string,
package?: string,
version?: string
}Answer (application/json)
PipelineValidation| Status | Codes |
|---|---|
| 400 | BAD_RELEASE; BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
Organizations
Organizations, members, teams, invites, approvals and upgrade runs.
POST /invites/{token}/redeem
Join with an invite. Sealed.
No passkey prompt: the node signs the redemption with the token's key. Answers the organization joined; for an instance invite, the instance (app) and its organization, and member: whether the redeemer was named as a member of it (else a guest, never made a member). An instance invite always names a member of its organization; anyone else is refused 409 GUESTS_NOT_ALLOWED unless the instance's release says guests: allowed and its organization's allowGuests is on, judged as the redemption applies.
Who: a passkey session (an API key is refused).
| Parameter | In | Type |
|---|---|---|
token | path | string |
Answer (application/json)
InviteRedeemed| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | GUESTS_NOT_ALLOWED |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs
Create an organization. Sealed.
recoveryKey is the public half of an organization recovery key. capabilities (bits) is what members can do unless set for them, in place of the default. A sign-up makes no organization: an account's are those it creates here (or with a standalone instance) or is invited to.
Who: a passkey session (an API key is refused).
Body (application/json)
OrgBodyAnswer (application/json)
OrgCreated| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; UNKNOWN_CAPABILITIES |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | QUOTA_EXCEEDED |
GET /orgs/{org}
One organization. Sealed.
As the directory records it, with only the teams the caller reaches or manages and the people they see; and its mode (from its app teams), the accounts that may approve its releases (releaseApprovers), the keys it publishes under (publishes), and newWorkStopped: the release whose passed deadline stops new work in it (after, RFC 3339), null when none does. Teams and members come in pages of limit (1 to 1000, default 1000), by id after teamsAfter and by account after membersAfter; nextTeamsAfter and nextMembersAfter are the cursors of the next pages, null on the last.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
org | path | string |
limit? | query | integer |
teamsAfter? | query | string |
membersAfter? | query | string |
Answer (application/json)
Org| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /orgs/{org}
Delete an organization. Sealed.
With its teams, invites and apps; the owner. apps: the apps deleted with it.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
OrgDeleted| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/all-apps
Give a member every app added later. Sealed.
Or stop it (allApps: false); apps already there are not touched. The owner or an admin; 412 first.
Who: a passkey session (an API key is refused). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
AllAppsBodyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /orgs/{org}/app-teams
The organization's app teams. Sealed.
A member: 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).
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
org | path | string |
Answer (application/json)
AppTeamList| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/app-teams
Give apps app teams, or open or close one. Sealed.
The owner or an admin; keep names who stays when a team closes; childTeams says whether the app team's members make restricted teams below it (private channels), adding or removing CREATE_CHILD_TEAM (absent: as they are). Naming join or childTeams on any package leaves shared unset to mean no other team. 412 first.
Who: a passkey session (an API key is refused). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
ScopeAppsBodyAnswer (application/json)
AppTeamsScoped| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; TOO_MANY_PACKAGES; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /orgs/{org}/apps
The organization's apps. Sealed.
As GET /auth/apps, for the apps the caller reaches or manages; 404 to a non-member.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
org | path | string |
after? | query | string |
limit? | query | integer |
Answer (application/json)
AppsReport| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /orgs/{org}/backup-key
The organization's backup key. Sealed.
The X25519 public key its apps' recovery-disk backups are sealed to (key, null while none is set), and how many apps that covers. Any member; 404 outside the organization.
Who: an account holder (a passkey session not bound to an app's frontend).
| Parameter | In | Type |
|---|---|---|
org | path | string |
Answer (application/json)
BackupKeyAnswer| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/backup-key
Set the organization's backup key. Sealed.
publicKey: 64 lowercase hex, an X25519 public key whose private half its holder keeps (never a node). Those who upgrade all the organization's apps (org-wide MANAGE_APPLICATION), where owners upgrade apps; replaces the key before. 412 first.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
BackupKeyBodyAnswer (application/json)
BackupKeyAnswer| Status | Codes |
|---|---|
| 400 | BAD_BACKUP_KEY; BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/capabilities
Set capabilities. Sealed.
A member's (account), in a team (team), or a team's default; the capability bits. 412 first.
Who: a passkey session (an API key is refused). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
CapabilitiesBodyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/egress
Turn the organization's egress off or on. Sealed.
egress: false turns egress off for every app of the organization: from each app's next outbound request on, nothing leaves the cluster for it, whatever its release declares and whatever an approval (the organization's or the operator's) says, and the organization approves no new outbound host (409 EGRESS_OFF). egress: true turns it back on, a red change made only on the consent page (kind: setEgress); from any other client 403 CONSENT_PAGE_REQUIRED. The owner or an admin, with a passkey (412 first); 403 to a member below admin, 404 to anyone outside it.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
{
egress: boolean,
confirm?: Confirm
}Answer (application/json)
EgressSet| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; CONSENT_PAGE_REQUIRED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /orgs/{org}/invites
The organization's invites. Sealed.
Their keys and terms, never a token: expiresAt Unix seconds; createdBy and createdAt are null on an invite from before they were kept.
Who: a passkey session (an API key is refused).
| Parameter | In | Type |
|---|---|---|
org | path | string |
Answer (application/json)
InviteList| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/invites
Make an invite. Sealed.
A token for role and teams, uses times within ttlSecs; allApps (an admin's) also gives every app added later; capabilities (bits) is what a new member gets as their own setting, no more than the creator holds (403). 412 first.
Who: a passkey session (an API key is refused). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
InviteBodyAnswer (application/json)
InviteMade| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CAPABILITIES; UNKNOWN_CHALLENGE; WRONG_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; CANNOT_GRANT_UNHELD; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /orgs/{org}/invites/{key}
Revoke an invite. Sealed.
Who: a passkey session (an API key is refused). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
key | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /orgs/{org}/members
Members' lockout risk. Sealed.
detail=security (the only listing: without it, or with another value, 400 BAD_REQUEST), the owner or an admin: each member's passkeys (1, 2 or "3+"), recovery code, last active UTC day and sessions. 403 below admin, 404 outside the organization.
Who: an account holder (a passkey session not bound to an app's frontend).
| Parameter | In | Type |
|---|---|---|
org | path | string |
detail? | query | "security" |
Answer (application/json)
MemberSecurityList| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/members
Set a member's role. Sealed.
owner moves ownership. 412 first.
Who: a passkey session (an API key is refused). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
MemberBodyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /orgs/{org}/members/{account}
Remove a member, or leave. Sealed.
412 first; the retry's JSON body is { confirm }.
Who: a passkey session (an API key is refused). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
account | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/members/{account}/metadata
Set a member's metadata. Sealed.
metadata is the caller's own JSON, free-form, kept as given.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
org | path | string |
account | path | string |
Body (application/json)
MetadataBodyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/members/{account}/teams
Set a member's rows in several teams. Sealed.
Each team judged as POST /orgs/{org}/teams/{team}/members would judge it, and none set unless every one may be (a row's absent role is member; absent capabilities, a new row takes the defaults and an existing row keeps its own). 1 to 64 distinct teams; one passkey, 412 first.
Who: a passkey session (an API key is refused). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
account | path | string |
Body (application/json)
TeamRowsBodyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; BAD_TEAMS; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /orgs/{org}/members/{account}/teams
Remove a member from several teams, or leave them. Sealed.
Each judged as DELETE /orgs/{org}/teams/{team}/members/{account} would judge it, and none taken unless every one may be. 1 to 64 distinct teams; one passkey, 412 first.
Who: a passkey session (an API key is refused). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
account | path | string |
Body (application/json)
TeamIdsBodyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; BAD_TEAMS; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/metadata
Set an organization's metadata. Sealed.
metadata is the caller's own JSON, free-form, kept as given.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
MetadataBodyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/name
Rename an organization. Sealed.
The owner or an admin, to a name that fits as a new organization's would; 412 first.
Who: a passkey session (an API key is refused). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
RenameOrgBodyAnswer (application/json)
OrgRenamed| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/outbound
Approve outbound prefixes for the organization's apps. Sealed.
The owner; 412 first. 409 EGRESS_OFF while the organization's egress is off.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
{
package: string,
prefixes?: OutboundSelection,
replace?: boolean,
confirm?: Confirm
}Answer (application/json)
OutboundApproved| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/packages/{package}/upgrade
Upgrade every instance of a publisher's package. Sealed.
An upgrade run, by an owner or admin of the publisher organization, over the apps that run the package in the organizations they are an owner or admin of (the publisher's own included), never another organization's: those are upgraded by their own owner and admins.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
package | path | string |
Body (application/json)
PublisherUpgradeBodyAnswer (application/json)
UpgradeRun| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/publishers
Bind a package signing key. Sealed.
The key's signature over the binding proves the organization holds it; then its MANAGE_APPLICATION holders upgrade the apps of packages that name publisher. Answers the key's binding generation now.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
PublisherBodyAnswer (application/json)
PublisherBound| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/recovery
Set the organization's recovery key. Sealed.
Set or rotate it (publicKey: base64url Ed25519 public key), or remove it (publicKey: null; an absent publicKey removes it too); the owner; cancels a recovery under way. 412 first. An organization that owns a deployment keeps its key: removing it is 409 RECOVERY_KEY_REQUIRED before the step-up (rotating stays allowed).
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
RecoveryKeyBodyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_RECOVERY_KEY; BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 409 | RECOVERY_KEY_REQUIRED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/recovery/cancel
Cancel an organization recovery. Sealed.
The owner; 412 first.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/recovery/finish
Finish an organization recovery. Sealed.
The account that started it, once readyAt passed; 412 first.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
RecoveryFinished| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | RECOVERY_NOT_READY. details of RECOVERY_NOT_READY: a RecoveryNotReady. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/recovery/start
Start an organization recovery. Sealed.
The recovery seed's signature handing the organization to the caller. Who: an account holder (a passkey session not bound to an app's frontend).
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
RecoveryStartBodyAnswer (application/json)
RecoveryStarted| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only); WRONG_RECOVERY_KEY |
| 409 | RECOVERY_PENDING |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/releases
Approve a mero-tee release for the organization's apps. Sealed.
The owner; 412 first.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
{
version: string,
approved?: boolean,
confirm?: Confirm
}Answer (application/json)
ApprovedReleases| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/settings
Change the organization's settings. Sealed.
allowGuests (default on): whether its instances take guests, accounts named on one instance (an account grant) that are not members, where the instance's release allows them too (guests: allowed in its signed manifest); off, every guest stops reaching its instances at their next request. allowPublicLinks (default on): whether its instances' public links admit visitors; off, creating one is refused and existing ones admit nobody at the visitor's next call. A setting left out is kept; none is 400. The owner or an admin; 412 first.
Who: a passkey session (an API key is refused). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
OrgSettingsBodyAnswer (application/json)
OrgSettingsSet| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/teams
Create a team. Sealed.
An admin, a lead of parent, a member with CREATE_TEAM at the top, or a member who holds CREATE_CHILD_TEAM under parent (a restricted team only). A package-bound session: only its own package's teams (its app team and the teams below it): parent one of them.
Who: a passkey session (an API key is refused).
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
TeamBodyAnswer (application/json)
TeamCreated| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /orgs/{org}/teams/{team}
One team. Sealed.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
org | path | string |
team | path | string |
Answer (application/json)
TeamView| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/teams/{team}
Update a team. Sealed.
Rename, open or restrict, move under another parent, or set its metadata (the caller's own JSON, free-form, kept as given). parent absent leaves the team where it is; parent: null (an explicit null) moves it to the top; a team id moves it under that team. A package-bound session: only its own package's teams (its app team and the teams below it): a team below its app team, moved only within.
Who: a passkey session (an API key is refused).
| Parameter | In | Type |
|---|---|---|
org | path | string |
team | path | string |
Body (application/json)
TeamUpdateBodyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /orgs/{org}/teams/{team}
Delete a team. Sealed.
With the teams below it. The instances only those teams admit (each of whose team grants goes, with no grant to the organization) are deleted with it (apps), unless keepApps: true: then they stay (keptApps), each without those teams' grants and with its other grants (named members, guests, anyone, public links), or, with none left, an empty grant list (only its owner reaches it). An instance another team or the organization admits only loses the deleted teams' grants either way. With such instances, the passkey is over { team, apps } (plus keepApps: true when set), and the 412's details list apps and keepApps, so the approver sees what happens to them. A package-bound session: only its own package's teams (its app team and the teams below it): a team below its app team whose apps are all its package's.
Who: a passkey session (an API key is refused). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
team | path | string |
Body (application/json, optional): May be absent.
TeamDeleteBodyAnswer (application/json)
TeamDeleted| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/teams/{team}/members
Add or change a team member. Sealed.
A package-bound session: only its own package's teams (its app team and the teams below it).
Who: a passkey session (an API key is refused). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
team | path | string |
Body (application/json)
TeamMemberBodyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /orgs/{org}/teams/{team}/members/{account}
Remove a team member, or leave. Sealed.
A package-bound session: only its own package's teams (its app team and the teams below it).
Who: a passkey session (an API key is refused). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
team | path | string |
account | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /orgs/{org}/updates
Updates waiting across an organization's apps. Sealed.
For its owner and admins (403 to other members, 404 to anyone else): its apps, by id, at most 50 read per page, that have an update available or a first approval waiting, each as GET /apps/{app}/update answers it with the app's name; policy is the organization's; next is the after of the next page, null at the end.
Who: an account holder (a passkey session not bound to an app's frontend).
| Parameter | In | Type |
|---|---|---|
org | path | string |
after? | query | string |
Answer (application/json)
OrgUpdates| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/upgrade
Start an upgrade run. Sealed.
Upgrade every app of the organization (or of team, with cascade its subtree) that runs package to version, with one passkey assertion over the whole run; the organization's owner or an admin. Each app is upgraded as POST /apps/{app}/upgrade would; GET /orgs/{org}/upgrades/{run} follows it.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
OrgUpgradeBodyAnswer (application/json)
UpgradeRun| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /orgs/{org}/upgrade-policy
The organization's update policy. Sealed.
For its members: the policy each of its apps without one of its own follows (source: default until an owner or admin sets one).
Who: a passkey session (an API key is refused).
| Parameter | In | Type |
|---|---|---|
org | path | string |
Answer (application/json)
PolicyView| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/upgrade-policy
Set the organization's update policy. Sealed.
The owner or an admin, with a step-up over org:<org> / __set_upgrade_policy / { app: null, policy }; policy: null (or left out) drops it (the defaults). holdHours outside 24 to 168 is 400 BAD_UPGRADE_POLICY before the step-up.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
UpgradePolicyBodyAnswer (application/json)
PolicyView| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; BAD_UPGRADE_POLICY; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /orgs/{org}/upgrades/{run}
An upgrade run's progress. Sealed.
A member of the organization. Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
org | path | string |
run | path | string |
Answer (application/json)
UpgradeRun| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /orgs/{org}/upgrades/{run}/retry
Retry an upgrade run's failed apps. Sealed.
As a new run under the same terms: a passkey step-up for a member's run, the operator's signature for an operator's run (with the ops token).
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
org | path | string |
run | path | string |
Body (application/json, optional): May be absent.
{
confirm?: Confirm,
operatorProof?: OperatorProof
}Answer (application/json)
UpgradeRun| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
GET /orgs/{org}/usage
An organization's usage. Sealed.
An admin: how many apps the organization develops, what their runs used today (decimal strings) and the cluster's quotas; a member gets 403.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
org | path | string |
Answer (application/json)
OrgUsage| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
Consent
Approvals an app's frontend asks for on the node's own consent page.
POST /consent/requests
Ask the account's owner to approve. Sealed.
From an app's frontend: an instance of a release or a deployment's offer (install: the install sheet, what gets created, where data can go and that updates wait for an approval; outcome names the appId and its links), an update policy (updatePolicy, an owner or admin of the organization), the node's updates page (updates, at /updates/{request}: the person unlocks it with their passkey, then it lists the updates waiting across the apps they approve and their organizations' policies), a release approval, an upgrade of its instance, outbound prefixes, a new organization, a new invite or joining with one, leaving an organization, a member's removal, role, teams or capabilities, an invite's revocation, an organization's name, its deletion, defaults or all-apps grants, approved on the node's own consent page (url), which takes the passkey. What the approval made (orgId, an invite's token, the org joined, a rename's { orgId, name }, a deletion's apps) is in /consent/{request}/result's outcome. 64 KiB at most.
Who: a passkey session (an API key is refused).
Body (application/json)
{
kind: "release",
scope: "account" | {
org: string
},
subject: {
version: string,
withdraw?: boolean
},
returnTo: string
} | {
kind: "upgrade",
subject: {
app: string,
toVersion: string
},
returnTo: string
} | {
kind: "upgradeUnit",
subject: {
app: string,
toVersion: string
},
returnTo: string
} | {
kind: "delegate",
subject: {
app: string,
target: string
},
returnTo: string
} | {
kind: "outbound",
scope: "account" | {
org: string
},
subject: {
package?: string,
prefixes?: string[]
},
returnTo: string
} | {
kind: "createOrg",
subject: {
name: string,
capabilities?: integer
},
returnTo: string
} | {
kind: "createInvite",
subject: {
org: string,
role: "guest" | "member" | "admin",
teams?: string[],
ttlSecs?: integer,
uses?: integer,
allApps?: boolean,
capabilities?: integer
},
returnTo: string
} | {
kind: "acceptInvite",
subject: {
token: string
},
returnTo: string
} | {
kind: "leaveOrg",
subject: {
org: string
},
returnTo: string
} | {
kind: "removeMember",
subject: {
org: string,
account: string
},
returnTo: string
} | {
kind: "setMemberRole",
subject: {
org: string,
account: string,
role: "guest" | "member" | "admin" | "owner"
},
returnTo: string
} | {
kind: "setMemberTeams",
subject: {
org: string,
account: string,
teams: {
team: string,
role?: "lead" | "member" | "readOnly",
capabilities?: integer
}[]
},
returnTo: string
} | {
kind: "removeMemberTeams",
subject: {
org: string,
account: string,
teams: string[]
},
returnTo: string
} | {
kind: "revokeInvite",
subject: {
org: string,
inviteKey: string
},
returnTo: string
} | {
kind: "renameOrg",
subject: {
org: string,
name: string
},
returnTo: string
} | {
kind: "deleteOrg",
subject: {
org: string
},
returnTo: string
} | {
kind: "setCapabilities",
subject: {
org: string,
account?: string,
team?: string,
capabilities: integer
},
returnTo: string
} | {
kind: "setAllApps",
subject: {
org: string,
account: string,
allApps: boolean
},
returnTo: string
} | {
kind: "setEgress",
subject: {
org: string,
app?: string,
egress: boolean
},
returnTo: string
} | {
kind: "install",
subject: {
package: string,
version?: string,
deployment?: string,
name: string,
org?: string,
newOrg?: {
name: string
},
initArgs?: any
},
returnTo: string
} | {
kind: "updatePolicy",
subject: {
org?: string,
app?: string,
policy?: {
autoApply?: "never" | "noDestinations",
holdHours?: integer,
secondApprover?: boolean
} | null
},
returnTo: string
} | {
kind: "updates",
subject?: {
org?: string
},
returnTo: string
} | {
kind: "createPublicLink",
subject: {
app: string,
label?: string,
expiresAt?: integer,
ratePerMinute?: integer
},
returnTo: string
} | {
kind: "revokePublicLink",
subject: {
app: string,
link: string
},
returnTo: string
}Answer (application/json)
ConsentRequestMade| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; UNKNOWN_CAPABILITIES |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | CANNOT_GRANT_UNHELD; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /consent/{request}/result
What became of a consent request. Sealed.
decidedAt (Unix seconds) is null while it is pending. outcome, once approved, is what the approval made: { orgId } for createOrg (with teamId, the asking app's own team the organization starts with, when an app's frontend asked on a cluster that makes it), { token } for createInvite, { org } for acceptInvite, { orgId, name } for renameOrg, { apps } (the apps deleted) for deleteOrg; absent for the other kinds.
Who: a passkey session (an API key is refused).
| Parameter | In | Type |
|---|---|---|
request | path | string |
Answer (application/json)
ConsentResult| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 503 | UNAVAILABLE: the cluster cannot answer now |
Sign-up and deployments
The cluster's owner: the sign-up policy, deployers and deployments.
GET /deployers
The deployers. Sealed.
The operator, or the cluster's owner: the deployments and deployers governance, the owner (null until named), and every grant (until RFC 3339 and untilSecs, null for none; grantedAt RFC 3339; deployer null for a key it cannot read).
Who: an account holder (a passkey session not bound to an app's frontend).
Answer (application/json)
DeployerList| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /deployers
Grant a deployer. Sealed.
The cluster's owner, with a passkey.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
Body (application/json)
DeployerBodyAnswer (application/json)
DeployerGranted| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /deployers/{key}
Revoke a deployer. Sealed.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
key | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
DeployerRevoked| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /deployments
Deployments. Sealed.
The deployments the caller manages, and in offered those offered to an owner it acts for, waiting for its acceptance (POST /deployments/{id}/transfer/accept).
Who: signed in (a session or an API key).
Answer (application/json)
DeploymentList| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /deployments
Create a deployment. Sealed.
A named set of releases an owner (an account or organization) offers for others to instantiate. Answers its id, the record as made (no apps yet) and its frontend host (null on a node with no apps domain). An organization owns a deployment only holding a recovery key (POST /orgs/{org}/recovery), so a lost passkey never locks it: 409 RECOVERY_KEY_REQUIRED before the step-up.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
Body (application/json)
DeploymentBodyAnswer (application/json)
DeploymentCreated| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 409 | RECOVERY_KEY_REQUIRED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /deployments/{id}
One deployment. Sealed.
As anyone may read it: its name, its owner's kind and name (null when unknown), and the releases it offers; never its managers or customers.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
id | path | string |
Answer (application/json)
PublicDeployment| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /deployments/{id}
Delete a deployment. Sealed.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
id | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
DeploymentDeleted| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /deployments/{id}/apps
Offer a release in a deployment. Sealed.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
id | path | string |
Body (application/json)
OfferBodyAnswer (application/json)
AppOffered| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /deployments/{id}/apps/{app}
Withdraw an offer. Sealed.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
id | path | string |
app | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
AppWithdrawn| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /deployments/{id}/orgs
The organizations a deployment serves. Sealed.
For its managers: each organization with instances from it, its name (null when unknown), member counts (activeMembers30d: active in the last 30 days), its instances and the releases they run, and when its first was created (RFC 3339); instances outside an organization are only counted (outsideOrgs). Never who the members are.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
id | path | string |
Answer (application/json)
DeploymentOrgs| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /deployments/{id}/secrets
A deployment's secrets. Sealed.
For its managers, on fresh state: every secret a release the deployment offers declares, or a release one of those references (uses, for the apps it creates), and every one it holds a value of. Each row names the deployment's apps whose release declares it or references one that does (apps, empty when none does any more: the value is kept, unused, until cleared), the releases that declare it (declaredBy) and set; a set one adds its fingerprint (the first 16 hex digits of the value's SHA-256), setBy (account:<id>) and setAt (Unix seconds). Never a value.
Who: signed in (a session or an API key).
| Parameter | In | Type |
|---|---|---|
id | path | string |
Answer (application/json)
DeploymentSecrets| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
PUT /deployments/{id}/secrets/{name}
Set a deployment's value of a secret. Sealed.
Every instance created from the deployment uses it unless the instance set its own (app_secret_set), and only where the secret's binding says (its host, header or body field), for an instance whose release declares the name; it wins over a node's operator value, and is not used for a release a secret of the cluster operator's of that name covers (managed in app_secrets). Kept in the system group's state, sealed, never shown again (deployment_secrets answers its fingerprint) and out of every app's reach. A manager of the deployment, with a step-up over deployment:{id} / __set_secret / { name, fingerprint }: the value is never in the consent. 404 UNDECLARED_SECRET unless a release the deployment offers declares the name, or a release one of those references in its signed uses (an installed release of the package inside the reference's range), whose value reaches the apps an instance creates with it; a name of A-Z, 0-9 and _ and a value of 1 to 4,096 bytes (400 BAD_SECRET); at most 16 per deployment (429 QUOTA_EXCEEDED);
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
id | path | string |
name | path | string |
Body (application/json)
DeploymentSecretBodyAnswer (application/json)
DeploymentSecretSet| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; BAD_SECRET; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see; UNDECLARED_SECRET |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | QUOTA_EXCEEDED |
DELETE /deployments/{id}/secrets/{name}
Remove a deployment's value of a secret. Sealed.
Its instances that set no value of their own fall back to the operator's. A manager, with a step-up over deployment:{id} / __clear_secret / { name }; 404 when the deployment holds no value of it.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
id | path | string |
name | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
DeploymentSecretCleared| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /deployments/{id}/transfer
Offer a deployment to another owner. Sealed.
The deployment's owner account, or an owner or admin of its organization (managing it, MANAGE_APPLICATION, is not enough: 403), offers it to to, another account or organization, with a step-up over deployment:{id} / __offer_deployment / { to }. It changes hands only when a manager of to accepts within 7 days. One offer waits at a time: 409 TRANSFER_PENDING until it is cancelled or lapses. 400 SAME_OWNER for its own owner, 404 for an unknown receiver.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
id | path | string |
Body (application/json)
{
to: Deployer,
confirm?: Confirm
}Answer (application/json)
DeploymentOffered| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; SAME_OWNER; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see |
| 409 | FEATURE_NOT_ACTIVE; TRANSFER_PENDING. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /deployments/{id}/transfer
Cancel the offer of a deployment. Sealed.
A manager of its owner, or of the owner it is offered to, drops the offer, with a step-up over deployment:{id} / __cancel_deployment_transfer / {}. 404 NO_TRANSFER when none waits.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
id | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
DeploymentTransferCancelled| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see; NO_TRANSFER |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /deployments/{id}/transfer/accept
Accept a deployment offered to an owner. Sealed.
A manager of to (the account itself, or MANAGE_APPLICATION org-wide in the organization) accepts the offer to to, with a step-up over deployment:{id} / __accept_deployment / { to, offeredAt } (the offer it accepts): to becomes the owner, and the deployment's offers and customers' instances stay with it. The previous owner's secret values are dropped (secretsDropped names them): the new owner sets its own. Until a person approves an update of a customer's instance on a sheet that names the new owner, none applies on its own. Refused before the step-up: 404 NO_TRANSFER when it is not offered to to, 409 TRANSFER_STALE once whoever offered it may no longer hand it over, 409 TRANSFER_LAPSED 7 days after the offer, 403 DEPLOY_NOT_GRANTED where deployments are granted and to holds no live deployer grant of its own, 409 RECOVERY_KEY_REQUIRED for an organization without a recovery key, 429 past the receiver's 16 deployments. Each customer's next update sheet names the new owner.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
id | path | string |
Body (application/json)
{
to: Deployer,
confirm?: Confirm
}Answer (application/json)
DeploymentAccepted| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; DEPLOY_NOT_GRANTED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 404 | NOT_FOUND: no such object, or one the caller may not see; NO_TRANSFER |
| 409 | FEATURE_NOT_ACTIVE; OFFERS_NOT_USABLE; RECOVERY_KEY_REQUIRED; TRANSFER_LAPSED; TRANSFER_STALE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
| 429 | QUOTA_EXCEEDED |
GET /sign-up
The sign-up policy. Sealed.
Who may create an account here, the cluster's name and the tag a sign-in uses to pick the person's passkey for it. Who: anyone.
Answer (application/json)
SignUpPublicPOST /sign-up
Set the sign-up policy. Sealed.
The cluster's owner, once named, with a passkey (412 first).
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
Body (application/json)
{
policy: SignUp,
operatorProof?: OperatorProof,
confirm?: Confirm
}Answer (application/json)
SignUpSet| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
GET /sign-up/invites
Cluster sign-up invites. Sealed.
Who: an account holder (a passkey session not bound to an app's frontend).
Answer (application/json)
SignUpInviteList| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
POST /sign-up/invites
Issue a cluster sign-up invite. Sealed.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
Body (application/json)
{
uses?: integer,
ttlSecs?: integer,
confirm?: Confirm
}Answer (application/json)
SignUpInviteMade| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE; WRONG_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
DELETE /sign-up/invites/{key}
Withdraw a cluster sign-up invite. Sealed.
Who: an account holder (a passkey session not bound to an app's frontend). Step-up: answers 412 CONFIRM_REQUIRED first; send the same request again with confirm, a passkey assertion over details.challenge.
| Parameter | In | Type |
|---|---|---|
key | path | string |
Body (application/json, optional): May be absent.
ConfirmOnlyAnswer (application/json)
InviteKey| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; EXPIRED_CHALLENGE; UNKNOWN_CHALLENGE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | ASSERTION_REFUSED; FORBIDDEN: the credential may not do this (scope, role, governance, read-only); SIGN_COUNT_REPLAYED |
| 412 | CONFIRM_REQUIRED: a passkey assertion is needed; details carries the challenge. details of CONFIRM_REQUIRED: a ConfirmRequired. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | WRONG_NODE: this node runs a release the account's owners have not approved, so it neither issues nor takes the account's sessions; send it to another node of the cluster (no details; nothing was spent) |
Ops
The operator's routes: every one needs the ops token; decisions are signed with the operator key.
GET /ops/apps
What each app runs. Sealed.
Each app's bundle, package, publisher, who holds its upgrades and release approvals, its last upgrade, approved releases, replicas' releases and lastWriteAt.
Who: the ops token.
| Parameter | In | Type |
|---|---|---|
after? | query | string |
limit? | query | integer |
Answer (application/json)
OpsApps| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
POST /ops/apps/{app}/replicas
Move an app's replicas. Sealed.
Signed over <app> / __set_replicas / { replicas } (sorted); at least min(3, nodes) registered nodes, each on a release the app's owner approved. The set it already has answers unchanged: true. status is the app group's Raft status when the move finished (as the leader saw it).
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
replicas: integer[],
operatorProof?: OperatorProof
}Answer (application/json)
ReplicasSet| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; DUPLICATE_REPLICA; JOB_NODE; TOO_FEW; UNKNOWN_NODE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | MOVE_IN_PROGRESS; RUNTIME_TOO_OLD. details of RUNTIME_TOO_OLD: a RuntimeTooOld. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 421 | NOT_LEADER: send it to the leader named in details.leaderUrl. details of NOT_LEADER: a NotLeader. |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
POST /ops/apps/{app}/restore
Restore an app from its sealed backup. Sealed.
Signed over <app> / __restore_app / { backup, sha256 }, and for a pinned instance (its record's lineage) bundle and computeBundle too, what the restore runs. The receiving node holds the backup (backup, else the newest, in {backup-dir}/{app}/) and seeds the restore; answers once every replica holds the restored state: the rows restored, the backup (format 0, with merod and release null, for one written before manifests) and the app group's Raft status. recovery restores from a recovery-disk file instead (in the app's holder's directory under --recover-from, else --recovery-dir), opened with the data key its holder opened from it (hex); backup is then the file's name and sha256 its body's. A pinned instance (its record's lineage) is restored only from a backup whose bundle a release of its own package and publisher ships (409 OUTSIDE_LINEAGE), never one older than its floor (409 LINEAGE_OLDER_RELEASE), whoever signs it, each before the signature is asked for.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
backup?: string,
recovery?: {
file: string,
key: string
},
operatorProof?: OperatorProof
}Answer (application/json)
AppRestored| Status | Codes |
|---|---|
| 400 | BAD_BACKUP; BAD_RECOVERY_FILE; BAD_RECOVERY_KEY; BAD_REQUEST: the request is malformed; NOT_A_REPLICA_NODE; UNATTESTED_RECOVERY_FILE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 404 | BACKUP_NOT_FOUND |
| 409 | BACKUP_FROM_NEWER_RELEASE; BUNDLE_GONE; LINEAGE_OLDER_RELEASE; MOVE_IN_PROGRESS; NO_BACKUP_DIR; OUTSIDE_LINEAGE; RECOVERY_SEGMENTS_MISSING; UNKNOWN_BACKUP_FORMAT; UPGRADE_PENDING. details of UPGRADE_PENDING: a UpgradePending. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
POST /ops/apps/{app}/upgrade
Upgrade an app as the operator. Sealed.
To a release the operator installed, where the operator holds app upgrades. A pinned instance (its record's lineage) is held to its package, publisher and forward order as for anyone (409 OUTSIDE_LINEAGE, 409 LINEAGE_OLDER_RELEASE). error is the app log's error value (null when it ran), free-form: the app's own.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
app | path | string |
Body (application/json)
{
bundle?: string,
package?: string,
version?: string,
service?: string,
migrate?: string,
operatorProof?: OperatorProof
}Answer (application/json)
UpgradeApplied| Status | Codes |
|---|---|
| 400 | AMBIGUOUS_COMPUTE; BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | LINEAGE_OLDER_RELEASE; NOT_INSTALLED; OUTSIDE_LINEAGE; RELEASE_DEADLINE; RUNTIME_TOO_OLD. details of RELEASE_DEADLINE: a ReleaseDeadline, RUNTIME_TOO_OLD: a RuntimeTooOld. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 422 | UPGRADE_FAILED. details of UPGRADE_FAILED: a Applied. |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
POST /ops/backup
Snapshot the apps this node leads. Sealed.
Into --backup-dir. With all=true, every group this node holds, leader or not: what a node of a cluster that lost a majority still has, to found the cluster again from (merod --bootstrap --restore-from). written: how many snapshots it wrote.
Who: the ops token.
| Parameter | In | Type |
|---|---|---|
all? | query | boolean |
Answer (application/json)
BackupWritten| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
GET /ops/backup-key
The operator's backup key. Sealed.
The X25519 public key every app's recovery-disk backups are sealed to where the operator upgrades apps (key, null while none is set).
Who: the ops token.
Answer (application/json)
BackupKeyAnswer| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
POST /ops/backup-key
Set the operator's backup key. Sealed.
Signed over operator / __set_backup_key / { publicKey }, where the operator upgrades apps (else 403). publicKey: 64 lowercase hex, an X25519 public key whose private half the operator keeps (never a node).
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
Body (application/json)
{
publicKey: string,
operatorProof?: OperatorProof
}Answer (application/json)
BackupKeyAnswer| Status | Codes |
|---|---|
| 400 | BAD_BACKUP_KEY; BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | FEATURE_NOT_ACTIVE. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
GET /ops/cluster
The cluster's identity. Sealed.
The cluster's name and the identity this replica holds (hex). Who: the ops token.
Answer (application/json)
ClusterIdentity| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
POST /ops/cluster-owner
Name the cluster's owner. Sealed.
The account or organization that then runs sign-up and deployers with passkeys; once.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
Body (application/json)
{
owner: Deployer,
operatorProof?: OperatorProof
}Answer (application/json)
ClusterOwnerNamed| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | CONFLICT: the state does not allow it now |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
POST /ops/deployers
Grant a deployer. Sealed.
An account or organization that may install where deployments are granted, until an RFC 3339 time.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
Body (application/json)
DeployerBodyAnswer (application/json)
DeployerGranted| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
DELETE /ops/deployers/{key}
Revoke a deployer. Sealed.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
key | path | string |
Body (application/json, optional): May be absent.
ProofOnlyAnswer (application/json)
DeployerRevoked| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
POST /ops/deployers/{key}/revoke
Revoke a deployer (POST). Sealed.
The same as the DELETE, for an HTTP client whose DELETE carries no body.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
key | path | string |
Body (application/json, optional): May be absent.
ProofOnlyAnswer (application/json)
DeployerRevoked| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
POST /ops/deployments/granted
Require deployer grants. Sealed.
From now on only granted deployers install; once.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
Body (application/json, optional): May be absent.
ProofOnlyAnswer (application/json)
GovernanceSet| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | CONFLICT: the state does not allow it now |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
GET /ops/groups
The control-plane groups on this node. Sealed.
Root, every tenant group (key: its organization) and every session group (key: its shard) this node hosts, by group id: this node's role in each (leader, voter, learner, none), the leader, members, lastLog, applied, lag (entries logged here and not yet applied) and stateBytes (as last checkpointed here). Ids and counts only, as this node sees them now. Two reads' applied give a group's entries per second; after is a group id.
Who: the ops token.
| Parameter | In | Type |
|---|---|---|
after? | query | string |
limit? | query | integer |
Answer (application/json)
OpsGroups| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
GET /ops/job-nodes/{id}/attestation
Whether the cluster accepts a job node. Sealed.
Runs the check the leader makes before it sends a job node work: a quote that passes the release policy, this cluster and node, this cluster's identity, a release not retired (not the per-app release approval). admitted carries the attested release; refused (final), with the reason: a 400 or 404 from the node, a 2xx that is oversized or does not decode, a failed verification, or a 400 or 404 from the collateral source on the PCK certificate or TCB info request; unreachable (transient), with the reason: anything else, including no answer, any other status from the node and any other collateral failure. 503 when this node's directory is stale. A verified answer is reused for up to a minute.
Who: the ops token.
| Parameter | In | Type |
|---|---|---|
id | path | string |
Answer (application/json)
JobNodeVerdict| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
| 503 | UNAVAILABLE: the cluster cannot answer now |
GET /ops/metrics
Prometheus metrics. Sealed.
Including per-app usage for billing. --metrics-listen ADDR also serves it as plain GET /metrics there.
Who: the ops token.
Answer (text/plain): OK: the Prometheus text format.
| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
POST /ops/nodes
Register a node. Sealed.
Signed with the operator key over cluster / __register_node / { id, addr, zone }. The system leader adds it as a learner and promotes caught-up learners while fewer than 3 voters are left; role: job registers a compute node (in pool).
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
Body (application/json)
{
id: integer,
addr: string,
zone?: string,
operatorProof?: OperatorProof,
role?: "replica" | "job",
pool?: string
}Answer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_ADDRESS; BAD_POOL; BAD_REQUEST: the request is malformed; NODE_HOLDS_CLUSTER; POOL_FOR_JOB_NODES |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | ADDRESS_TAKEN |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
DELETE /ops/nodes/{id}
Remove a node. Sealed.
One no app keeps a replica on; the system leader (elsewhere 421 NOT_LEADER); signed over __remove_node / { id }. 503 UNAVAILABLE while a tenant or session group still votes on the node or is led by it: the first such answer drains the node (on the same signature, unspent) and each group's leader moves its vote off it. Nothing is removed meanwhile, and the same signed request succeeds once no group needs the node, within a reconcile or two.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
id | path | string |
Body (application/json, optional): May be absent.
ProofOnlyAnswer (application/json)
NodeRemoved| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; LAST_NODE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 421 | NOT_LEADER: send it to the leader named in details.leaderUrl. details of NOT_LEADER: a NotLeader. |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
| 503 | UNAVAILABLE: the cluster cannot answer now |
GET /ops/nodes/{id}/receipt-key
A node's receipt key. Sealed.
Who: the ops token.
| Parameter | In | Type |
|---|---|---|
id | path | string |
Answer (application/json)
ReceiptKey| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
GET /ops/orgs
Each organization's approved releases. Sealed.
Who: the ops token.
| Parameter | In | Type |
|---|---|---|
after? | query | string |
limit? | query | integer |
Answer (application/json)
OpsOrgs| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
POST /ops/orgs/{org}/upgrade
An operator's upgrade run. Sealed.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
org | path | string |
Body (application/json)
OrgUpgradeBodyAnswer (application/json)
UpgradeRun| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; 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 |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
POST /ops/outbound
Approve outbound prefixes. Sealed.
Where the operator holds outbound approvals.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
Body (application/json)
{
package: string,
prefixes?: OutboundSelection,
replace?: boolean,
operatorProof?: OperatorProof
}Answer (application/json)
OutboundApproved| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
GET /ops/packages
The releases the operator installed. Sealed.
Who: the ops token.
Answer (application/json)
PackageList| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
POST /ops/packages
Install an uploaded release as the operator. Sealed.
Who: the ops token.
Body (application/octet-stream): the .mpk
Answer (application/json)
PackageInstalled| Status | Codes |
|---|---|
| 400 | BAD_BUNDLE; BAD_PACKAGE; BAD_REQUEST: the request is malformed; COMPUTE_ABI_MISMATCH; UNSUPPORTED_BUNDLE. details of BAD_BUNDLE: a ServiceRefused, COMPUTE_ABI_MISMATCH: a ServiceRefused, UNSUPPORTED_BUNDLE: a ServiceRefused. |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 422 | COMPILE_TIMEOUT. details of COMPILE_TIMEOUT: a ServiceRefused. |
| 429 | TOO_MANY_COMPILES |
| 503 | BUSY |
POST /ops/packages/install
Install a release from the registry as the operator. Sealed.
Who: the ops token.
Body (application/json)
{
package: string,
version: string
}Answer (application/json)
PackageInstalled| Status | Codes |
|---|---|
| 400 | BAD_BUNDLE; BAD_REQUEST: the request is malformed; COMPUTE_ABI_MISMATCH; UNSUPPORTED_BUNDLE. details of BAD_BUNDLE: a ServiceRefused, COMPUTE_ABI_MISMATCH: a ServiceRefused, UNSUPPORTED_BUNDLE: a ServiceRefused. |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 422 | COMPILE_TIMEOUT. details of COMPILE_TIMEOUT: a ServiceRefused. |
| 429 | TOO_MANY_COMPILES |
| 503 | BUSY |
DELETE /ops/packages/{package}
Uninstall what the operator installed. Sealed.
Who: the ops token.
| Parameter | In | Type |
|---|---|---|
package | path | string |
Answer (application/json)
Uninstalled| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
DELETE /ops/packages/{package}/{version}
Uninstall one operator-installed version. Sealed.
Who: the ops token.
| Parameter | In | Type |
|---|---|---|
package | path | string |
version | path | string |
Answer (application/json)
Uninstalled| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
GET /ops/placement
Where every app's replicas are. Sealed.
Ids and counts only, read after a read index (fresh: this node caught up with the system leader); release is a node's attested release; clusterVersion is the logged cluster version (null until the system leader logs one).
Who: the ops token.
Answer (application/json)
Placement| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
GET /ops/pools
Compute pools. Sealed.
The pools by name (absent: none set, one legacy pool), and each pool's capacity: how many runs its job nodes take at once. Who: the ops token.
Answer (application/json)
OpsPools| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
POST /ops/pools
Set the compute pools. Sealed.
Signed over cluster / __set_pools / { pools }; POOL_IN_USE when a pool to remove still has job nodes or runs.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
Body (application/json)
{
pools: {
[key: string]: {
runsPerNode: integer,
maxMemoryMib: integer
}
},
operatorProof?: OperatorProof
}Answer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | POOL_IN_USE; UPGRADE_PENDING. details of UPGRADE_PENDING: a UpgradePending. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
GET /ops/prices
The price table. Sealed.
In micro-units of the billing currency; {} until one is set.
Who: the ops token.
Answer (application/json)
PriceTableView| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
POST /ops/prices
Set the price table. Sealed.
Signed over cluster / __set_price_table / { table }; PRICE_VERSION unless version is the current one plus one (1 for the first), BAD_PRICES for a zero fuelPerVcpuSecond.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
Body (application/json)
{
table: {
version: integer,
fuelPerVcpuSecond: integer,
vcpuSecond: integer,
gibSecond: integer,
connectorGib: integer,
storageGibMonth: integer,
egressGib: integer
},
operatorProof?: OperatorProof
}Answer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_PRICES; BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | PRICE_VERSION; UPGRADE_PENDING. details of UPGRADE_PENDING: a UpgradePending. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
GET /ops/quotas
The quotas. Sealed.
The per-account quotas, and the per-payer overrides under orgs.
Who: the ops token.
Answer (application/json)
QuotaSettings| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
POST /ops/quotas
Change quotas. Sealed.
Changes the limits the body names, the others keep their value; signed over cluster / __set_quotas / { quotas } with every limit after the change. Without org, the cluster's limits (GET /ops/quotas names them); orgs, which that answer carries, is ignored, so its answer may be sent back changed. With org: one payer's maxConcurrentRuns, computeFuel (decimal string) and maxFileBytes (null clears one, back to the cluster's), and no other limit. A property that is no limit (of the cluster's, or with org of a payer's) is refused 400 UNKNOWN_QUOTA.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
Body (application/json)
QuotaChangesAnswer (application/json)
{}| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; UNKNOWN_QUOTA |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | UPGRADE_PENDING. details of UPGRADE_PENDING: a UpgradePending. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
POST /ops/recover
Found the cluster again from its recovery disk. Sealed.
On the founder started with --bootstrap --recover-from DIR, its system state empty: the newest system file in DIR/operator/ and the apps' code files, each with the data key the operator opened from it (hex). Checked as founding from backups is (governance, operator key, no node of the old cluster answering), then the system group is seeded; each app waits for POST /ops/apps/{app}/restore { recovery }.
Who: the ops token.
Body (application/json)
{
system: {
file: string,
key: string
},
code?: {
file: string,
key: string
}[]
}Answer (application/json)
SystemRecovered| Status | Codes |
|---|---|
| 400 | BAD_RECOVERY_FILE; BAD_RECOVERY_KEY; BAD_REQUEST: the request is malformed; TOO_MANY_FILES; UNATTESTED_RECOVERY_FILE |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | NOT_RECOVERING; OLD_CLUSTER_ANSWERS; OTHER_DEPLOYMENT |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
GET /ops/recovery-files
The recovery files a node reads. Sealed.
In --recover-from, else --recovery-dir, of holder (operator, the default; org:<id>; account:<id>): each file's name, its header as signed (JSON text) and the node's Ed25519 signature over calimero.recovery-backup.v1\0 and those bytes (hex), for the holder's device to check before it opens a key with its own.
Who: the ops token.
| Parameter | In | Type |
|---|---|---|
holder? | query | string |
Answer (application/json)
RecoveryFiles| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | NO_BACKUP_DIR |
POST /ops/releases
Approve a mero-tee release for every app. Sealed.
Where the operator holds release approvals.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
Body (application/json)
{
version: string,
approved?: boolean,
operatorProof?: OperatorProof
}Answer (application/json)
ApprovedReleases| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
POST /ops/releases/{version}/deadline
Set a release deadline. Sealed.
After after (RFC 3339), apps whose approver has not moved past the release may start no new work.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
version | path | string |
Body (application/json)
{
after?: string,
operatorProof?: OperatorProof
}Answer (application/json)
Deadlines| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
DELETE /ops/releases/{version}/deadline
Lift a release deadline. Sealed.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
version | path | string |
Body (application/json, optional): May be absent.
ProofOnlyAnswer (application/json)
Deadlines| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
GET /ops/secrets
The operator's secrets. Sealed.
On fresh state: each secret's fingerprint, scope and grants; never a value. Who: the ops token.
Answer (application/json)
OperatorSecretList| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
GET /ops/secrets/{name}
One of the operator's secrets. Sealed.
Its fingerprint, scope and grants; never its value. 404 when the operator holds none of that name.
Who: the ops token.
| Parameter | In | Type |
|---|---|---|
name | path | string |
Answer (application/json)
OperatorSecretView| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
PUT /ops/secrets/{name}
Set an operator's secret. Sealed.
A value for every instance it grants whose release declares the name, runs a package in packages signed by one of signers, and binds it to one of hosts; an instance's own value and its deployment's come first. Setting it again keeps its grants. Signed over cluster / __set_operator_secret / { name, fingerprint, digest, packages, signers, hosts, version }, never the value; version is the operator's secrets' change count plus one, which the 428 names (args.version); the signed request sends it back as version beside operatorProof (400 without it), and one another change outdated is refused 409 OPERATOR_SECRET_VERSION before its signature is judged. 400 BAD_SECRET for a name outside A-Z, 0-9 and _ or a value outside 1 to 4,096 bytes; 400 REJECTED for packages, signers (did:key of an Ed25519 key) or hosts (lowercase, no port, at most 253 bytes) not each 1 to 16; at most 16 secrets (429 QUOTA_EXCEEDED);
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
name | path | string |
Body (application/json)
{
value: string,
packages: string[],
signers: string[],
hosts: string[],
version?: integer,
operatorProof?: OperatorProof
}Answer (application/json)
OperatorSecretView| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; BAD_SECRET; REJECTED: the system log refused the command when it applied; message says why |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 409 | FEATURE_NOT_ACTIVE; OPERATOR_SECRET_VERSION. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
| 429 | QUOTA_EXCEEDED |
DELETE /ops/secrets/{name}
Remove an operator's secret. Sealed.
Its instances fall back to this node's operator values. Signed over cluster / __clear_operator_secret / { name, version }, the body carrying version beside operatorProof as for a set; 404 when the operator holds none of that name.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
name | path | string |
Body (application/json, optional): May be absent.
OperatorSecretChangeAnswer (application/json)
OperatorSecretCleared| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; 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 | FEATURE_NOT_ACTIVE; OPERATOR_SECRET_VERSION. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
GET /ops/secrets/{name}/grants
Whom an operator's secret is granted to. Sealed.
On fresh state; 404 when the operator holds none of that name.
Who: the ops token.
| Parameter | In | Type |
|---|---|---|
name | path | string |
Answer (application/json)
OperatorSecretGrants| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 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 |
PUT /ops/secrets/{name}/grants/{grantee}
Grant an operator's secret. Sealed.
To one instance (app:<id>) or every instance of an organization (org:<id>), which need not exist yet; an organization's grant reaches an instance only while it is in that organization, and an instance deleted, moved or handed on loses its grant (on a sharded cluster once root's mirror of its organization takes the change), as does an organization deleted. Granting one it holds changes nothing. Signed over cluster / __grant_operator_secret / { name, grantee, version }, the body carrying version beside operatorProof as for a set; 400 REJECTED for a grantee not shaped as the cluster mints ids, 404 when the operator holds none of that name, at most 4,096 grants per secret (429 QUOTA_EXCEEDED).
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
name | path | string |
grantee | path | string |
Body (application/json, optional): May be absent.
OperatorSecretChangeAnswer (application/json)
OperatorSecretView| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; REJECTED: the system log refused the command when it applied; message says why |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; 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 | FEATURE_NOT_ACTIVE; OPERATOR_SECRET_VERSION. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
| 429 | QUOTA_EXCEEDED |
DELETE /ops/secrets/{name}/grants/{grantee}
Revoke a grant of an operator's secret. Sealed.
Revoking one it does not hold changes nothing. Signed over cluster / __revoke_operator_secret / { name, grantee, version }, the body carrying version beside operatorProof as for a set; 400 REJECTED for a malformed grantee, 404 when the operator holds none of that name.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
name | path | string |
grantee | path | string |
Body (application/json, optional): May be absent.
OperatorSecretChangeAnswer (application/json)
OperatorSecretView| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed; REJECTED: the system log refused the command when it applied; message says why |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; 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 | FEATURE_NOT_ACTIVE; OPERATOR_SECRET_VERSION. details of FEATURE_NOT_ACTIVE: a FeatureNotActive. |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
GET /ops/served-origins
Custom domains to serve. Sealed.
Every served origin a package's manager registered, by the package's label, never its name; addedAt is RFC 3339.
Who: the ops token.
Answer (application/json)
ServedOrigins| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
POST /ops/sign-up
Set the sign-up policy. Sealed.
Refused once the cluster's owner runs sign-up.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
Body (application/json)
{
policy: SignUp,
operatorProof?: OperatorProof,
confirm?: Confirm
}Answer (application/json)
SignUpSet| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
GET /ops/sign-up/invites
Cluster sign-up invites. Sealed.
Who: the ops token.
Answer (application/json)
SignUpInviteList| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
POST /ops/sign-up/invites
Issue a cluster sign-up invite. Sealed.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
Body (application/json)
{
token: string,
uses?: integer,
expiresAt: string,
operatorProof?: OperatorProof
}Answer (application/json)
SignUpInvite| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 415 | UNSUPPORTED_MEDIA_TYPE: a JSON body was sent without Content-Type: application/json |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
DELETE /ops/sign-up/invites/{key}
Withdraw a cluster sign-up invite. Sealed.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
key | path | string |
Body (application/json, optional): May be absent.
ProofOnlyAnswer (application/json)
InviteKey| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
POST /ops/sign-up/invites/{key}/revoke
Withdraw a cluster sign-up invite (POST). Sealed.
For an HTTP client whose DELETE carries no body.
Who: the ops token. Operator signature: answers 428 OPERATOR_SIGNATURE_REQUIRED first; send it again with operatorProof, the operator key's signature over details.message and its nonce.
| Parameter | In | Type |
|---|---|---|
key | path | string |
Body (application/json, optional): May be absent.
ProofOnlyAnswer (application/json)
InviteKey| Status | Codes |
|---|---|
| 400 | BAD_REQUEST: the request is malformed |
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | BAD_OPERATOR_SIGNATURE; FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
| 413 | TOO_LARGE: the body is past its limit (a JSON body 4 MiB, any body 64 MiB, or the route's own) |
| 428 | OPERATOR_SIGNATURE_REQUIRED: the operator key must sign the decision; details names the statement. details of OPERATOR_SIGNATURE_REQUIRED: a OperatorSignatureRequired. |
GET /ops/status
The node and the cluster. Sealed.
Counts, Raft status and governance; never app state, names or credentials. groups: the app groups this node hosts; apps and accounts are counts; rollback is this node's rollback counter, null on a node without one.
Who: the ops token.
Answer (application/json)
OpsStatus| Status | Codes |
|---|---|
| 401 | UNAUTHENTICATED: no, unknown, expired or revoked credential |
| 403 | FORBIDDEN: the credential may not do this (scope, role, governance, read-only) |
Schemas
AllAppsBody
The request body of POST /orgs/{org}/all-apps.
{
account: string,
allApps: boolean,
confirm?: Confirm
}BackupKeyBody
The request body of POST /orgs/{org}/backup-key.
{
publicKey: string,
confirm?: Confirm
}CapabilitiesBody
The request body of POST /orgs/{org}/capabilities.
{
account?: string,
team?: string,
capabilities: integer,
confirm?: Confirm
}DeployerBody
The request body of POST /ops/deployers, POST /deployers.
{
deployer: Deployer,
until?: string,
operatorProof?: OperatorProof,
confirm?: Confirm
}DeploymentBody
The request body of POST /deployments.
{
name: string,
owner: Deployer,
confirm?: Confirm
}DeploymentSecretBody
The request body of PUT /deployments/{id}/secrets/{name}.
{
value: string,
confirm?: Confirm
}InviteBody
The request body of POST /orgs/{org}/invites.
{
role: OrgRole,
teams?: string[],
ttlSecs?: integer,
uses?: integer,
allApps?: boolean,
capabilities?: integer,
confirm?: Confirm
}MemberBody
The request body of POST /orgs/{org}/members.
{
account: string,
role: OrgRole,
confirm?: Confirm
}MetadataBody
The request body of POST /apps/{app}/metadata, POST /orgs/{org}/metadata, POST /orgs/{org}/members/{account}/metadata.
{
metadata: any
}OfferBody
The request body of POST /deployments/{id}/apps.
{
app: string,
package: string,
version: string,
confirm?: Confirm
}OrgBody
The request body of POST /orgs.
{
name: string,
recoveryKey?: string,
capabilities?: integer
}OrgSettingsBody
The request body of POST /orgs/{org}/settings.
{
allowGuests?: boolean,
allowPublicLinks?: boolean,
confirm?: Confirm
}OrgUpgradeBody
The request body of POST /orgs/{org}/upgrade, POST /ops/orgs/{org}/upgrade.
{
package: string,
version: string,
team?: string,
cascade?: boolean,
migrate?: string,
confirm?: Confirm,
operatorProof?: OperatorProof
}PublisherBody
The request body of POST /orgs/{org}/publishers.
{
signerId: string,
publicKey: string,
signature: string,
confirm?: Confirm
}PublisherUpgradeBody
The request body of POST /orgs/{org}/packages/{package}/upgrade.
{
version: string,
migrate?: string,
confirm?: Confirm
}RecoveryKeyBody
The request body of POST /orgs/{org}/recovery.
{
publicKey?: string | null,
confirm?: Confirm
}RecoveryStartBody
The request body of POST /orgs/{org}/recovery/start.
{
nonce: string,
signature: string
}RenameOrgBody
The request body of POST /orgs/{org}/name.
{
name: string,
confirm?: Confirm
}ScopeAppsBody
The request body of POST /orgs/{org}/app-teams.
{
apps?: {
package: string,
name?: string,
instances?: string[],
join?: TeamJoin,
keep?: string[],
childTeams?: boolean
}[],
shared?: boolean,
confirm?: Confirm
}TeamBody
The request body of POST /orgs/{org}/teams.
{
name: string,
parent?: string,
join: TeamJoin
}TeamDeleteBody
DELETE /orgs/{org}/teams/{team}'s body: whether the instances only the team admits stay, and the passkey confirmation after the 412.
{
keepApps?: boolean,
confirm?: Confirm
}TeamIdsBody
The request body of DELETE /orgs/{org}/members/{account}/teams.
{
teams: string[],
confirm?: Confirm
}TeamMemberBody
The request body of POST /orgs/{org}/teams/{team}/members.
{
account: string,
lead?: boolean,
role?: TeamRole,
capabilities?: integer,
confirm?: Confirm
}TeamRowsBody
The request body of POST /orgs/{org}/members/{account}/teams.
{
teams: {
team: string,
role?: TeamRole,
capabilities?: integer
}[],
confirm?: Confirm
}TeamUpdateBody
The request body of POST /orgs/{org}/teams/{team}.
{
name?: string,
join?: TeamJoin,
parent?: string | null,
metadata?: any
}UpgradePolicyBody
A policy to set at one scope; null drops it (an app then follows its organization's, an organization the defaults).
{
policy?: {
autoApply?: "never" | "noDestinations",
holdHours?: integer,
secondApprover?: boolean
} | null,
confirm?: Confirm
}ReplicaAttestation
One replica's receipt-key attestation, or the error fetching it.
{
node: integer,
attestation: AttestationDoc
} | {
node: integer,
error: string
}UseMode
How a release holds an app it references (uses): create, made with the instance and upgraded with it as one unit; attach, an app its owner already runs, linked.
"create" | "attach"AppAbi
GET /apps/{app}/abi: the bundle the app group runs and the ABI it embeds (null: none).
{
bundle: string,
abi: any | null
}AppAttestations
GET /apps/{app}/attestation: the app, the cluster each replica's quote must bind, and each replica's receipt-key attestation (or why it could not be fetched).
{
appId: string,
cluster: string,
replicas: ReplicaAttestation[]
}AppCreated
What POST /apps answers: the new instance, its app group and replicas, whether its release ships a compute component, and the apps it created with it by name.
{
appId: string,
group: integer,
replicas: integer[],
compute: boolean,
links: {
[key: string]: string
}
}AppDeleted
What DELETE /apps/{app} answers: the app, and the members of its unit that went with it.
{
appId: string,
deleted: boolean,
members: string[]
}AppEvent
An event a call emitted that the caller is in the audience of: its kind and data (the app's own value).
{
kind: string,
data: any
}AppInviteList
GET /apps/{app}/invites: the instance's invites.
{
invites: AppInviteView[]
}AppInviteMade
What POST /apps/{app}/invites answers: the invite's token, shown once.
{
token: string
}AppInviteView
An instance invite: its key, uses left, expiry, maker and the grant scope it carries.
{
inviteKey: string,
usesLeft: integer,
expiresAt: integer,
expired: boolean,
createdBy: string,
createdAt: integer,
scope: any | null
}AppLinkList
GET /apps/{app}/links: each reference of the release the instance runs and what is linked.
{
app: string,
links: LinkRow[]
}AppList
GET /apps: the instances the caller reaches.
{
apps: AppEntry[]
}AppMoved
What POST /apps/{app}/move answers: where the app went, its access there, whether an app team was made, the accounts brought in and the invites revoked.
{
appId: string,
from: string,
org: string,
grants: Grant[],
created: boolean,
added: string[],
revokedInvites: integer
}AppOpenApi
GET /apps/{app}/openapi.json: the app's OpenAPI document, generated from its ABI.
{
[key: string]: any
}AppRestored
An app restored from a backup or a recovery file: its new group, the rows seeded, the backup it came from and the group's status once every replica holds it.
{
app: string,
group: integer,
rows: integer,
backup: {
name: string | null,
index: integer,
format: integer,
merod: string | null,
release: string | null
},
status: GroupStatus
}AppSecrets
GET /apps/{app}/secrets: each secret the release declares, by name.
{
secrets: {
[key: string]: {
host: string,
paths: string[],
header?: string,
format?: string,
bodyField?: string,
binding: string,
description: string,
required: boolean,
source: "app" | "deployment" | "operator" | "cluster",
fingerprint?: string,
setBy?: string,
setAt?: integer,
managed?: boolean
}
}
}AppStorage
GET /apps/{app}/storage: keys, bytes, the bytes of its files (blobBytes), and when it last committed a write (Unix seconds; null before its first).
{
keys: integer,
bytes: integer,
blobBytes: integer,
lastWriteAt: integer | null
}AppUsage
GET /apps/{app}/usage: today, and the 30 days before it, oldest first.
{
today: UsageDay,
days: UsageDay[]
}ApprovalLogged
POST /apps/{app}/upgrade-approvals: the first approval logged.
{
app: string,
approval: PendingApproval
}AppsReport
GET /orgs/{org}/apps and GET /auth/apps: a page of one approval scope's apps, with the scope's approved releases and the releases the cluster's nodes run.
{
scope: AppScope,
governance: Governance,
approvedReleases: string[] | null,
clusterReleases: ClusterRelease[],
apps: ReportApp[],
next: string | null
}BackupWritten
What POST /ops/backup answers: how many backups were written.
{
written: integer
}CapabilityCard
GET /packages/{package}/{version}/capabilities: a release's capability card (the release, its signer, outbound prefixes, the origins its page may connect to (connect), secrets, uses, publicViews (the views it serves to anyone) and ABI, as the consent page shows each side of an upgrade), and where an instance of it could send data (null: a member release is not installed here).
{
package: string,
version: string,
service: string | null,
bundle: string,
mpk: string,
manifestHash: string,
signer: string,
name: string | null,
author: string | null,
outbound: string[],
connect?: string[],
secrets: any,
secretBindings: string[],
uses: any,
abi: any,
bytesEgress?: boolean,
publicViews?: string[],
destinations: string[] | null,
members: {
[key: string]: UnitMember
} | null
}ClusterIdentity
GET /ops/cluster: the cluster's name and identity key, which a job node is started with.
{
cluster: string,
identity: string
}ClusterOwnerNamed
What SetClusterOwner answers: the owner named.
{
owner: Deployer
}DelegationMade
What PUT /apps/{app}/delegations/{target} answers: the methods the caller let source call on target as them.
{
source: string,
target: string,
methods: string[]
}Delegations
GET /apps/{app}/delegations: what the caller lets source do as them, by target.
{
source: string,
delegations: {
[key: string]: string[]
}
}EgressView
GET /apps/{app}/egress: where the instance's unit may send data now (destinations, members), and whether its egress switch is on.
{
app: string,
destinations: string[],
members: {
[key: string]: UnitMember
},
egress: "on" | "off",
offBy?: "organization" | "instance",
summary?: string
}GovernanceSet
What SetDeploymentsGranted answers: the cluster's governance after.
{
governance: Governance
}HolderRecovered
What POST /recover/holder answers: each app restored from the holder's files.
{
apps: AppRestored[]
}IntentResult
What a call (/intents) answers: the log index of its entry, the app's result, the events the caller receives, and the answering node's receipt.
{
index: integer,
result: any,
events: AppEvent[],
receipt: Receipt
}JobNodeVerdict
GET /ops/job-nodes/{id}/attestation: the leader's check of a job node.
{
state: "admitted",
node: integer,
release: string
} | {
state: "refused" | "unreachable",
node: integer,
reason: string
}LinkRow
One link of an instance: the reference (null fields for one its release no longer names), the app linked, its release and whether it is in the reference's range (null: nothing linked).
{
name: string,
package: string | null,
range: string | null,
mode: UseMode | null,
app: string | null,
version: string | null,
inRange: boolean | null
}LinkView
A link as its list shows it: its key and terms, never a token.
{
link: string,
label: string | null,
expiresAt: integer | null,
expired: boolean,
ratePerMinute: integer,
createdBy: string,
createdAt: integer
}MethodResult
What POST /apps/{app}/methods/{method} answers: a call's answer, or a view's (no events), as the method is. The handler answers one of [IntentResult] and [ViewResult]; this is their schema together, for the API's document.
{
index: integer,
result: any,
events?: AppEvent[],
receipt: Receipt
}NodeRemoved
What DELETE /ops/nodes/{id} answers: the system group's status after.
{
status: GroupStatus
}OpsApps
GET /ops/apps: a page of what every app runs, for the operator.
{
fresh: boolean,
governance: Governance,
apps: ReportApp[],
next: string | null
}OpsOrgs
GET /ops/orgs: a page of organizations and the releases approved to hold their apps.
{
fresh: boolean,
governance: Governance,
orgs: {
org: string,
approvedReleases: string[] | null
}[],
next: string | null
}OpsGroups
GET /ops/groups: a page of the control-plane groups node node hosts, by group id.
{
node: integer,
groups: {
family: string,
key: string,
group: integer,
role: string,
leader: integer | null,
term: integer,
lastLog: integer | null,
applied: integer,
lag: integer,
voters: integer[],
learners: integer[],
stateBytes: integer | null,
stopped: boolean
}[],
next: string | null
}OpsPools
GET /ops/pools: the pools, and the runs each takes at once.
{
pools: {
[key: string]: {
runsPerNode: integer,
maxMemoryMib: integer
}
},
capacity: {
[key: string]: integer
}
}OperatorSecretList
GET /ops/secrets: the operator's secrets by name, never a value.
{
secrets: {
[key: string]: OperatorSecretView
}
}OperatorSecretView
An operator's secret, never its value: its fingerprint (the first 16 hex digits of the value's SHA-256), when it was set (Unix seconds), the packages, signers and hosts it is scoped to, and the instances it is granted to (app:<id>, org:<id>; none: no instance gets it).
{
name: string,
fingerprint: string,
setAt: integer,
packages: string[],
signers: string[],
hosts: string[],
grants: string[]
}OperatorSecretGrants
GET /ops/secrets/{name}/grants: the instances and organizations it is granted to (app:<id>, org:<id>).
{
grants: string[]
}OperatorSecretCleared
What ClearOperatorSecret answers.
{
name: string
}OpsStatus
GET /ops/status: this node's view of the cluster: its system group, governance, the app groups it hosts, the registered nodes, counts, its rollback counter (null: unprotected), and its outbound HTTPS service ([outbound]): on or off, whether it allows any host an app declares (*), and how many hosts it names; never which hosts or any secret.
{
node: integer,
system: GroupStatus,
governance: Governance,
groups: {
app: string,
status: GroupStatus
}[],
nodes: NodeRecord[],
apps: integer,
accounts: integer,
rollback: RollbackStatus | null,
outbound?: {
enabled: boolean,
anyHost: boolean,
hosts: integer
}
}PipelineCancelled
What POST /apps/{app}/pipeline-runs/{run}/cancel answers: the run cancelled.
{
run: string
}PipelineRunList
GET /apps/{app}/pipeline-runs: the app's recent pipeline runs, newest first.
{
runs: PipelineRunView[]
}PipelineCaller
Who started a pipeline run.
{
kind: "account",
account: string
} | {
kind: "apiKey",
key: string,
account: string
} | {
kind: "public"
} | {
kind: "app",
app: string
} | {
kind: "system"
} | {
kind: "visitor",
link: string,
key: string
}PipelineUsage
An amount of fuel and wall time, both decimal strings; wallMs is the total of the jobs' own wall time, not the clock's.
{
fuel: string,
wallMs: string
}PipelineRunBudget
The usage budget of a pipeline run: the most all its jobs may use together, and what the pipeline could use at its caps.
{
maxUsage: PipelineUsage,
worstCase: PipelineUsage
}PipelineRunCost
The cost cap of a pipeline run that started before usage budgets, and the price table it was admitted under; the figures that can pass 2^53 are decimal strings.
{
maxCost: string /* decimal */,
priceVersion: integer,
table: {
version: integer,
fuelPerVcpuSecond: integer,
vcpuSecond: integer,
gibSecond: integer,
connectorGib: integer,
storageGibMonth: integer,
egressGib: integer
},
worstCase: string /* decimal */
}PipelineRunOutput
A file a pipeline step made or a run took in: its size and hash only to those who handle the app's files.
{
id: string,
size?: integer,
sha256?: string
}PipelineRunStep
One step of a pipeline run. runs, outputs, result and results come only with one run (GET /apps/{app}/pipeline-runs/{run}), not in the list; result and results are null to those who may not handle the app's files. cost is a decimal string, under a cost cap of a run that started before usage budgets.
{
status: "pending" | "running" | "succeeded" | "failed" | "skipped" | "upstreamFailed" | "cancelled",
runs?: string[],
resultsTooLarge: boolean,
reason: string | null,
fan: {
total: integer,
items: integer,
batch: integer,
allowed: integer
},
finished: integer,
failedItems: integer,
cachedCount?: integer,
cachedItems: integer,
cachedKeys?: {
[key: string]: string
},
cost?: string /* decimal */,
capped?: boolean,
legacyItems?: integer,
cached: boolean,
outputs?: PipelineRunOutput[],
result?: any,
results?: any[] | null
}PipelineRunView
A pipeline run as the app's leader shows it: its stored record (PipelineRun), keyed by id, reshaped for the reader (results and file hashes only to those who handle the app's files). A param named in secretParams is declared secret: params shows it as { hmacSha256 }, never its value. costSoFar is a decimal string, under a cost cap of a run that started before usage budgets. usage and usageSoFar are under a usage budget.
{
id: string,
pipeline: string,
version: string,
hash: string,
computeBundle: string,
modules?: {
[key: string]: string
},
owner: string,
inputs: {
[key: string]: string[]
},
inputFiles?: {
[key: string]: PipelineRunOutput
},
params: {
[key: string]: any
},
caller: PipelineCaller,
payer: string,
startTsMs: integer,
state: "running" | "succeeded" | "succeededWithFailures" | "failed" | "cancelled",
cancelRequested: boolean,
failFast: boolean,
stopping: boolean,
steps: {
[key: string]: PipelineRunStep
},
endTsMs: integer | null,
cost?: PipelineRunCost,
costSoFar?: string /* decimal */,
usage?: PipelineRunBudget,
usageSoFar?: PipelineUsage,
retryOf?: string,
limits?: {
[key: string]: {
fuel: integer | null,
memoryMib: integer | null,
wallSecs: integer | null
}
},
secretParams?: string[]
}PipelineStarted
What a pipeline run's start (and retry) answers: its id, its worst-case usage under a budget, and the run it retries.
{
run: string,
worstCase?: PipelineUsage,
retryOf?: string
}PlacedApp
An app's group and replica nodes.
{
app: string,
group: integer,
replicas: integer[]
}PlacedNode
A node's zone, role, attested release (null: unknown) and how many apps it holds.
{
id: integer,
zone: string,
role: NodeRole,
release: string | null,
apps: integer
}Placement
GET /ops/placement: where every app's replicas are, and each node's zone, role, attested release and app count; ids and counts only.
{
fresh: boolean,
apps: PlacedApp[],
nodes: PlacedNode[],
clusterVersion: string | null
}PresenceDiff
A change a stream reports: an author's new state, or None when they left.
{
account: string,
device: string,
state: string | null
}PresenceList
GET /apps/{app}/presence: who is here, on which device, and their state (null: none set).
{
present: PresenceDiff[]
}PriceTableView
GET /ops/prices: the price table, every field absent until one is set.
{
version?: integer,
fuelPerVcpuSecond?: integer,
vcpuSecond?: integer,
gibSecond?: integer,
connectorGib?: integer,
storageGibMonth?: integer,
egressGib?: integer
}PublicLinkMade
POST /apps/{app}/public-links: the link's key and, this once, its token.
{
link: string,
token: string
}PublicLinks
GET /apps/{app}/public-links.
{
links: LinkView[]
}ReceiptKey
GET /ops/nodes/{id}/receipt-key: the receipt key this node holds for node id, the release it attested (null: unknown) and when.
{
node: integer,
key: string,
release: string | null,
attestedAt: integer
}RecoveryFiles
GET /ops/recovery-files: a holder and its recovery files, each with its signed header.
{
holder: {
kind: "org",
id: string
} | {
kind: "account",
id: string
} | {
kind: "operator"
},
files: {
name: string,
header: string,
signature: string
}[]
}ReleasePipeline
A registered pipeline: its hash, worst-case fuel (a decimal string), the module releases it pins, and its canonical JSON.
{
hash: string,
worstCaseFuel: string,
modules: {
[key: string]: {
package: string,
version: string,
compute: string
}
},
pipeline: any
}ReleasePipelines
GET /packages/{package}/{version}/pipelines: the release's pipelines by name.
{
[key: string]: ReleasePipeline
}ReleaseRecipe
A recipe: the SHA-256 of its source (lowercase hex) and the source.
{
hash: string,
source: string
}ReleaseRecipes
GET /packages/{package}/{version}/recipes: the release's recipes by name.
{
[key: string]: ReleaseRecipe
}ReplicasSet
What POST /ops/apps/{app}/replicas answers: the app group's status after, and whether the set was already the one asked for.
{
status: GroupStatus,
unchanged: boolean
}RunEstimate
What POST /apps/{app}/pipelines/{name}/estimate answers: per step its runs and fuel, the whole run's fuel, and its cost and the price table's version when the cluster has one; every figure a decimal string.
{
steps: {
[key: string]: StepEstimate
},
fuel: string,
cost?: string,
priceVersion?: integer
}RunList
GET /apps/{app}/runs: a page of the app's compute runs, newest first, and the cursor of the next page (null: none).
{
runs: Run[],
next: string | null
}PipelineSettings
GET /apps/{app}/pipeline-settings: the days a pipeline run's final outputs are held after it ends.
{
resultDays: integer
}PipelineSettingsSet
What PUT /apps/{app}/pipeline-settings answers: the days and the app log's entry.
{
resultDays: integer,
index: integer
}SecretCleared
What DELETE /apps/{app}/secrets/{name} answers: the app log's entry.
{
name: string,
index: integer
}SecretSet
What PUT /apps/{app}/secrets/{name} answers: the value's fingerprint and the app log's entry.
{
name: string,
fingerprint: string,
index: integer
}ServedOrigins
GET /ops/served-origins: the origins the operator serves frontends on, each with its host, its package's label and when it was added (RFC 3339).
{
fresh: boolean,
origins: {
origin: string,
host: string,
label: string,
addedAt: string
}[]
}SignedPipelineReceipt
GET /apps/{app}/pipeline-runs/{run}/receipt: a pipeline run's receipt (calimero_client::receipt::PipelineReceipt) with the signature of the answering node's receipt key over it.
{
receipt: any,
node: integer,
signature: string
}StepEstimate
One step's estimate: its runs, fuel and (with a price table) cost, as decimal strings.
{
runs: string,
fuel: string,
cost?: string
}SystemRecovered
What POST /ops/recover answers: the apps and accounts the system state was founded with again, and the index of the system file it came from.
{
apps: integer,
accounts: integer,
index: integer
}UndoDone
What POST /apps/{app}/undo answers: each app group restored (its restore point's index, null when none), whether every group takes calls again, and each app reverted.
{
app: string,
groups: {
[key: string]: integer | null
},
restored: boolean,
apps: UndoPart[]
}UndoView
GET /apps/{app}/undo: whether the app's last upgrade may be undone now (else the refusal's reason), until when, and each app it reverts.
{
app: string,
available: boolean,
reason: {
code: string,
message: string
} | null,
undoUntil?: integer,
apps: UndoPart[]
}UpdateView
GET /apps/{app}/update: the release the instance runs, the update available to it (with the classifier's verdict), who may approve it, the policy in force and the live first approvals.
{
app: string,
running: {
package: string,
version: string
} | null,
available: {
package: string,
version: string,
source: "deployment" | "release",
class?: "green" | "red",
reasons?: UpdateReason[],
egress?: {
before: string[],
after: string[],
added: string[],
removed: string[]
} | null,
stateVersionChanged?: boolean | null,
newMethods?: string[] | null,
removedMethods?: string[] | null,
signerChanged?: boolean | null,
summary?: string,
approvalsNeeded: integer,
approvedBy?: string
} | null,
unit: boolean,
mayApprove: boolean,
approvers: "owner-and-admins" | "operator" | "managers",
policy: {
autoApply: "never" | "noDestinations",
holdHours: integer,
secondApprover: boolean,
source: "app" | "org" | "default"
},
pendingApprovals: PendingApproval[],
deployment: DeploymentShown | null
}UpgradeApplied
What POST /apps/{app}/upgrade answers: the app log's entry, how it ended, the app's error (null when it ended ok) and whether the release ships a compute component.
{
index: integer,
status: "ok" | "appError" | "trap",
error: any,
compute: boolean
}ViewResult
What a view (/views) answers: the log index it read at, the app's result, and the answering node's receipt.
{
index: integer,
result: any,
receipt: Receipt
}WatchAdded
POST /apps/{app}/watches: the watch's id, which the stream's frames name, the app's last entry in the state the view read (a last to resume from) and the view's answer.
{
sub: string,
index: integer,
answer: any
}XcallsReport
GET /apps/{app}/xcalls: messages waiting, and those never delivered.
{
pending: integer,
deadLetters: DeadLetter[]
}BytesEgress
GET /apps/{app}/egress/bytes: whether the app's release declares bytes.egress, and the owner's switch as last set (absent while it never was: off).
{
declared: boolean,
switch: {
on: boolean,
by: string,
atMs: integer,
epoch: integer
} | null
}BytesEgressLog
GET /apps/{app}/egress/bytes/log: the last 1,000 rows of streams to callers outside the owner and the organization's members, oldest first (GET /apps/{app}/export/log answers the same shape for the exports of the owner and members, each row one export): refs (the first 16 distinct files, hex), refCount, by (account:<id>, key:<id>, visitor:<key> or public), bytes, atMs and count (the identical streams of that caller within a minute of the first that the row folds, bytes their sum); totals count every stream ever logged, which the trimming of rows does not lower.
{
rows: {
seq: integer,
refs: string[],
refCount: integer,
by: string,
bytes: integer,
atMs: integer,
count: integer
}[],
totals: {
rows: integer,
bytes: integer
}
}Logged
A change logged on the app: the index of its entry.
{
index: integer
}VersionDeadline
A mero-tee release's end-of-new-work deadline: after RFC 3339, afterSecs Unix seconds.
{
version: string,
after: string,
afterSecs: integer
}BundleStored
POST /bundles: the stored WASM's hash (development only).
{
hash: string
}ClusterReleases
GET /releases: the cluster's governance and the deadlines set on mero-tee releases, oldest release first.
{
governance: Governance,
deadlines: VersionDeadline[]
}ConsentRequestMade
POST /consent/requests: the request, the page to send the person to, when it lapses and the code the page shows.
{
requestId: string,
url: string,
code: string,
expiresAt: integer
}ConsentResult
GET /consent/{request}/result: the request's decision (decidedAt null while it is pending) and, once approved, what the approval made.
{
requestId: string,
kind: "release" | "upgrade" | "upgradeUnit" | "delegate" | "outbound" | "createOrg" | "createInvite" | "acceptInvite" | "leaveOrg" | "removeMember" | "setMemberRole" | "setMemberTeams" | "removeMemberTeams" | "revokeInvite" | "renameOrg" | "deleteOrg" | "setCapabilities" | "setAllApps" | "setEgress" | "install" | "updatePolicy" | "updates" | "createPublicLink" | "revokePublicLink",
status: "pending" | "approved" | "declined",
decidedAt: integer | null,
outcome?: {
orgId?: string,
teamId?: string,
token?: string,
org?: string,
name?: string,
apps?: string[],
appId?: string,
links?: {
[key: string]: string
},
app?: string,
link?: string
}
}Health
GET /health, in the clear: the node, the system group's leader (null: none known), its release, the newest cluster version it supports and the cluster's rollback epoch (null: a node without a rollback counter).
{
ok: boolean,
node: integer,
systemLeader: integer | null,
release: string,
clusterVersion: string,
rollbackEpoch: integer | null
}InviteRedeemed
What redeeming an invite answers: the organization joined; for an instance invite, the instance and whether the account is a member of its organization (else a guest).
{
app?: string,
org: string,
member?: boolean
}OriginList
GET /package-origins/{package}: the origins registered for a package.
{
package: string,
origins: PackageOrigin[]
}AppOriginList
GET /apps/{app}/origins: the origins registered for an instance.
{
app: string,
origins: PackageOrigin[]
}OriginRemoved
What removing an origin answers.
{
package: string,
origin: string,
removed: boolean
}PackageInstalled
A release installed: its package, version, pinned signer and services (name to bundle hash).
{
package: string,
version: string,
signerId: string,
services: {
[key: string]: string
}
}PackageList
The packages the caller may see.
{
packages: Package[]
}PipelineError
One error in a pipeline: where (a path into it, empty for the whole), its code and what is wrong.
{
path: string,
code: string,
message: string
}PipelineValidation
POST /pipelines/validate: whether the pipeline compiles (and, against a release, checks), every error, its canonical JSON, and its worst-case fuel and cost (decimal strings).
{
ok: boolean,
errors: PipelineError[],
pipeline?: any,
worstCaseFuel?: string,
worstCaseCost?: string
}PublisherBinding
Which organization publishes the packages a signing key signs.
{
signerId: string,
cluster: string,
generation: integer,
bound: boolean
}SignUpInviteList
The cluster's sign-up policy and live invites (keys and terms, never a token), and who runs sign-up (owner or operator).
{
signUp: SignUpState,
runBy: "owner" | "operator",
invites: SignUpInvite[]
}SignUpInviteMade
A sign-up invite the owner just made: its terms, then its token, answered this once.
{
inviteKey: string,
uses: integer,
expiresAt: string,
expiresAtSecs: integer,
createdBy: string,
createdAt: string,
token: string
}FrontendDigests
GET /packages/{package}/{version}/frontend: the release's frontend entry and every file, by path relative to the frontend root, with its SHA-256 (lowercase hex) and size in bytes.
{
package: string,
version: string,
entry: string,
files: FrontendFileDigest[]
}FrontendFileDigest
One frontend file: its path relative to the frontend root (served at /{version}/{path}), its SHA-256 (lowercase hex) and its size in bytes.
{
path: string,
sha256: string,
size: integer
}SignUpPublic
GET /sign-up: the policy and what it implies, the cluster's name and the tag a sign-in uses to pick the person's passkey for it.
{
policy: SignUp,
orgInvites: boolean,
signUpInvites: boolean,
inviteRequired: boolean,
cluster: string,
passkeyTag: string
}AccountOrg
One organization of an [AccountView]: the caller's role; personal is always false (a 1.0 cluster has no personal organization), kept for older clients.
{
orgId: string,
name: string,
role: OrgRole,
personal: boolean
}AccountPasskey
One passkey of an [AccountView]: its label, and when it was added and last signed in (null: before the node kept it).
{
id: string,
signCount: integer,
label: string | null,
addedAt: integer | null,
lastSignInAt: integer | null
}AccountRecoveryPending
An account recovery under way: the passkey it would add, when it started and when it may finish (Unix seconds).
{
accountId: string,
credentialId: string,
startedAt: integer,
readyAt: integer
}AccountUsage
GET /auth/usage: what the account uses against the quotas, and its developer usage today (64-bit sums as decimal strings).
{
apps: integer,
bundleBytes: string /* decimal */,
apiKeys: integer,
orgsOwned: integer,
fileBytes: {
[key: string]: integer
},
quotas: Quotas,
developerFuelToday: string /* decimal */,
developerWritesToday: string /* decimal */
}AccountView
GET /auth/me: the caller's account, its passkeys and organizations, how the caller came and its recovery state.
{
accountId: string,
name: string,
passkeys: AccountPasskey[],
orgs: AccountOrg[],
via: "session" | "apiKey",
passkeyId: string | null,
app: string | null,
origin: string | null,
recoveryCode: boolean,
recoveryPending: AccountRecoveryPending | null
}ActivityList
GET /auth/activity: what the account's passkeys did, newest first.
{
activity: ActivityView[]
}ActivityView
One activity entry: a sign-in (its package and origin) or an approval (its method and subject), every key present, those its kind does not have null.
{
at: integer,
passkey: string,
kind: "signIn" | "approval",
app: string | null,
origin: string | null,
method: string | null,
subject: string | null
}AliasList
GET /auth/aliases: the account's names for apps.
{
aliases: {
[key: string]: string
}
}AliasView
GET /auth/aliases/{alias}.
{
alias: string,
appId: string
}ApiKeyList
GET /auth/apikeys: the account's keys, never a key itself.
{
keys: ApiKey[]
}ApiKeyMade
POST /auth/apikeys: the key, answered once, and what the calls made with it answered.
{
keyId: string,
key: string,
then: {
index: integer,
result: any,
receipt: Receipt
}[]
}PasskeyAdded
A passkey added to the account.
{
credentialId: string
}PasskeyChallenge
A WebAuthn ceremony begun: its challenge id, and the options to hand the browser as they are (navigator.credentials.create or .get; WebAuthn's shape, not this API's).
{
challengeId: string,
options: any
}RecoveryCode
POST /auth/recovery: the account's recovery code, shown once.
{
code: string
}SessionList
GET /auth/sessions: the account's live sessions, latest active first.
{
sessions: SessionView[]
}SessionView
One live session: its passkey, the package and origin it is bound to, when it opened (null: before the node kept it), when it was last active and whether it is the caller's.
{
session: string,
passkey: string | null,
app: string | null,
origin: string | null,
openedAt: integer | null,
lastActiveAt: integer,
current: boolean
}SessionsRevoked
What RevokeAllSessions answers: how many sessions ended.
{
revoked: integer
}AppOffered
What OfferApp answers: the offer now in force.
{
deployment: string,
app: string,
offer: Offer
}AppTeamList
GET /orgs/{org}/app-teams: the organization's mode and its app teams.
{
mode: "legacy" | "standalone" | "shared",
appTeams: AppTeamRow[]
}AppTeamsScoped
What ScopeApps answers: the organization's mode after, and each package's app team.
{
mode: "legacy" | "standalone" | "shared",
teams: ScopedTeam[]
}AppWithdrawn
What WithdrawApp answers.
{
deployment: string,
app: string
}DeployerGranted
What GrantDeployer answers: the grant's key, whom it names and its terms.
{
key: string,
deployer: Deployer,
grant: DeployerGrant
}DeployerList
GET /deployers: the cluster's deployment rules, its owner and every grant.
{
deployments: "open" | "granted",
deployers: "operator" | "owner",
owner: Deployer | null,
grants: DeployerGrantView[]
}DeployerRevoked
What RevokeDeployer answers: the key of the grant withdrawn.
{
key: string
}DeploymentCreated
POST /deployments: the record the log made, and its frontend host.
{
id: string,
deployment: DeploymentRecord,
host: string | null
}DeploymentDeleted
What DeleteDeployment answers.
{
deployment: string
}DeploymentOffered
POST /deployments/{id}/transfer: the offer as logged (offeredAt: Unix seconds).
{
deployment: string,
transfer: {
to: Deployer,
offeredBy: string,
offeredAt: integer
}
}DeploymentAccepted
POST /deployments/{id}/transfer/accept: its new owner, the owner it came from, and the secret names whose values were dropped.
{
deployment: string,
owner: Deployer,
from: Deployer,
secretsDropped: string[]
}DeploymentTransferCancelled
DELETE /deployments/{id}/transfer.
{
deployment: string
}DeploymentList
GET /deployments.
{
deployments: Deployment[],
offered: {
id: string,
name: string,
owner: "account" | "org",
ownerName: string | null,
apps: {
app: string,
package: string,
version: string
}[],
to: Deployer,
offeredAt: string,
expiresAt: string
}[]
}DeploymentOrgs
GET /deployments/{id}/orgs: the customer organizations, by counts only.
{
deployment: string,
orgs: DeploymentCustomer[],
outsideOrgs: integer
}DeploymentSecretCleared
What ClearDeploymentSecret answers.
{
deployment: string,
name: string
}DeploymentSecretSet
What SetDeploymentSecret answers: never the value, its fingerprint.
{
deployment: string,
name: string,
fingerprint: string,
setBy: string,
setAt: integer
}DeploymentSecrets
GET /deployments/{id}/secrets: each name its offers declare or it holds a value for.
{
deployment: string,
secrets: {
[key: string]: DeploymentSecretView
}
}EgressSet
What SetEgress answers: the switch as set, the organization's own, and the instance when one was named.
{
org: string,
app?: string,
egress: boolean,
orgEgressOff: boolean
}InviteList
GET /orgs/{org}/invites.
{
invites: InviteView[]
}InviteMade
POST /orgs/{org}/invites: the invite's token, answered once.
{
token: string
}OrgCreated
What CreateOrg answers: the new organization, and its app team when it is made with one (the consent page's createOrg for a package).
{
orgId: string,
teamId?: string
}OrgDeleted
What DeleteOrg answers: the instances deleted with it.
{
apps: string[]
}MemberSecurityList
GET /orgs/{org}/members?detail=security: each member the caller sees, with what tells whether their account is safe.
{
orgId: string,
members: MemberSecurity[]
}OrgRenamed
What RenameOrg answers.
{
orgId: string,
name: string
}OrgSettingsSet
What SetOrgSettings answers: the settings after the change.
{
org: string,
allowGuests: boolean,
allowPublicLinks: boolean
}OrgUpdates
GET /orgs/{org}/updates: a page of its apps with an update or a pending approval, each as GET /apps/{app}/update shows it with its name, and the organization's policy.
{
org: string,
policy: UpgradePolicy,
updates: any[],
next: string | null
}OrgUsage
GET /orgs/{org}/usage: the apps billed to it, its developer usage today (decimal strings) and the cluster's quotas.
{
apps: integer,
developerFuelToday: string /* decimal */,
developerWritesToday: string /* decimal */,
quotas: Quotas
}PublicDeployment
GET /deployments/{id}, public: its name, whose it is, and what it offers.
{
id: string,
host: string | null,
name: string,
owner: DeploymentOwner,
apps: PublicDeploymentApp[]
}PublisherBound
What BindPublisher answers: the key's binding generation now.
{
generation: integer
}RecoveryFinished
What an organization recovery's finish answers: the organization and the owners it replaced.
{
org: string,
previousOwners: string[]
}RecoveryStarted
What an organization recovery's start answers: when it started and when it may finish (Unix seconds).
{
startedAt: integer,
readyAt: integer
}TeamCreated
What CreateTeam answers.
{
teamId: string
}TeamDeleted
What DeleteTeam answers: the teams deleted (the team and those below it), the instances deleted with them, and with keepApps those kept instead (apps then empty).
{
teams: string[],
apps: string[],
keptApps?: string[]
}AppTeamRow
One app team: its package, how many are in it, the capabilities a new member gets (null: the organization's), and whether the caller is in it or manages it.
{
package: string,
teamId: string,
name: string,
join: TeamJoin,
memberCount: integer,
defaultCapabilities: integer | null,
member: boolean,
manages: boolean
}CustomerApp
An app a customer runs from the deployment, and its version.
{
app: string,
version: string
}DeployerGrantView
A deployer grant: whom it names (null: a key no deployer parses), until when (until RFC 3339, untilSecs Unix seconds; null: no end), who granted it and when.
{
key: string,
deployer: Deployer | null,
until: string | null,
untilSecs: integer | null,
grantedAt: string,
grantedBy: string
}DeploymentCustomer
A customer organization of a deployment, by counts only: its members, those active in the last 30 days, its instances and the releases they run, and when its first was made (RFC 3339).
{
orgId: string,
name: string | null,
memberCount: integer,
activeMembers30d: integer,
instances: integer,
apps: CustomerApp[],
firstCreatedAt: string
}DeploymentOffer
An app a deployment offers, as its managers list it: the release, who offered it and when (RFC 3339).
{
app: string,
package: string,
version: string,
addedBy: string,
addedAt: string
}DeploymentOwner
Whose deployment it is: an account or an organization, and its name (null: gone).
{
kind: "account" | "org",
name: string | null
}DeploymentSecretView
A secret of a deployment, never its value: the offered apps and releases that declare it, whether a value is set, and its fingerprint, setter and time when it is.
{
apps: string[],
declaredBy: SecretDeclarer[],
set: boolean,
fingerprint?: string,
setBy?: string,
setAt?: integer
}InviteView
An organization invite as its list shows it, never its token: createdBy/createdAt null for one made before they were kept.
{
inviteKey: string,
role: OrgRole,
teams: string[],
usesLeft: integer,
expiresAt: integer,
expired: boolean,
createdBy: string | null,
createdAt: integer | null,
allApps: boolean
}MemberSecurity
A member as the security listing shows them: their teams, how many passkeys (a number below 3, else "3+"), whether they hold a recovery code, the last UTC day they were active (null: never seen) and their live sessions.
{
account: string,
name: string | null,
role: OrgRole,
teams: string[],
passkeys: integer | "3+",
recoveryCode: boolean,
lastActiveDay: string | null,
sessions: integer
}Offer
An app a deployment offers: the release new instances run, who offered it and when (Unix seconds).
{
package: string,
version: string,
addedBy: string,
addedAt: integer
}PublicDeploymentApp
An app a deployment offers, and the release its new instances run.
{
app: string,
package: string,
version: string
}ScopedTeam
One package's app team after a scope: whether it was made, the instances moved onto it, the rows added, how it is joined now (null: not changed) and how many lost it by a close.
{
package: string,
teamId: string,
created: boolean,
apps: string[],
added: integer,
join: TeamJoin | null,
dropped: integer
}SecretDeclarer
A release that declares a secret.
{
package: string,
version: string
}Error
An error answer: error is the code. details, absent for most codes, has the schema x-calimero-details names for the code on the operation's response (every code's: x-calimero-error-details at the document's root); a code it names no schema for carries none, or a value clients need not read.
{
status: integer,
error: string,
message: string,
details?: any
}Confirm
A passkey assertion over the challenge a 412 CONFIRM_REQUIRED named: the same request sent again with it approves exactly that request.
{
challengeId: string,
assertion: Assertion
}ConfirmRequired
details of a 412 CONFIRM_REQUIRED: the WebAuthn challenge to sign under rpId with one of the passkeys allowCredentials names (credential ids; empty: any of the account's), and the challengeId the retry's confirm names. apps: deleting a team that holds apps, the apps that go with it. then: making an API key with follow-ups, the calls the passkey approves, key:<keyId> written in.
{
challengeId: string,
challenge: string,
rpId: string,
allowCredentials: string[],
apps?: string[],
then?: {
app: string,
method: string,
args: any
}[]
}OperatorProof
The operator key's Ed25519 signature (hex) over the statement a 428 OPERATOR_SIGNATURE_REQUIRED named, with that statement's nonce.
{
nonce: string,
signature: string
}OperatorSignatureRequired
details of a 428 OPERATOR_SIGNATURE_REQUIRED: the statement to sign (args is the JSON text of its arguments, as signed) and the exact bytes to sign (message, standard base64).
{
subject: string,
method: string,
args: string,
nonce: string,
cluster: string,
message: string
}Assertion
The browser's answer to navigator.credentials.get, each field base64url.
{
credentialId: string,
authenticatorData: string,
clientDataJson: string,
signature: string
}Registration
The browser's answer to navigator.credentials.create, each field base64url.
{
attestationObject: string,
clientDataJson: string
}Session
A session: its token (15 minutes, by the issuing node) and the refresh token for /auth/refresh. then: what each step-up a sign-in approved with it answered, in order.
{
accountId: string,
sessionToken: string,
expiresAt: integer,
refreshToken: string,
then?: {
index: integer,
org: string,
result?: any,
error?: any
}[]
}BackupKeyAnswer
A holder's backup key: who holds it ({ kind: "operator" }, { kind: "org", id } or { kind: "account", id }), the X25519 public key the recovery disk seals their apps' backups to (null while none is set), and how many apps that covers.
{
holder: {
kind: "org",
id: string
} | {
kind: "account",
id: string
} | {
kind: "operator"
},
key: {
publicKey: string,
setAt: integer,
setBy: string
} | null,
apps: integer
}Applied
An entry an app's log applied: its index, how it ended and the app's error (null when it ended ok; the app's own error value otherwise, free-form). details of a 422 UPGRADE_FAILED.
{
index: integer,
status: "ok" | "appError" | "trap",
error: any
}NotLeader
details of a 421 NOT_LEADER: the leader's URL to send the same request to, and its node id where known.
{
leaderUrl: string,
leader?: integer
}FollowUpFailed
details of a 422 FOLLOW_UP_FAILED: the API key's follow-up that failed (index in then, its app and method) and the error it answered, the follow-ups before it, which applied (applied, their indexes), and the failed one again in unknown when its answer (a 5xx, after it was sent again under its own key) could not say whether it applied; no key was made.
{
index: integer,
app: string,
method: string,
error: {
status: integer,
error: string,
message: string,
details?: any
},
applied: integer[],
unknown: integer[]
}FeatureNotActive
details of a 409 FEATURE_NOT_ACTIVE: the feature the request needs, the cluster version it ships in (needs) and the version active now (null: none logged, and the nodes could not say).
{
feature: string,
needs: string,
active: string | null
}RuntimeTooOld
details of a 409 RUNTIME_TOO_OLD: the runtime the release needs and the replicas known to fall short of it, each with what it runs (a version, or { before }: a release older than that one).
{
minRuntimeVersion: string,
nodes: {
node: integer,
runtime: string | {
before: string
}
}[]
}VersionRequired
details of a 400 VERSION_REQUIRED for a package named with no version and no release of it the caller may use (other VERSION_REQUIRED answers carry none): notVisible, one is installed that a session the package's frontend opened may use (a release recorded before releases were public or private), so open it from there or install it yourself; notInstalled, none is, or only a private release the caller may not see, which answers the same so nothing of it shows.
{
reason: "notInstalled" | "notVisible"
}ReleaseDeadline
details of a 409 RELEASE_DEADLINE: the mero-tee release whose deadline passed, and the deadline (after RFC 3339, afterSecs Unix seconds). Approving that release (or a newer one) lifts it.
{
release: string,
after: string,
afterSecs: integer
}UpgradePending
details of a 409 UPGRADE_PENDING: the release every node must run first, and the nodes that run an older one (release null: one this node could not attest).
{
release: string,
nodes: {
node: integer,
release: string | null
}[]
}AppError
details of a 422 APP_ERROR: the app's error code, its fields (the app's own value, free-form: the object its ABI declares for the error, or the app's message as a string when that is not JSON), and the log index of the call (absent when the node refused it before it ran: UnknownMethod, WrongKind, Forbidden, ConfirmNotAView, NotAView, ConfirmRequired).
{
index?: integer,
code: string,
fields: any
}Trap
details of a 422 TRAP: the log index of the run, how it trapped, and the engine's account of it.
{
index: integer,
kind: "OutOfFuel" | "Timeout" | "Cancelled" | "Unavailable" | "OutOfMemory" | "StackOverflow" | "Fault" | "HostDenied",
detail: string
}InitFailed
details of a 422 INIT_FAILED: the app made, and the error its init ended with (the app log's, free-form).
{
appId: string,
error: any
}RecoveryNotReady
details of a 409 RECOVERY_NOT_READY: when the recovery may finish (Unix seconds).
{
readyAt: integer
}UploadPosition
details of a 409 PART_CONFLICT, 409 PART_OUT_OF_ORDER or 409 UPLOAD_INCOMPLETE: the part the upload expects next.
{
next: integer
}RetryAfter
details of a 503 TIMEOUT, 503 FILES_UNAVAILABLE, 503 BYTES_UNAVAILABLE, 429 TOO_MANY_BODIES or a 429 RATE_LIMITED that carries Retry-After: the seconds to wait before sending the same request (with the same idempotency key) again.
{
retryAfter: integer
}ServiceRefused
details of a 400 UNSUPPORTED_BUNDLE, 400 BAD_BUNDLE, 400 COMPUTE_ABI_MISMATCH or 422 COMPILE_TIMEOUT refusing one service of a release: the service, and compute: true when it was that service's compute component. Absent when the refusal is of a raw bundle.
{
service: string,
compute?: boolean
}SealedRefusal
The sealed channel's own refusal, outside the envelope and in the clear: not an Error. busy (503, with Retry-After: 1): too many sealed requests or sessions at once, send it again; resent_request_may_have_run (409): a resend after unknown_session whose original request this node may already have run, so it is not run again; the other codes (400, malformed and the like) say the envelope could not be opened.
{
error: {
code: string,
message: string
}
}Receipt
The answering node's signature (receipt key, hex) over (app, index, SHA-256(JCS(result)), node).
{
app: string,
index: integer,
resultHash: string,
node: integer,
key: string,
signature: string
}Grant
One way into an instance; an instance's grants are a list of them, and none is its owner alone. org: every member of its organization (not beside a team grant); team: members of that team; account: one person, a member of the organization (a named member) or not (a guest, admitted only while the instance's release says guests: allowed and its organization's allowGuests is on), with an optional scope the app defines and reads for its caller (opaque JSON, at most 256 bytes; the platform admits, the app scopes); anyone: any signed-in account, a member or not; never a caller without an account, who comes in only through a public link; site: the sessions opened on one of the instance's own registered origins (/apps/{app}/origins), while that registration holds, never a session of the cluster's own page or of another instance's origin (once per list; needs cluster version siteGrants); link: a public link, whose token's holders call the instance's public methods as anonymous visitors (its key, never a token; made and revoked on /apps/{app}/public-links only, shown to whoever may change the instance's access, and kept as they are by POST /apps/{app}/access). At most 16 teams and 1000 accounts.
{
kind: "org"
} | {
kind: "team",
team: string
} | {
kind: "account",
account: string,
scope?: any
} | {
kind: "anyone"
} | {
kind: "site"
} | {
kind: "link",
link: string,
label?: string,
expiresAt?: integer,
ratePerMinute: integer,
createdBy: string,
createdAt: integer
}OrgRole
A member's role in an organization.
"guest" | "member" | "admin" | "owner"TeamRole
A member's standing in one team.
"lead" | "member" | "readOnly"TeamJoin
Open (everyone who reaches the parent) or restricted (invite) membership.
"everyone" | "invite"OutboundSelection
manifest (every prefix the release declares) or these prefixes.
"manifest" | string[]Deployer
An account or an organization.
{
account: string
} | {
org: string
}SignUp
The cluster's sign-up policy.
"open" | "invite" | "closed"Page
A page of a list: next is the after of the next page, null on the last.
{
next: string | null
}Release
A mero-tee release.
{
version: string,
profile: string
}AttestationDoc
A node's attestation: the TDX quote (base64), the key it binds (hex) and what it was asked for. receiptKey and governance with purpose=receipts, kms with purpose=kms on a node with a KMS record, clusterIdentity with purpose=orchestrator, interval with form=interval (the quote is then the node's interval quote); jobKey and scratch (where it keeps its runs' files: kms-disk with kms.disk, memory, or sealed under a key it holds in memory) only from a job node, never from this API.
{
quote: string,
transportKey: string,
appHash: string,
nonce: string,
release: Release,
cluster: string,
node: integer,
mock: boolean,
receiptKey?: string,
governance?: Governance,
kms?: KmsKeys,
jobKey?: string,
clusterIdentity?: string,
interval?: IntervalProof,
scratch?: string
}IntervalProof
With form=interval: the node's interval key (Ed25519, hex) that its quote binds, the quote's own nonce (hex) and when it was made (Unix seconds), and that key's signature (hex) over the request's nonce, app hash and transport key.
{
key: string,
quoteNonce: string,
issuedAt: integer,
signature: string
}KmsKeys
What a node verified of the mero-kms replicas it took its keys from: the storage key merod fetched, and the data disk's key the boot script fetched; each absent without a record.
{
storage?: KmsEvidence,
disk?: KmsEvidence
}KmsEvidence
The KMS quote a node accepted a key under: the KMS host, the mero-kms release (and image profile) whose signed policy it matched, the quote's registers (hex), its TCB status, SHA-256 and when it was verified (Unix seconds); mock (absent: false) in development builds only.
{
kmsHost: string,
release: string,
profile?: string,
mrtd: string,
rtmr0: string,
rtmr1: string,
rtmr2: string,
rtmr3: string,
tcbStatus?: string,
quoteSha256: string,
verifiedAt: integer,
mock?: boolean
}GroupStatus
A Raft group's status as one node sees it: the leader (null: none known), whether this node is it, the term, the last log index (null: an empty log), the applied index, and the voters and learners.
{
group: integer,
leader: integer | null,
is_leader: boolean,
term: integer,
last_log: integer | null,
applied: integer,
voters: integer[],
learners: integer[]
}RollbackStatus
A node's rollback counter: the cluster's epoch (rollbacks forced so far), its generation and mark, whether this start was forced (--accept-rollback), and the seconds since mero-kms last acknowledged a checkpoint.
{
epoch: integer,
generation: integer,
mark: integer,
forced: boolean,
sinceCheckpointSecs: integer
}NodeRole
What a node does: hold app replicas, or run compute jobs.
"replica" | "job"NodeRecord
A registered node: its id, address, zone, role and (a job node's) compute pool, absent for none.
{
id: integer,
addr: string,
zone: string,
role: NodeRole,
pool?: string
}Quotas
The per-account limits, and the compute and file limits of each organization (or personal account) that has no override. maxFuelPerDeveloperPerDay (0: no limit) is a decimal string; the others are JSON numbers. maxTeamsPerOrg, maxMetadataBytesPerOrg and maxMetadataBytesPerAccount bound what an organization, and the organizations an account owns, keep in the system state. maxBodiesPerAccount, the maxViewStreams* and maxAnonymousViewStreams* shares and maxEgressStartsPerMinute cap the byte bodies, view streams and starts of bytes egress a node admits; each is at least 1, a share is at most the node's, and a change applies to the next body or stream (409 UPGRADE_PENDING while a node runs an earlier release and a cap is not its default).
{
maxAppsPerAccount: integer,
maxBundleBytesPerAccount: integer,
maxApiKeysPerAccount: integer,
maxOrgsPerAccount: integer,
maxAccounts: integer,
maxFileBytesPerOrg: integer,
maxConcurrentRunsPerOrg: integer,
computeFuelPerOrg: integer,
maxFuelPerDeveloperPerDay: string /* decimal */,
maxTeamsPerOrg: integer,
maxMetadataBytesPerOrg: integer,
maxMetadataBytesPerAccount: integer,
maxBodiesPerAccount: integer,
maxViewStreamsPerNode: integer,
maxViewStreamsPerAccount: integer,
maxViewStreamsPerApp: integer,
maxAnonymousViewStreamsPerApp: integer,
maxAnonymousViewStreamsPerNode: integer,
maxEgressStartsPerMinute: integer
}OrgQuotas
One payer's limits in place of the cluster's; a limit left out is the cluster's.
{
maxConcurrentRuns?: integer,
computeFuel?: string /* decimal */,
maxFileBytes?: integer
}QuotaSettings
GET /ops/quotas: the cluster's limits and, under orgs, each payer's overrides by payer id.
{
maxAppsPerAccount: integer,
maxBundleBytesPerAccount: integer,
maxApiKeysPerAccount: integer,
maxOrgsPerAccount: integer,
maxAccounts: integer,
maxFileBytesPerOrg: integer,
maxConcurrentRunsPerOrg: integer,
computeFuelPerOrg: integer,
maxFuelPerDeveloperPerDay: string /* decimal */,
maxTeamsPerOrg: integer,
maxMetadataBytesPerOrg: integer,
maxMetadataBytesPerAccount: integer,
maxBodiesPerAccount: integer,
maxViewStreamsPerNode: integer,
maxViewStreamsPerAccount: integer,
maxViewStreamsPerApp: integer,
maxAnonymousViewStreamsPerApp: integer,
maxAnonymousViewStreamsPerNode: integer,
maxEgressStartsPerMinute: integer,
orgs: {
[key: string]: OrgQuotas
}
}UpgradePolicy
How an organization's owner and admins let an app's updates apply (POST /orgs/{org}/upgrade-policy, POST /apps/{app}/upgrade-policy); every field is answered; a request may leave any out (its default). secondApprover (default off): a red update needs two distinct owners or admins. autoApply (default never; noDestinations: a green update that removes no method and moves none of the apps it created, of an app whose unit has no destinations before or after it, so no data leaves Calimero) and holdHours (24 to 168, default 24): such an update applies on its own once holdHours have passed since the release was logged (its install, or its deployment's offer), after a restore point.
{
autoApply: "never" | "noDestinations",
holdHours: integer,
secondApprover: boolean
}PolicyView
An update policy at one scope: the organization's (app absent) or an app's. policy is the one in force; source where it comes from (the app's own, its organization's, or the defaults); own the one set at this scope, null for none.
{
org: string,
app?: string,
policy: UpgradePolicy,
source: "app" | "org" | "default",
own: UpgradePolicy | null
}PendingApproval
A first approval of a red update waiting for its second (POST /apps/{app}/upgrade-approvals): the app approved (app), its target, a unit's members' (targets, by app), who approved and when, when it lapses (expiresAt, a week on), and the class its approver was shown.
{
app: string,
package: string,
version: string,
targets: {
[key: string]: {
package: string,
version: string
}
},
by: string,
at: integer,
expiresAt: integer,
class: "green" | "red",
reasons: UpdateReason[]
}UnitMember
An app of a unit, by its path from the instance: its app id (absent on a release's card, where no app exists), the release it runs or would run, that release's signer, and the destinations it alone may send data to.
{
app?: string,
package: string,
version: string,
signer: string,
destinations: string[]
}UpdateReason
Why an update is red (calimero_bundle::update::Reason): member names a member by its path, null for the instance itself. secretBindingChanged: the release declares secret name it did not (before null) or binds it elsewhere (another host or place, or a path its earlier binding did not cover; fewer paths is not a change), each binding in one line. unclassified: the release a part runs or moves to (package, version) is no longer installed, so the update could not be classified and is taken as red. pinsLineage: the part, not pinned yet, moves into a release of package declaring lineage: pinned, so from then on it moves only to that package's newer releases by the same publisher. bytesEgress: the part moves into a release of package declaring bytes.egress from one that does not, so its views may stream bytes to callers outside the organization once the owner turns that on.
{
code: "signerChanged",
member: string | null,
from: string,
to: string
} | {
code: "egressAdded",
destinations: string[]
} | {
code: "stateVersionChanged",
member: string | null,
from: integer | null,
to: integer | null
} | {
code: "memberAdded",
member: string,
package: string,
egress: string[]
} | {
code: "memberRemoved",
member: string,
package: string,
egress: string[]
} | {
code: "delegatedMethodsAdded",
member: string | null,
package: string,
methods: string[]
} | {
code: "secretBindingChanged",
member: string | null,
name: string,
before: string | null,
after: string
} | {
code: "pinsLineage",
member: string | null,
package: string
} | {
code: "bytesEgress",
member: string | null,
package: string
} | {
code: "unclassified",
member: string | null,
package: string,
version: string
}RestorePoint
An app's one undo (POST /apps/{app}/undo): the release and bundle its last upgrade moved it from (fromRelease, fromBundle) and to, when (at, the start of the week to undo it) and by whom (policy:auto-update for an update that applied on its own), the run it was part of (a unit's members undo with their instance), the app group's snapshot (file: the node that holds it, absent where the upgrade ran nothing on the group) and undoneAt while an undo's restore is under way.
{
fromBundle: string,
fromCompute?: string,
fromRelease?: PackageRef,
toBundle: string,
toRelease?: PackageRef,
at: integer,
by: string,
run?: string,
file?: {
node: integer,
group: integer,
source: {
name: string,
sha256: string,
index: integer
}
},
undoneAt?: integer
}UndoPart
One app an undo reverts: the release it leaves (from) and returns to (to, toBundle), when it was upgraded and by whom (auto: on its own), until when it may be undone, its restore point, and what the undo loses (lostWrites: the app group's entries since the restore point, its last write, and any: whether it wrote since the upgrade, read from a majority of the replicas the app is on now, the furthest counting, never from the restore point's node alone; each of them null when nobody can say, never false for writes it cannot see; lostWrites itself null while the restore point's node does not answer, which unavailable then says).
{
app: string,
from: PackageRef | null,
to: PackageRef | null,
toBundle: string,
upgradedAt: integer,
upgradedBy: string,
auto: boolean,
undoUntil: integer,
restorePoint: {
node: integer,
index: integer,
sha256: string
} | null,
undoneAt: integer | null,
lostWrites: {
entriesSince: integer | null,
lastWriteAt: integer | null,
any: boolean | null
} | null,
unavailable: {
code: string,
message: string
} | null
}OutboundAuditEntry
One outbound request of an instance: atMs (Unix milliseconds, the node's clock), method, host and path (no query string, at most 128 bytes, pathTruncated when cut; both empty for a URL that did not parse), the host's status or, absent that, the failure that stopped it (malformed, refused by a gate, notApproved, awaitingApproval, egressOff (egress turned off), secret (a credential binding refused, or a {{secret: placeholder), failed in transit), the names of the credential bindings the node attached in secrets (for a secret refusal, the binding refused), and the request's and response's body sizes. Never a secret value, a body, a query string or a header.
{
atMs: integer,
method: string,
host: string,
path: string,
pathTruncated: boolean,
status?: integer,
failure?: "malformed" | "refused" | "notApproved" | "awaitingApproval" | "egressOff" | "secret" | "failed",
secrets: string[],
requestBytes: integer,
responseBytes: integer
}OutboundLog
An instance's outbound requests, newest first (entries), merged from every replica; partial: a replica did not answer, so its runs' requests may be missing.
{
entries: OutboundAuditEntry[],
partial: boolean
}UsageDay
What an app's runs used on one UTC day (date, YYYY-MM-DD), each figure a decimal string; wallMs is information only.
{
date: string,
runs: string /* decimal */,
fuel: string /* decimal */,
wallMs: string /* decimal */,
writes: string /* decimal */,
bytesWritten: string /* decimal */,
events: string /* decimal */
}RunFile
A file a run reads or wrote: its id, and its plaintext size and SHA-256 (hex) only for a caller who may list the app's files.
{
id: string,
size?: integer,
sha256?: string
}Run
A compute run's record, without its arguments or keys: its method, state, caps (fuel a JSON number here), inputs, attempts (tsMs Unix milliseconds) and final outcome (null while it runs; message the failure text, null unless the caller may list the app's files). progress is the leader's last poll (null elsewhere, when it is not active, or to a caller who may not list files); queue where the run waits for a job node, to a caller who may list files only; logs (deprecated: a run keeps no log) is always empty, to the same callers.
{
run: string,
method: string,
state: "queued" | "running" | "done" | "failed" | "cancelled",
cancelRequested: boolean,
startTsMs: integer,
caps: {
fuel: integer,
memoryMib: integer,
wallSecs: integer
},
inputs: RunFile[],
attempts: {
attempt: integer,
node: integer,
tsMs: integer
}[],
final: {
attempt: integer,
outcome: {
kind: "done"
} | {
kind: "failed",
reason: "fuel" | "memory" | "trap" | "app-error" | "integrity" | "cancelled" | "lost" | "refused" | "timeout" | "quota" | "not-granted" | "too-large"
} | {
kind: "cancelled"
},
outputs: RunFile[],
usage: {
cpuMicros: integer,
gibMicros: integer,
fuel: integer
},
tsMs: integer,
message: string | null
} | null,
progress: {
percent: integer,
step: string
} | null,
queue?: {
state: "unplaced" | "waiting" | "granted",
capacity: integer,
pool: string,
reason?: "NO_CAPACITY" | "POOL_FULL" | "PAYER_AT_RUN_QUOTA" | "PAYER_AT_FUEL_QUOTA"
},
logs?: any[]
}AccountProof
A statement, signed with the answering node's receipt key (hex, Ed25519 over the statement's canonical JSON after its domain), that the account asked to bind nonce for audience, valid from issuedAt to expiresAt (Unix seconds).
{
statement: AccountStatement,
key: string,
signature: string
}AccountStatement
What an account proof states: the cluster and node, the account, the nonce and audience it binds, and when it was issued and expires (Unix seconds).
{
cluster: string,
node: integer,
account: string,
nonce: string,
audience: string,
issuedAt: integer,
expiresAt: integer
}PackageOrigin
A custom frontend origin of a package: the rp-id its passkeys use, who registered it and when (RFC 3339), whether the cluster serves the package's frontend there, and the instance its sessions reach alone (app, an instance's origin).
{
package: string,
origin: string,
rpId: string,
addedBy: string,
addedAt: string,
served: boolean,
app?: string
}SignUpState
The sign-up policy and what it implies: whether organization invites and cluster sign-up invites admit a new account, and whether one is required.
{
policy: SignUp,
orgInvites: boolean,
signUpInvites: boolean,
inviteRequired: boolean
}ApprovedReleases
The mero-tee releases the scope approves now, after the change.
{
approvedReleases: string[]
}OutboundApproved
The outbound approval the scope holds now for the package's publisher (signer), after the change.
{
signer: string,
approval: OutboundApproval
}Uninstalled
The versions an uninstall removed.
{
removed: string[]
}Deadlines
Every release deadline after the change, oldest release first (after RFC 3339, afterSecs Unix seconds).
{
deadlines: VersionDeadline[]
}SignUpSet
The cluster's governance and sign-up policy after the change.
{
governance: Governance,
signUp: SignUpState
}InviteKey
The key of the cluster sign-up invite withdrawn.
{
inviteKey: string
}UpgradeRun
An organization-wide upgrade run: the apps it targets, those done, and why each failed one failed.
{
runId: string,
package: string,
version: string,
team?: string,
cascade: boolean,
by: string,
startedAt: integer,
apps: string[],
done: string[],
failed: {
[key: string]: any
},
finished: boolean,
targets?: {
[key: string]: {
package: string,
version: string
}
}
}App
An app instance as the directory records it. initArgs and the grants that name another person are its managers' to see: a member who does not manage its grants is answered neither (grants holds the others and their own). executor is absent for an SDK 0.12 app (wasmer), which this node lists but does not run; release is the package release it runs, absent for a record from before or a raw upload; restore is a restore from a backup under way; restorePoint the restore point of its last upgrade, which an owner or admin may undo for a week (POST /apps/{app}/undo); egressEpoch counts what ends the owner's bytes egress switch (a move, a release that does not declare it, an undo, a restore), absent at zero; egressOff: the instance's own egress switch is off (POST /apps/{app}/egress), absent while on; lineage: the package and signer a release declaring lineage: pinned pinned it to, and floor, the newest version it has been judged at, absent while unpinned: it moves only to releases of that package, never one older than floor.
{
appId: string,
name: string,
group: integer,
bundle: string,
owner: string,
org: string | null,
grants: Grant[],
confirmMethods: string[],
executor?: "component" | "wasmer",
replicas: integer[],
createdAt: integer,
initArgs?: any,
computeBundle?: string,
components?: "computeOnly",
metadata: any,
lastUpgrade?: Upgrade,
ownerSeenAt?: integer,
deployment?: string,
release?: PackageRef,
restore?: {
seed?: integer,
source?: {
name: string,
sha256: string,
index: integer
}
},
links?: {
[key: string]: string
},
attached?: {
[key: string]: string
},
restorePoint?: RestorePoint,
egressEpoch?: integer,
egressOff?: boolean,
lineage?: {
package: string,
signerId: string,
floor: string
}
}AppEntry
An app as GET /apps lists it: package and version name the release it runs where the caller may read it (null otherwise, and for a raw upload); ?package= keeps the instances whose row names that package, deployment the deployment it was created from (null for none).
{
appId: string,
name: string,
owner: string,
org: string,
bundle: string,
package: string | null,
version: string | null,
deployment: string | null
}PackageRef
One service of one package release: service is absent for a single-service bundle, compute (absent: false) marks the service's compute component.
{
package: string,
version: string,
service?: string,
compute?: boolean
}Upgrade
The last upgrade tried on an app, done or failed: from and to are bundle hashes, by the account (or operator), run the organization-wide run it was part of, apiKey the upgrade key that made it. class and reasons: what the update classifier said of it, judged again where it applied (absent for a raw bundle and a failed upgrade); approvedBy: the first approver of a red update whose policy asks for a second. auto: it applied on its own under the app's update policy (by is policy:auto-update); undo: it undid the upgrade before it (fromRelease the release undone).
{
from: string,
to: string,
at: integer,
by: string,
ok: boolean,
error?: any,
run?: string,
apiKey?: string,
fromRelease?: PackageRef,
toRelease?: PackageRef,
class?: "green" | "red",
reasons?: UpdateReason[],
approvedBy?: string,
auto?: boolean,
undo?: boolean
}Package
A package and the releases of it the caller may see, oldest first; latest is the newest of those. A release's visibility: public (everyone here uses it; a release the operator installed, the cluster's catalog, is always), private (members of the organizations it was installed for; none: the accounts that installed it), absent for one recorded before the node kept it. orgs: of a private release's organizations, only those the caller is a member of.
{
package: string,
signerId: string,
owner: string,
latest: string,
versions: {
version: string,
mpk: string,
size: integer,
source: "registry" | "upload",
services: {
[key: string]: string
},
components: "app" | "computeOnly",
metadata: any,
outbound: string[],
installedBy: string,
installedAt: integer,
visibility?: "public" | "private",
orgs?: {
orgId: string,
name: string
}[]
}[]
}ApiKey
An API key as the account's list shows it (never its secret): apps and methods are null for every one; upgrades makes it an upgrade key.
{
keyId: string,
account: string,
label: string,
apps: string[] | null,
methods: string[] | null,
pipelines?: string[],
readOnly: boolean,
allowConfirm: boolean,
expiresAt: integer,
upgrades?: {
app: string,
package: string,
signer: string,
proofKey: string
}
}Org
An organization as GET /orgs/{org} answers it. members maps each account to its role, capabilities and defaultCapabilities are capability bits, outboundApprovals is keyed by package signer, upgradeRuns by run id; recovery is absent when the organization set no recovery key, allApps when no member gets every app added later. allowGuests: whether its instances take guests (its owner or an admin sets it, POST /orgs/{org}/settings). egressOff: its egress switch is off, so none of its apps sends anything out of the cluster (POST /orgs/{org}/egress). upgradePolicy, appUpgradePolicies and pendingUpgrades: its update policy, its apps' own and the first approvals of red updates waiting for a second (absent when none).
{
orgId: string,
name: string,
members: {
[key: string]: OrgRole
},
teams: {
[key: string]: Team
},
defaultCapabilities: integer,
capabilities: {
[key: string]: integer
},
approvedReleases: string[],
outboundApprovals: {
[key: string]: OutboundApproval
},
metadata: any,
memberMetadata: {
[key: string]: any
},
upgradeRuns: {
[key: string]: UpgradeRun
},
recovery?: {
publicKey: string,
setAt: integer,
pending: {
account: string,
startedAt: integer,
readyAt: integer
} | null
},
allApps?: string[],
personal?: boolean,
allowGuests?: boolean,
allowPublicLinks?: boolean,
egressOff?: boolean,
upgradePolicy?: UpgradePolicy,
appUpgradePolicies?: {
[key: string]: UpgradePolicy
},
pendingUpgrades?: {
[key: string]: {
package: string,
version: string,
targets?: {
[key: string]: {
package: string,
version: string
}
},
by: string,
at: integer,
class: {
class: "green" | "red",
reasons?: UpdateReason[]
}
}
},
mode?: "legacy" | "standalone" | "shared",
releaseApprovers?: string[],
publishes?: string[],
newWorkStopped?: {
release: string,
after: string
} | null,
nextTeamsAfter?: string | null,
nextMembersAfter?: string | null
}Team
A team as its organization records it: members maps each direct row to whether it is a lead; capabilities are capability bits per row; defaultCapabilities is absent when unset.
{
teamId: string,
name: string,
parent: string | null,
join: TeamJoin,
members: {
[key: string]: boolean
},
readOnly: string[],
capabilities: {
[key: string]: integer
},
metadata: any,
removed: string[],
defaultCapabilities?: integer
}TeamView
A team as GET /orgs/{org}/teams/{team} answers it: each member's row, the child teams the caller sees, its apps, and the caller's own row (myRole, null for none) and membership (member). package names the package of an app team (null for any other), defaultCapabilities the capabilities a new member gets (null: the organization's).
{
teamId: string,
name: string,
parent: string | null,
join: TeamJoin,
metadata: any,
package: string | null,
defaultCapabilities: integer | null,
members: {
account: string,
role: TeamRole,
capabilities: integer
}[],
children: string[],
apps: {
appId: string,
name: string
}[],
myRole: TeamRole | null,
member: boolean
}Deployment
A deployment as its managers list it. host is its frontend host, null on a node with no apps domain; times are RFC 3339. transfer: the offer of it to another owner waiting for acceptance (expiresAt: 7 days after offeredAt), else null; transferred: whom it came from at its last hand-over, else null.
{
id: string,
host: string | null,
name: string,
owner: Deployer,
apps: DeploymentOffer[],
createdBy: string,
createdAt: string,
transfer: {
to: Deployer,
offeredBy: string,
offeredAt: string,
expiresAt: string
} | null,
transferred: {
from: Deployer,
at: string
} | null
}DeploymentShown
The deployment an instance comes from, as its customers are shown it: names are not unique, so always with its id and its owner's kind and name (null once the owner is gone); once it changed hands, whom it came from and when (transferred, RFC 3339).
{
id: string,
name: string,
owner: {
kind: "account" | "org",
name: string | null
},
transferred?: {
from: {
kind: "account" | "org",
name: string | null
},
at: string
}
}DeadLetter
A cross-app call that was never delivered: its sequence number, the target app and method, why, and when (atMs, Unix milliseconds).
{
seq: integer,
app: string,
method: string,
reason: string,
atMs: integer
}Governance
Who decides what on this cluster: release approvals, app upgrades and outbound approvals (owner: each app's owner; operator: the operator), and, left out at their defaults, deployments (open), deployers (operator) and signUp (open).
{
releases: "owner" | "operator",
appUpgrades: "owner" | "operator",
outbound: "owner" | "operator",
deployments?: "granted" | "open",
deployers?: "owner" | "operator",
signUp?: "invite" | "closed" | "open"
}OutboundApproval
What an owner approved for one publisher's apps to call out to: the approved URL prefixes, and every prefix it was shown.
{
prefixes: string[],
reviewed: string[]
}AppScope
The scope whose approvals cover an app: its organization. account is only GET /auth/apps' own scope: the apps the account owns, wherever they are.
{
kind: "org",
org: string,
personal?: boolean
} | {
kind: "account"
}ClusterRelease
A mero-tee release the cluster's nodes run: how many run it, and whether the scope approved it (true where nothing was ever recorded).
{
release: string,
nodes: integer,
approved: boolean
}BundleRelease
A bundle by its digest, with the release it came from where the reader may see it.
{
bundle: string,
package?: string,
version?: string
}ReportUpgrade
An app's last upgrade as a report shows it. actor, error, run and apiKey are shown to the app's people, never to the operator.
{
from: BundleRelease,
to: BundleRelease,
at: integer,
ok: boolean,
actorKind: "owner" | "member" | "operator",
class?: "green" | "red",
actor?: string,
error?: any,
run?: string,
apiKey?: string,
reasons?: UpdateReason[],
approvedBy?: string
}ReportApp
One app in a release report (GET /auth/apps, GET /orgs/{org}/apps, GET /ops/apps): its bundle and release (package, null where the reader may not see it), the publisher's key and bound organization, who holds its upgrades and release approvals, its last upgrade, the releases approved to hold it (null: unrestricted), each replica's release, and lastWriteAt (Unix seconds, null when unknown). name, team, availableVersions (newer releases, oldest first), latestReachable and latestBlocked (the newest release and why an upgrade would not take it) are for the app's people, never the operator.
{
app: string,
group: integer,
scope: AppScope,
bundle: string,
package: {
package: string,
version: string,
service?: string | null
} | null,
publisher: {
signer: string,
org: string | null
} | null,
upgradesHeldBy: "operator" | "owner" | "publisher",
releasesApprovedBy: "operator" | "publisher" | "owner",
lastUpgrade: ReportUpgrade | null,
approvedReleases: string[] | null,
replicas: {
node: integer,
release: string | null,
approved: boolean
}[],
lastWriteAt: integer | null,
name?: string,
team?: string,
availableVersions?: string[],
latestReachable?: string | null,
latestBlocked?: {
version: string,
reason: "authority" | "runtime",
message: string,
minRuntimeVersion?: string,
nodes?: {
node: integer,
runtime: string | {
before: string
} | null
}[]
}
}DeploymentRecord
A deployment as the directory records it: the release it offers by app name (addedAt Unix seconds), who created it and when (Unix seconds).
{
id: string,
name: string,
owner: Deployer,
apps: {
[key: string]: {
package: string,
version: string,
addedBy: string,
addedAt: integer
}
},
createdBy: string,
createdAt: integer,
transfer?: {
to: Deployer,
offeredBy: string,
offeredAt: integer
},
transferred?: {
from: Deployer,
at: integer
}
}DeployerGrant
A grant to install where deployments are granted: until when (Unix seconds; absent: it does not end), when and by whom it was granted.
{
until?: integer,
grantedAt: integer,
grantedBy: string
}SignUpInvite
A cluster sign-up invite, never its token: uses left, when it expires (expiresAt RFC 3339, expiresAtSecs Unix seconds), who made it and when (RFC 3339).
{
inviteKey: string,
uses: integer,
expiresAt: string,
expiresAtSecs: integer,
createdBy: string,
createdAt: string
}ProofOnly
What an operator decision that names nothing in its body may carry: none at first, the operator's proof after the 428.
{
operatorProof?: OperatorProof
}OperatorSecretChange
A change of the operator's secrets that names nothing else: none at first, then the operator's proof and the version the 428 named (its args.version).
{
version?: integer,
operatorProof?: OperatorProof
}ConfirmOnly
The body of a step-up that names nothing else: none (or {}) at first, the passkey assertion after the 412.
{
confirm?: Confirm
}QuotaChanges
The limits POST /ops/quotas changes, each optional: without org, the cluster's (those GET /ops/quotas answers, maxFuelPerDeveloperPerDay a decimal string; a byte cap out of range is refused 400 BAD_REQUEST naming it); with org, one payer's (maxConcurrentRuns, computeFuel a decimal string, maxFileBytes; null clears one). orgs is ignored. Any other property is refused 400 UNKNOWN_QUOTA.
{
org?: string,
operatorProof?: OperatorProof,
orgs?: any,
maxAppsPerAccount?: integer,
maxBundleBytesPerAccount?: integer,
maxApiKeysPerAccount?: integer,
maxOrgsPerAccount?: integer,
maxAccounts?: integer,
maxFileBytesPerOrg?: integer,
maxConcurrentRunsPerOrg?: integer,
computeFuelPerOrg?: integer,
maxFuelPerDeveloperPerDay?: string /* decimal */,
maxTeamsPerOrg?: integer,
maxMetadataBytesPerOrg?: integer,
maxMetadataBytesPerAccount?: integer,
maxBodiesPerAccount?: integer,
maxViewStreamsPerNode?: integer,
maxViewStreamsPerAccount?: integer,
maxViewStreamsPerApp?: integer,
maxAnonymousViewStreamsPerApp?: integer,
maxAnonymousViewStreamsPerNode?: integer,
maxEgressStartsPerMinute?: integer,
maxConcurrentRuns?: integer | null,
computeFuel?: string /* decimal */ | null,
maxFileBytes?: integer | null
}