Connect your bank’s settlement and reporting systems to Frame. Submit instructions, follow their progress, and retain evidence your counterparty can verify.
This reference covers bank settlement submission, policy updates, and reporting in this build. URLs are relative to your Frame host. There is no universal sandbox URL: use the origin provided by your operator. Availability depends on the configured rails, tenants, and services.
Begin with GET /v1/auth/config. In local mode, sign in with an onboarded email and password. Login returns an identity token and tenant memberships; the token does not grant access to every tenant. Select a membership with X-Frame-Tenant on subsequent requests. Send the token as Authorization: Bearer …. Browser sessions can use the frame_session cookie instead.
export FRAME_URL='http://localhost:8080'
# login.json: {"email":"your-email","password":"your-password"}
# Keep this file private. Use HTTPS for remote deployments.
curl --fail-with-body -sS "$FRAME_URL/v1/auth/login" \
-H 'Content-Type: application/json' --data-binary @login.json
# Set FRAME_TOKEN from the response and FRAME_TENANT to a membership ID.
curl --fail-with-body -sS "$FRAME_URL/v1/me" \
-H "Authorization: Bearer $FRAME_TOKEN" \
-H "X-Frame-Tenant: $FRAME_TENANT"
Login values are under data: read data.token, data.expires_at and data.tenants. Use GET /v1/capabilities to discover the caller's available actions. Roles grant capabilities: viewers read; operators settle; approvers approve; admins also manage policy. Cryptographic approvals still require distinct authorized signers even when an admin has both capabilities.
dev-unverified is a development mode, not an integration credential. Bank integrations use an onboarded operator membership. The API currently has no separate API-key or client-credentials grant and no refresh-token endpoint. Reauthenticate when the 12-hour session expires or is revoked.
Settle & verify
Prepare the tenant. An ACTIVE policy must be installed through the four-eyes workflow. Verify the attestation and sealing key before encrypting a policy. Register counterparties and arrange the signed funds, compliance, rates, and finality inputs required by that policy and rail.
Submit the instruction. Send POST /settlements with an explicit tenant, a stable bank_request_id, legs, and attested inputs. The request schema below describes their wire format. Request bodies containing signatures must be produced by the authorized signer; editing a signed field invalidates the signature.
Follow the returned ID. Read GET /settlements/{id}. HTTP 200 means the request returned a settlement record; inspect its status to distinguish approval, denial, pending finality, and recovery. Statuses include accepted, authorised, sealed, dispatched, confirmed, denied, reversed, stuck, and resolved_manual. Escalate stuck to the bank’s recovery procedure.
Collect evidence. Download GET /settlements/{id}/pack. A sealed denial also has evidence, and so does a settlement rejected at admission: its pack carries the sealed rejection and its reason. A 409 with Retry-After means the evidence is not sealed yet.
Verify independently. Retain the pack and verify it with frame-verify or Frame's browser verifier, using independently pinned trust material. A downloaded pack alone is not proof that a real chain anchor is final.
What the evidence establishes.accepted denotes intake. A TEE-signed policy decision establishes approval or denial of its bound instruction and inputs. Authenticated bank/rail outcomes and finalized public witnessing are separate checks; a decision pack alone does not prove payment completion. Sealed refusal evidence does not admit the refused intent.
Boundary migration. The agreed target is for Frame to gate admission through its existing TEE policy checks while banks control payment execution. This build still dispatches payments and recovery actions. Bank-signed intake on every route and signed admission receipts bound to durable SecLog custody are not yet implemented. Integrate against the current response schemas below.
Retry discipline. Settlement intake is keyed by (tenant, bank_request_id). After a timeout, retry the same instruction with the same explicit tenant and request ID. Changing the ID creates a new instruction. This is not a general idempotency guarantee for other POST endpoints. Confirming a leg requires the rail's applicable finality evidence; break-glass resolution is a separate four-eyes action.
Install & update policies
A policy update installs a new immutable version. The institution authorises with a bank-held key; Frame receives the sealed payload and the signature. Arrange live governance key bindings with your operator before the first submission. The authorising key needs role=attester, purpose=approval, and root-signed policy-governance delegations inside the payload.
Fetch GET /v1/policies/sealing-key. Verify the attestation, measurement and bound sealing key against bank-held pins. A key returned by the same host you are checking is not an independent trust anchor.
Read GET /policies?tenant=… for the policy key’s full lineage, including deactivation tombstones. The maximum version is the signing floor; use 0 only when the history is empty. For a counterparty policy, pass party consistently on history, governance and submission calls.
Prepare the versioned governance JSON payload bank-side: frame_policy_payload: "v1", governance_root, delegations, and cel. Each delegation carries tenant, purpose, key, nonzero expiry in Unix seconds, and the root’s signature. Seal the complete JSON bytes with crypto_box_seal to the verified enclave key. Raw CEL is not the current payload format. For a root rotation, include the outgoing root’s signed root_rotation containing prev_root and sig.
Have the institution’s authorising key (the governance root or a key it delegated for policy-governance) sign the frame.policy.v4 preimage below; send it as author_pub/author_sig. The institution’s own review happens bank-side and is not checked by Frame. Earlier versions, such as frame.policy.v3 and the retired two-signature frame.policy.v2, are refused. Keep the authoring document and its exact byte representation bank-side.
POST /v1/policies/submit. Omit the optional rules field to avoid storing plaintext source on the host. Retain the returned version, policy hash, governance hash and leaf index. Compare the governance commitment with the bank’s expected root and delegations.
Download /v1/policies/receipts/{leaf_index}/pack. Verify the receipt against independently pinned trust material and your retained source document.
Signing bytes and governance payload
All lengths and counts in DomainSep are unsigned 32-bit big-endian integers. Numeric fields below are unsigned 64-bit big-endian. Hex and base64 are wire encodings: signatures cover decoded bytes.
DomainSep(tag, fields...) =
u32be(len(tag)) || UTF8(tag) || u32be(number_of_fields) ||
for each field: u32be(len(field)) || field
policy_signature = Ed25519.Sign(private_key,
DomainSep("frame.policy.v4",
policy_key_uuid_16_bytes,
u64be(version_floor),
SHA256(ciphertext_bytes),
source_hash_32_bytes,
u64be(expiry_unix_seconds)))
source_hash = SHA256(
DomainSep("frame.policy.source.v2", exact_authoring_document_bytes))
# If there is no authoring document, source_hash is 32 zero bytes.
# version_floor is signed but is NOT a field in the submit JSON.
# The server uses the stored maximum version when checking the signatures.
delegation_signature = Ed25519.Sign(governance_root_private_key,
DomainSep("frame.govdelegation.v2",
policy_key_uuid_16_bytes, UTF8(purpose), delegate_public_key_32_bytes,
u64be(not_after_unix_seconds)))
root_rotation_signature = Ed25519.Sign(outgoing_root_private_key,
DomainSep("frame.govrootrotation.v2",
policy_key_uuid_16_bytes, outgoing_root_32_bytes, new_root_32_bytes))
The bank UI's Policy page implements this protocol, including source-to-ciphertext checks and the governance envelope. Use its authoring engine, built from bank/cmd/frame-policy-wasm/, and its signing implementation when building a bank client.
Concurrent updates and uncertain outcomes. An intervening activation or deactivation changes the floor and invalidates the earlier signatures. Read the lineage again and obtain fresh approvals. After a timeout, check whether the submitted policy hash already activated before signing again. Policy submission has no idempotency key. Deactivation appends a tombstone and stops new intake until a later activation; it uses the policy capability and has no signature fields in its request.
Reports & queries
Use GET /v1/admissions/{id} to read an admission decision, GET /v1/admissions/{id}/outcomes for the bank outcome reports, and GET /v1/admissions/{id}/submission-receipt for its SecLogRS submission receipt. The submission receipt is read only by the authoring institution, with the access GET /v1/completeness/{tenant} requires; a counterparty signer of a multi-party admission reads the admission decision and the outcome reports, and gets 403 for the submission receipt. An institution the admission does not name gets 404 for all three, the answer for an id that does not exist. The activity, timeline and sealed-log views are bounded; they are not a complete bank statement or a proof of no missing submissions. Keep your bank’s submission ledger and evidence receipts.
Formats & errors
Value
Wire convention
Money & rates
Exact integer units at a declared scale. For settlement money, {"asset":"USD","scale":2,"units":"12345"} represents 123.45 USD. Keep decimal strings as strings; never round through floating point.
Identifiers
Follow each field's schema. Settlement and tenant UUIDs accept 32 hexadecimal characters with optional hyphens; responses use the conventional hyphenated form. Do not substitute a display name.
Time
Read the field contract: settlement inputs use milliseconds; JWT expiry uses Unix seconds. They are not interchangeable.
JSON bodies
Send Content-Type: application/json. The common JSON decoder limits requests to 1 MiB; individual endpoints can impose different limits.
Pagination
Endpoint-specific query parameters and response shapes. There is no universal cursor or list envelope.
Most API failures return JSON such as {"error":"description"}. Routing failures, upstream downloads, and streams can use other formats. Preserve the HTTP status and X-Request-ID when investigating an error. Do not classify an enclave denial solely from the HTTP status.
Status
Client action
400
Correct the request or missing input; repeating unchanged usually cannot help.
401 / 403
Reauthenticate or check tenant membership, capability, and signer authority.
404
Check the ID, tenant, route, and deployment feature availability. Resources outside the active tenant can be hidden as not found.
409
Inspect the conflict. For an unsealed settlement pack, honor Retry-After; other conflicts may need operator action.
429
Back off and honor Retry-After when present.
5xx
Check readiness and service configuration. Retry with bounded backoff only when the operation is safe to repeat.
Endpoint reference
Search by method, path, capability, or subject. Each operation has a stable link and a curl template. Replace path variables and prepare any named request file before running it. This bank contract excludes consumer-portal, demo and platform-administration endpoints. Schemas describe JSON wire shapes; conditional business requirements and signed payload constraints still apply. Optional properties may be omitted; clients should tolerate additive response fields. Expand requests and responses for the full contract.
Admit an exact bank-signed intent or record a refusal
tenant operator (settle)
Canonical CBOR AdmissionRequest (instruction, inputs, intent). The host adds and reconstructs nothing after signing. In every message each leg must name the institution that owes it (its obligor), and the authoring institution (instruction.tenant) must be one of those obligors. Single-author message (instruction.signers absent): intent.signatures holds exactly one entry, by the authoring institution, signed frame.bankintent.v2 under its installed governance root, with no reasons_pub. Only its policy is evaluated, even where a leg names another institution. Multi-party message (instruction.signers is all_obligors): the required signers are the distinct obligors of the legs, and there must be at least two. intent.signatures holds exactly one entry per required signer, in ascending order of the institution UUID bytes, and no other entry. Each entry is signed frame.bankintent.v2 under that institution's own governance root over the same instruction hash and inputs digest. The author's entry has no reasons_pub; every other entry names that institution's own 32-byte box key as reasons_pub, which takes the place of intent.bank_pub in the bytes that entry signs and must differ from intent.bank_pub. The TEE evaluates every required signer's active policy and admits only if all accept; the decision names each one's policy hash and version in obligor_policies. A multi-party denial does not say whose policy denied: the author's sealed reasons are in reasons_for_bank (sealed to intent.bank_pub) and each other signer's in its own party_reasons entry (sealed to its reasons_pub), each stating only that institution's verdict. Only a member of the authoring institution posts, with every signature already in the request; the other signers add theirs through the shared-request workflow. The host adds no signer check before the TEE. It first applies its own floors, which do not read signers and refuse for their own reasons: invalid_settlement_shape (the settlement shape rules), counterparty_floor_refused (the host could not confirm, including when its registry read fails, that every counterparty a leg names, by an obligor other than the author or by alias, is an active registered counterparty of the author that covers the leg; or an external destination leg names no party), counterparty_identity_conflict (a leg's counterparty alias does not resolve to its obligor) and clock_input_not_current (the request's clock input states a now more than one hour before the host's clock, or more than 60 seconds after it, when the host would ask the TEE; exactly one hour before and exactly 60 seconds after are accepted). The host judges clock_input_not_current each time it would ask the TEE, so a request it retained in time but first decides later than the bound, on a retry after an outage or in recovery, is refused; a request already decided keeps its receipt. A request with no clock input, or whose clock input states no positive now, is not judged by this rule. After this refusal fetch a new clock input and sign a new message. A request that passes them goes to the TEE, which checks the signers declaration and every signature: a request with a missing, misplaced or invalid signature, or an invalid signers declaration, is refused there and recorded intake_verification_refused, as are the TEE's other intake refusals, such as no active policy. Each of these refusals is a 200 receipt with no TEE decision. It occupies (tenant, bank_request_id), so the correction is a new message under a new bank_request_id. A TEE or custody failure outside these refusals is 503. An exact repeat returns the original receipt; different bytes at an occupied identity are recorded as request_identity_conflict. The response binds the TEE decision to verified durable SecLog custody. A refusal is evidence, never admission or payment completion. Retry identical bytes after 503; an uncertain append is not proof that admission failed.
{
"200": {
"content": {
"application/cbor": {
"schema": {
"format": "binary",
"type": "string"
}
}
},
"description": "Canonical CBOR AdmissionReceipt. intent_admitted carries the TEE's authorised decision. intent_refused carries either a TEE-signed denial, or a host refusal reason and no TEE decision"
},
"400": {
"description": "Malformed request"
},
"403": {
"description": "The caller may not post for instruction.tenant: among the causes, it has no membership there whose role grants settle, that tenant is not active, or its role in its active tenant lacks settle. Only a member of the authoring institution posts a request, single-author or multi-party"
},
"415": {
"description": "application/cbor required"
},
"503": {
"description": "Custody unresolved; retry identical signed request"
}
}
Returns one canonical CBOR AttestedInput of kind clock for (tenant, instruction_hash), to place in AdmissionRequest.inputs before computing inputs_digest and signing frame.bankintent.v2. now is the host clock; beacons carry the beacon quorum the enclave requires, with Roughtime assertions bound to this instruction through the enclave's time challenge. Without trusted time the input carries now and no beacons. The challenge is keyed per enclave boot: a clock input fetched before an enclave restart is refused at admission, so fetch again. Records nothing.
JSON request fields
Field
Type
Description
instruction_hash
string
InstructionHash of the instruction the institution is about to sign, 64 lowercase hex characters.
tenant
string
The institution authoring the message; must equal the active tenant.
Request body
{
"content": {
"application/json": {
"schema": {
"properties": {
"instruction_hash": {
"description": "InstructionHash of the instruction the institution is about to sign, 64 lowercase hex characters.",
"type": "string"
},
"tenant": {
"description": "The institution authoring the message; must equal the active tenant.",
"type": "string"
}
},
"type": "object"
}
}
},
"required": true
}
Responses
{
"200": {
"content": {
"application/cbor": {
"schema": {
"format": "binary",
"type": "string"
}
}
},
"description": "Canonical CBOR AttestedInput of kind clock"
},
"400": {
"description": "Malformed request"
},
"403": {
"description": "Tenant is not the caller's active tenant, or its membership lacks read"
},
"502": {
"description": "The enclave's time challenge failed"
},
"503": {
"description": "Fewer beacon assertions than the quorum; retry"
}
}
Record a linked evaluation attempt after an additional-approval denial
tenant operator (settle)
Evaluation attempt n>1 of one message after the TEE-signed denial {id} that states an additional-approval requirement (frame.attempt.v1). Canonical CBOR LinkedAdmissionRequest: request (the same instruction bytes, the prior inputs plus approvals only, a fresh frame.bankintent.v2 signature) and attempt (link {version, message, seq, prior} and the institution's frame.attempt.link.v2 signature). The prior denial is never changed. An exact repeat returns the original receipt; different bytes for an occupied attempt are recorded as a conflict refusal. 409 means Frame's host declined to record the attempt and no verdict exists; a 200 receipt may itself be a denial. A linked attempt keeps the clock input of the attempt before it. One that carries a different clock input answers 409: the later attempt drops an input of the prior attempt. The host therefore applies clock_input_not_current (POST /v1/admissions) to every attempt at the instant the first attempt's clock input states, so an added approval must be decided within one hour of the first attempt's clock; exactly one hour is accepted. A linked attempt the host would decide later is recorded as that refusal, a 200 receipt with no TEE decision. No further attempt can follow it. The next one answers 409: the prior attempt is not a denial stating an additional-approval requirement. The institution signs a new message under a new bank_request_id and gathers its approvals again. A message whose first attempt carries no clock input is not judged by this rule on any attempt. A multi-party message (instruction.signers is all_obligors) has no linked attempts: its denial states no additional-approval requirement, so this route answers 409. After such a denial the institutions add approvals and sign a new message under a new bank_request_id. Retry identical bytes after 503.
{
"200": {
"content": {
"application/cbor": {
"schema": {
"format": "binary",
"type": "string"
}
}
},
"description": "Canonical CBOR AdmissionReceipt of the new attempt"
},
"400": {
"description": "Malformed request"
},
"403": {
"description": "The caller may not post for instruction.tenant: among the causes, it has no membership there whose role grants settle, that tenant is not active, or its role in its active tenant lacks settle"
},
"409": {
"description": "linked evaluation attempt refused: the attempt is not recorded and no verdict exists. It does not follow a completed denial of this message that states an additional-approval requirement; a multi-party denial never states one"
},
"415": {
"description": "application/cbor required"
},
"503": {
"description": "Custody unresolved; retry identical signed request"
}
}
Read authenticated bank outcome reconciliation evidence
tenant reader
Canonical CBOR ReconciliationPack: original AdmissionReceipt plus every locally retained signed outcome and completed custody proof. Pending publication retains the authenticated report. Verify with frame-verify admission --outcomes and independent deployment pins. Execution, appliance custody and public witness are separate facts. Supplied reports cannot prove that a bank or host withheld nothing. On a multi-party admission the pack holds the reports of every required signer; execution is reported complete only when every leg of every signer has a completed report and none conflicts. Each named bank uses its own active tenant and role for transaction-scoped access. Outcome writes must name the active reporting bank. This grants no access to another bank’s tenant-wide checkpoints or policies.
Parameters
Name
Type
Description
id required
path · string
Responses
{
"200": {
"content": {
"application/cbor": {
"schema": {
"format": "binary",
"type": "string"
}
}
},
"description": "Canonical CBOR ReconciliationPack; optional per-outcome witness root-binding evidence. The bank must independently check roots on the public chain. No global-completeness claim."
},
"400": {
"description": "Invalid admission id"
},
"403": {
"description": "The caller's role in its active tenant lacks read"
},
"404": {
"description": "No admission, or the signed request does not name the caller's active bank"
},
"422": {
"description": "Invalid bank report or admission not approved and durably receipted"
},
"503": {
"description": "Evidence custody pending"
}
}
Canonical CBOR SignedBankOutcome under frame.bankoutcome.v2. The reporting bank signs with the governance key that signed its own entry in the admitted intent (frame.bankintent.v2) and reports only legs it owes. On a multi-party admission (instruction.signers is all_obligors) every required signer reports its own legs this way, through its own workspace. On a single-author admission only the authoring institution has an entry, so only its legs can be reported and a leg owed by a named counterparty stays missing. Outcome events are recorded under the authoring institution's tenant. The report binds ledger, admission, request hash, exact leg, bank, asset and amount. Executed is the cumulative amount for one transaction. Status: unknown, unconfirmed, partial, completed, failed. Conflicting authenticated reports append; exact duplicate delivery returns the original receipt. No Frame execution or correction is authorized. Invalid reports return 422 without an authenticated outcome record. Retry identical bytes after 503. Each named bank uses its own active tenant and role for transaction-scoped access. Outcome writes must name the active reporting bank. This grants no access to another bank’s tenant-wide checkpoints or policies.
{
"200": {
"content": {
"application/cbor": {
"schema": {
"format": "binary",
"type": "string"
}
}
},
"description": "Canonical CBOR OutcomeEvidence with original sealed event and verified appliance proof"
},
"400": {
"description": "Malformed request"
},
"403": {
"description": "The caller's role lacks settle, or the report names a bank other than the caller's active one: report outcomes through the reporting bank's own workspace"
},
"404": {
"description": "admission not found: no such admission, or the signed request does not name the caller's active bank"
},
"415": {
"description": "application/cbor required"
},
"422": {
"description": "Invalid bank report, or admission not approved and durably receipted; nothing is recorded. invalid bank outcome: outcome: unauthorized bank or invalid signature when the signing key is not the one behind the reporting bank's own entry in the admitted intent. invalid bank outcome: outcome: leg, bank, asset or amount mismatch when the leg is not one the reporting bank owes or the amounts differ"
},
"503": {
"description": "Custody unresolved; retry identical signed request"
}
}
Retrieve the immutable submission sequence receipt
tenant reader
Author only, behind two checks in this order. First the participant check of GET /v1/admissions/{id}, with that route's answers: an institution the signed request does not name gets the 404 it gets for an id that does not exist, so this route tells it neither that the admission exists nor who authored it. Then the author check: the submission receipt states the admission's place in the authoring institution's submission stream, so a caller the request names is served only with read in instruction.tenant of the admission, the same check and the same 403 as GET /v1/completeness/{tenant}. A counterparty signer of a multi-party admission reads the admission receipt at GET /v1/admissions/{id} and the outcome reports through its own tenant; it has no submission receipt and no completeness proof for that admission.
Parameters
Name
Type
Description
id required
path · string
Responses
{
"200": {
"content": {
"application/cbor": {
"schema": {
"format": "binary",
"type": "string"
}
}
},
"description": "Canonical CBOR v2 SubmissionReceipt"
},
"400": {
"description": "Invalid admission id"
},
"403": {
"description": "The caller's role in its active tenant lacks read; or the signed request names the caller's active bank and the caller holds no read in the authoring institution (instruction.tenant of the admission): it is not a member there, or its membership there lacks read. A counterparty signer of a multi-party admission gets this answer; its text names only the authoring institution, which that caller reads in the admission receipt"
},
"404": {
"description": "No admission, or the signed request does not name the caller's active bank: one answer for both, the one GET /v1/admissions/{id} gives"
},
"503": {
"description": "Evidence custody pending"
}
}
Reconcile and retrieve the original admission receipt
tenant reader
Returns the original AdmissionReceipt. Every institution the signed request names reads it through its own active tenant and role. A multi-party admission has one receipt and one tenant sequence, the author's: each other required signer retrieves the same receipt here, verifies it against its own pins and retains it. An institution the request does not name gets 404. This grants no access to another bank's tenant-wide checkpoints or policies.
Parameters
Name
Type
Description
id required
path · string
Responses
{
"200": {
"content": {
"application/cbor": {
"schema": {
"format": "binary",
"type": "string"
}
}
},
"description": "Canonical CBOR AdmissionReceipt"
},
"400": {
"description": "Invalid admission id"
},
"403": {
"description": "The caller's role in its active tenant lacks read"
},
"404": {
"description": "No admission, or the signed request does not name the caller's active bank"
},
"503": {
"description": "Evidence custody pending"
}
}
Admit an exact bank-signed intent or record a refusal
tenant operator (settle)
Canonical CBOR AdmissionRequest (instruction, inputs, intent). The host adds and reconstructs nothing after signing. In every message each leg must name the institution that owes it (its obligor), and the authoring institution (instruction.tenant) must be one of those obligors. Single-author message (instruction.signers absent): intent.signatures holds exactly one entry, by the authoring institution, signed frame.bankintent.v2 under its installed governance root, with no reasons_pub. Only its policy is evaluated, even where a leg names another institution. Multi-party message (instruction.signers is all_obligors): the required signers are the distinct obligors of the legs, and there must be at least two. intent.signatures holds exactly one entry per required signer, in ascending order of the institution UUID bytes, and no other entry. Each entry is signed frame.bankintent.v2 under that institution's own governance root over the same instruction hash and inputs digest. The author's entry has no reasons_pub; every other entry names that institution's own 32-byte box key as reasons_pub, which takes the place of intent.bank_pub in the bytes that entry signs and must differ from intent.bank_pub. The TEE evaluates every required signer's active policy and admits only if all accept; the decision names each one's policy hash and version in obligor_policies. A multi-party denial does not say whose policy denied: the author's sealed reasons are in reasons_for_bank (sealed to intent.bank_pub) and each other signer's in its own party_reasons entry (sealed to its reasons_pub), each stating only that institution's verdict. Only a member of the authoring institution posts, with every signature already in the request; the other signers add theirs through the shared-request workflow. The host adds no signer check before the TEE. It first applies its own floors, which do not read signers and refuse for their own reasons: invalid_settlement_shape (the settlement shape rules), counterparty_floor_refused (the host could not confirm, including when its registry read fails, that every counterparty a leg names, by an obligor other than the author or by alias, is an active registered counterparty of the author that covers the leg; or an external destination leg names no party), counterparty_identity_conflict (a leg's counterparty alias does not resolve to its obligor) and clock_input_not_current (the request's clock input states a now more than one hour before the host's clock, or more than 60 seconds after it, when the host would ask the TEE; exactly one hour before and exactly 60 seconds after are accepted). The host judges clock_input_not_current each time it would ask the TEE, so a request it retained in time but first decides later than the bound, on a retry after an outage or in recovery, is refused; a request already decided keeps its receipt. A request with no clock input, or whose clock input states no positive now, is not judged by this rule. After this refusal fetch a new clock input and sign a new message. A request that passes them goes to the TEE, which checks the signers declaration and every signature: a request with a missing, misplaced or invalid signature, or an invalid signers declaration, is refused there and recorded intake_verification_refused, as are the TEE's other intake refusals, such as no active policy. Each of these refusals is a 200 receipt with no TEE decision. It occupies (tenant, bank_request_id), so the correction is a new message under a new bank_request_id. A TEE or custody failure outside these refusals is 503. An exact repeat returns the original receipt; different bytes at an occupied identity are recorded as request_identity_conflict. The response binds the TEE decision to verified durable SecLog custody. A refusal is evidence, never admission or payment completion. Retry identical bytes after 503; an uncertain append is not proof that admission failed.
{
"200": {
"content": {
"application/cbor": {
"schema": {
"format": "binary",
"type": "string"
}
}
},
"description": "Canonical CBOR AdmissionReceipt. intent_admitted carries the TEE's authorised decision. intent_refused carries either a TEE-signed denial, or a host refusal reason and no TEE decision"
},
"400": {
"description": "Malformed request"
},
"403": {
"description": "The caller may not post for instruction.tenant: among the causes, it has no membership there whose role grants settle, that tenant is not active, or its role in its active tenant lacks settle. Only a member of the authoring institution posts a request, single-author or multi-party"
},
"415": {
"description": "application/cbor required"
},
"503": {
"description": "Custody unresolved; retry identical signed request"
}
}
The legs of one admission the active bank takes part in, each with its reconciled report status as the work queue reports it, so a leg awaiting a report can be told from one owed by a party that is not on Frame. Host record, not evidence.
Parameters
Name
Type
Description
id required
path · string
Responses
{
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"id": {
"format": "uuid",
"type": "string"
},
"legs": {
"items": {
"properties": {
"asset": {
"type": "string"
},
"bank": {
"format": "uuid",
"type": "string"
},
"report_status": {
"description": "This leg's reconciled bank-report status, present once the request is admitted and its reconciliation is readable: missing until a report for this leg is held, then completed, partial, failed, unconfirmed, unknown or conflicting. not_expected marks a leg owed by a party that is not a tenant on this host: Frame accepts a leg's report only from its obligor, so no report is expected and the stage ignores the leg. Host record, not evidence; the admission's reconciliation pack is the evidence.",
"enum": [
"missing",
"not_expected",
"completed",
"partial",
"failed",
"unconfirmed",
"unknown",
"conflicting"
],
"type": "string"
},
"role": {
"type": "string"
},
"scale": {
"type": "integer"
},
"units": {
"description": "Exact minor units as a decimal string; never a JSON number.",
"type": "string"
}
},
"required": [
"bank",
"role",
"units",
"asset",
"scale"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"id",
"legs"
],
"type": "object"
}
}
},
"description": "The admission's legs"
},
"403": {
"description": "Role cannot perform this action"
},
"404": {
"description": "Admission not visible to this bank"
},
"503": {
"description": "Work status unavailable; retry"
}
}
Canonical CBOR BankIntentSignature: bank, sig and, for a signer other than the author, reasons_pub. The active bank must match the signing bank, and the signature must bind the immutable request under its pinned governance root (frame.bankintent.v2). On a multi-party request (instruction.signers is all_obligors) each required signer adds its own entry: the author's has no reasons_pub; every other signer's names its own 32-byte box key as reasons_pub, which its signature covers and which must differ from intent.bank_pub. That signer's sealed denial reasons go to that key. On a single-author request only the authoring bank signs, and its entry has no reasons_pub. Entries are kept in required-signer order whatever order the banks sign in. Exact replay is idempotent; a different entry from a bank that already signed is 409. The response is the request view: missing lists the required signers still to sign.
{
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Bank-scoped response"
},
"403": {
"description": "Role cannot perform this action"
},
"404": {
"description": "Request not visible to this bank"
},
"409": {
"description": "signature conflicts with the retained request: the entry is not retained. The expected cause is a different entry from a bank that already signed. The host gives the same answer to any other failure to retain the entry, so read the request to see what it holds"
},
"422": {
"description": "Entry not added. Multi-party request: only a required signer signs, over this exact request. Single-author request: only the authoring bank signs, over this exact request. Among the causes: the entry names a bank other than the caller's, that bank is not a required signer, the bank has no pinned governance root, the signature does not verify under it, on a multi-party request reasons_pub is present on the author's entry, absent from another signer's, or equal to intent.bank_pub, or on a single-author request the entry carries reasons_pub, attached or signed over"
},
"503": {
"description": "Unavailable or evidence pending; retry identical bytes"
}
}
Submit the fully signed shared request for admission
Active participating bank session
Any participating bank with settle permission may submit once the signature set is complete: every required signer of a multi-party request, the authoring bank of a single-author request. Empty POST body. The retained request bytes go to admission unchanged, under the authoring institution's tenant and bank_request_id. Before the set is complete the answer is 409 and nothing is recorded. Returns the existing AdmissionReceipt, including sealed refusals. Retry the same proposal after 503; do not create a new payment identity.
Parameters
Name
Type
Description
id required
path · string
Responses
{
"200": {
"content": {
"application/cbor": {
"schema": {
"format": "binary",
"type": "string"
}
}
},
"description": "Canonical AdmissionReceipt"
},
"403": {
"description": "Role cannot perform this action"
},
"404": {
"description": "Request not visible to this bank"
},
"409": {
"description": "Signature set incomplete; nothing is recorded. Multi-party request: waiting for every required signer's signature. Single-author request: waiting for the authoring bank's signature, which a proposal created through this API already carries, so this answer is not expected"
},
"503": {
"description": "Unavailable or evidence pending; retry identical bytes"
}
}
Only a named bank with read permission in its own tenant can read this request. Returns id, bank, initiator, reference, the canonical request bytes as base64 (request), banks, missing, any admission_id and created_at. missing lists the required signers with no signature entry yet, in the order their entries take in the request (ascending institution UUID bytes). A single-author request has one required signer, the authoring bank.
Parameters
Name
Type
Description
id required
path · string
Responses
{
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Bank-scoped response"
},
"403": {
"description": "Role cannot perform this action"
},
"404": {
"description": "Request not visible to this bank"
},
"503": {
"description": "Unavailable or evidence pending; retry identical bytes"
}
}
Canonical CBOR AdmissionRequest carrying the authoring bank's signature entry alone; the caller's active bank must be instruction.tenant. In every proposal each leg must name a bank and the author must be one of the banks named. A multi-party proposal declares instruction.signers as all_obligors and must also name at least two distinct banks, so that its required signers can be computed; it must carry the author's box key in intent.bank_pub, because the author's sealed reasons go to that key and an all-zero key opens without a secret (POST /v1/admissions makes no such check). The author's entry has no reasons_pub, in a multi-party and in a single-author proposal alike. All named banks must be registered and active. Same reference and body returns the retained proposal; changed body is 409. This is coordination, not admission: nothing is decided or recorded as evidence before submit.
{
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Bank-scoped response"
},
"403": {
"description": "Role cannot perform this action"
},
"404": {
"description": "Request not visible to this bank"
},
"409": {
"description": "Changed identity: reference already binds another request; use a new reference for a correction"
},
"422": {
"description": "Proposal not retained. proposal requires your bank's valid signature over the exact instruction and inputs: among other causes the proposal is not authored and signed by the caller's bank alone, its hashes do not bind the instruction and inputs, its signers declaration is invalid, the author's entry carries reasons_pub (in a multi-party or a single-author proposal, attached or signed over), the bank has no pinned governance root, bank_request_id is empty or longer than 200 bytes, or the proposal names no bank, more than 8 banks or more than 32 legs. Otherwise one of: a proposal that declares signers must carry your bank's box key in intent.bank_pub (a multi-party proposal whose intent.bank_pub is all zeros); every leg must name a bank; all named banks must be registered and active; requesting bank must be an obligor"
},
"503": {
"description": "Unavailable or evidence pending; retry identical bytes"
}
}
Tenant-scoped composer defaults, not admission authority. GET returns available routes plus all configured routes; only active registered asset/form corridors are available. Every resolved payment still requires bank signatures and enclave admission.
Parameters
Name
Type
Description
X-Frame-Tenant required
header · string
id required
path · string
Responses
{
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Bank-scoped response"
},
"400": {
"description": "Invalid destination configuration"
},
"403": {
"description": "Role cannot perform this action"
},
"404": {
"description": "Request not visible to this bank"
},
"422": {
"description": "Invalid signature, bank identity or request binding"
},
"503": {
"description": "Unavailable or evidence pending; retry identical bytes"
}
}
List saved payment destinations and available rails
Active participating bank session
Tenant-scoped composer defaults, not admission authority. GET returns available routes plus all configured routes; only active registered asset/form corridors are available. Every resolved payment still requires bank signatures and enclave admission.
Parameters
Name
Type
Description
X-Frame-Tenant required
header · string
Responses
{
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Bank-scoped response"
},
"400": {
"description": "Invalid destination configuration"
},
"403": {
"description": "Role cannot perform this action"
},
"404": {
"description": "Request not visible to this bank"
},
"422": {
"description": "Invalid signature, bank identity or request binding"
},
"503": {
"description": "Unavailable or evidence pending; retry identical bytes"
}
}
Tenant-scoped composer defaults, not admission authority. GET returns available routes plus all configured routes; only active registered asset/form corridors are available. Every resolved payment still requires bank signatures and enclave admission.
Parameters
Name
Type
Description
X-Frame-Tenant required
header · string
JSON request fields
Field
Type
Description
asset required
string
destination_account required
string
destination_finality required
string
destination_id
string
Stable destination identity shared by explicitly grouped rails. Returned for legacy routes too.
id required
string
name required
string
peer required
string
rail required
string
scale required
integer
source_account required
string
source_finality required
string
token
string
Nonzero token contract; required only for stablecoin.
token_chain_id
string
Exact EVM chain ID in decimal, at most 18446744073709551615; required only for stablecoin.
Request body
{
"content": {
"application/json": {
"schema": {
"description": "A tenant-scoped destination has one or more route rows. Share destination_id, name and peer across its rails; account, asset and token fields belong to each route. Without destination_id, the server derives a stable ID from the legacy name/peer/asset/scale/accounts tuple. Stablecoin requires lowercase nonzero EVM wallet and token addresses, a canonical decimal uint64 chain ID and chain_final on both legs. Fiat routes must omit token fields. Amounts use the chosen asset and scale; no conversion is implied.",
"properties": {
"asset": {
"pattern": "^[A-Z]{3,12}$",
"type": "string"
},
"destination_account": {
"maxLength": 256,
"minLength": 1,
"type": "string"
},
"destination_finality": {
"enum": [
"instant",
"delayed_revocable",
"next_window",
"chain_final"
],
"type": "string"
},
"destination_id": {
"description": "Stable destination identity shared by explicitly grouped rails. Returned for legacy routes too.",
"format": "uuid",
"type": "string"
},
"id": {
"format": "uuid",
"type": "string"
},
"name": {
"maxLength": 256,
"type": "string"
},
"peer": {
"format": "uuid",
"type": "string"
},
"rail": {
"enum": [
"ach",
"wire",
"rtp",
"fednow",
"sepa",
"stablecoin"
],
"type": "string"
},
"scale": {
"maximum": 18,
"minimum": 0,
"type": "integer"
},
"source_account": {
"maxLength": 256,
"minLength": 1,
"type": "string"
},
"source_finality": {
"enum": [
"instant",
"delayed_revocable",
"next_window",
"chain_final"
],
"type": "string"
},
"token": {
"description": "Nonzero token contract; required only for stablecoin.",
"pattern": "^0x[0-9a-f]{40}$",
"type": "string"
},
"token_chain_id": {
"description": "Exact EVM chain ID in decimal, at most 18446744073709551615; required only for stablecoin.",
"pattern": "^[1-9][0-9]{0,19}$",
"type": "string"
}
},
"required": [
"id",
"name",
"peer",
"asset",
"scale",
"rail",
"source_account",
"destination_account",
"source_finality",
"destination_finality"
],
"type": "object"
}
}
},
"required": true
}
Responses
{
"200": {
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
},
"description": "Bank-scoped response"
},
"400": {
"description": "Invalid destination configuration"
},
"403": {
"description": "Role cannot perform this action"
},
"404": {
"description": "Request not visible to this bank"
},
"409": {
"description": "Destination ID already names a different counterparty or destination name"
},
"422": {
"description": "Invalid signature, bank identity or request binding"
},
"503": {
"description": "Unavailable or evidence pending; retry identical bytes"
}
}
Operational index of incoming and outgoing requests, newest first, in pages of 50; more indicates another page. Page with the opaque next_cursor: rows created while a client pages never shift pages already read, which offset cannot promise. offset is kept for existing clients and cannot be combined with cursor. This is not cryptographic completeness.
Parameters
Name
Type
Description
offset
query · integer
cursor
query · string
The next_cursor of the previous page.
Responses
{
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"bank": {
"format": "uuid",
"type": "string"
},
"items": {
"items": {
"properties": {
"counterparties": {
"description": "The other banks the request names as obligors, in instruction order. Names are host records from Frame's tenant registry or the active bank's counterparty registrations, not evidence.",
"items": {
"properties": {
"bank": {
"format": "uuid",
"type": "string"
},
"name": {
"description": "The bank's name in Frame's tenant registry or, when it has none, the alias the active bank registered it under as a counterparty; empty when it has neither. Host record, not evidence.",
"type": "string"
}
},
"required": [
"bank",
"name"
],
"type": "object"
},
"type": "array"
},
"created_at": {
"format": "date-time",
"type": "string"
},
"decision": {
"description": "Present once a receipt is stored: accepted and denied_by_policy are the enclave's signed decision; rejected_by_host is a refusal the host recorded without a TEE decision. Host record read from the stored receipt, not verified here; verify the receipt before relying on it. Acceptance is a signed decision, not payment.",
"enum": [
"accepted",
"denied_by_policy",
"rejected_by_host"
],
"type": "string"
},
"id": {
"format": "uuid",
"type": "string"
},
"kind": {
"enum": [
"request",
"admission"
],
"type": "string"
},
"legs": {
"items": {
"properties": {
"asset": {
"type": "string"
},
"bank": {
"format": "uuid",
"type": "string"
},
"report_status": {
"description": "This leg's reconciled bank-report status, present once the request is admitted and its reconciliation is readable: missing until a report for this leg is held, then completed, partial, failed, unconfirmed, unknown or conflicting. not_expected marks a leg owed by a party that is not a tenant on this host: Frame accepts a leg's report only from its obligor, so no report is expected and the stage ignores the leg. Host record, not evidence; the admission's reconciliation pack is the evidence.",
"enum": [
"missing",
"not_expected",
"completed",
"partial",
"failed",
"unconfirmed",
"unknown",
"conflicting"
],
"type": "string"
},
"role": {
"type": "string"
},
"scale": {
"type": "integer"
},
"units": {
"description": "Exact minor units as a decimal string; never a JSON number.",
"type": "string"
}
},
"required": [
"bank",
"role",
"units",
"asset",
"scale"
],
"type": "object"
},
"nullable": true,
"type": "array"
},
"policy_version": {
"description": "Present with accepted or denied_by_policy: the authoring institution's policy version the stored receipt says judged the request. Host record, not verified here.",
"minimum": 1,
"type": "integer"
},
"reference": {
"description": "The bank_request_id.",
"type": "string"
},
"stage": {
"description": "Operational hint derived from stored records, not verified payment evidence.",
"enum": [
"evidence_pending",
"awaiting_bank_signatures",
"awaiting_your_signature",
"ready_for_admission",
"refused",
"awaiting_bank_reports",
"reported_complete",
"exception"
],
"type": "string"
}
},
"required": [
"id",
"kind",
"reference",
"created_at",
"stage",
"legs",
"counterparties"
],
"type": "object"
},
"type": "array"
},
"more": {
"type": "boolean"
},
"next_cursor": {
"description": "Send as ?cursor= for the next page; empty when more is false. Opaque.",
"type": "string"
},
"offset": {
"type": "integer"
}
},
"required": [
"bank",
"items",
"offset",
"more",
"next_cursor"
],
"type": "object"
}
}
},
"description": "One page of the work queue"
},
"403": {
"description": "Role cannot perform this action"
},
"404": {
"description": "Request not visible to this bank"
},
"409": {
"description": "Changed identity or signatures still missing"
},
"422": {
"description": "Invalid signature, bank identity or request binding"
},
"503": {
"description": "Unavailable or evidence pending; retry identical bytes"
}
}
Authenticates email and password in local mode. Read data.token, data.expires_at and data.tenants. Current tokens expire after 12 hours and can be revoked earlier. Select an authorized tenant on subsequent requests. No client-credentials or API-key token grant is implemented.
Revokes the presented session token server-side until its natural expiry and clears the session cookie. A missing or already-invalid token is a successful no-op. Clearing the token on the client alone leaves it valid for up to 12 hours.
Responses
{
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
],
"type": "object"
},
"success": {
"type": "boolean"
}
},
"required": [
"success",
"data"
],
"type": "object"
}
}
},
"description": "Signed out."
},
"404": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Local sign-in is not enabled, or the session is a guest session, which simply expires."
},
"500": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "The session could not be revoked."
}
}
Returns role and capability-dependent UI/action metadata. Authorization remains enforced at each operation. This is discovery, not a substitute for checking errors. The `demo-authorise` action is listed only on a stack that holds the demo governance root, for a workspace pinned to that root and a caller with the policy capability.
Parameters
Name
Type
Description
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Returns success.data with username, role, capabilities, active tenant, memberships and session expiry when available. Memberships are evaluated per request; authority is not embedded in the token.
Parameters
Name
Type
Description
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Returns policies newest-first, including deactivation tombstones, plus active_in_enclave and active_policy_version. Compute the signature version floor from the maximum policies[].version (0 when empty), not from active_policy_version. A concurrent update invalidates signatures based on an older floor.
Parameters
Name
Type
Description
tenant
query · string
Optional explicit tenant UUID; membership checked. Defaults to active tenant.
party
query · string
Optional registered counterparty policy key.
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Returns the canonical bytes (hex) a key signs to prove possession of its binding, and the domain tag. Frame owns the encoding, so the client signs exactly what it will be verified against.
Parameters
Name
Type
Description
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Lists the tenant's registered key bindings, including each key's status (active, rotated or revoked). Policy governance keys are the attester keys with purpose approval.
Parameters
Name
Type
Description
tenant
query · string
Optional explicit tenant UUID; membership checked. Defaults to active tenant.
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Registers a key binding with the possession signature made by the key itself over the preimage returned by the preimage operation. Frame re-canonicalises and verifies the binding; the registration is sealed as a key_bound event. Only the public key is sent; the private key never leaves the browser.
Parameters
Name
Type
Description
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Appends a deactivation version and removes the active policy from the enclave. New settlement intake fails closed until another policy is activated. This operation uses the policy capability; its request carries no four-eyes signatures. History is retained. Read the new lineage before signing a reactivation.
Parameters
Name
Type
Description
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Signs the policy-governance delegation of a registered browser key under the demo governance root. Available only on a stack that holds the demo root (the sandbox), for a workspace whose governance the enclave reports as pinned to that root. The tenant is the session's active tenant; the body carries the key and nothing else. The checks run in this order: 403 `demo authorisation is refused on this stack` when the stack holds no demo root; 400 `key must be 64 hex characters`; 409 `key is not a live registered key of this workspace`; 409 `this workspace's governance root is not the demo root`, which also answers a workspace with no pinned root. The line has the format of `frame-governance authorise` and is valid for 365 days. Frame stores nothing and installs nothing: carry the line in the workspace's next policy activation, where the enclave verifies it against the pinned root. Frame never holds a real institution's root key.
Parameters
Name
Type
Description
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
JSON request fields
Field
Type
Description
key required
string
The browser's Ed25519 public key, 64 hex characters. It must be a live registered key of the session's tenant.
Request body
{
"content": {
"application/json": {
"schema": {
"properties": {
"key": {
"description": "The browser's Ed25519 public key, 64 hex characters. It must be a live registered key of the session's tenant.",
"type": "string"
}
},
"required": [
"key"
],
"type": "object"
}
}
},
"required": true
}
Responses
{
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"line": {
"description": "The delegation line: `frame.delegation.v1 tenant=\u003cuuid\u003e purpose=policy-governance root=\u003chex\u003e key=\u003chex\u003e not_after=\u003cunix seconds\u003e sig=\u003c128 hex\u003e`.",
"type": "string"
}
},
"required": [
"line"
],
"type": "object"
}
}
},
"description": "Successful response. Authorise a browser key in a demo workspace."
},
"400": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Invalid request body, or the key is not 64 hex characters."
},
"401": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Missing, expired, or revoked session."
},
"403": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Tenant or capability does not authorize this operation, or this stack holds no demo root."
},
"409": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "The key is not a live registered key of this workspace, or the workspace's governance root is not the demo root."
}
}
Returns pinned=false when the enclave has no governance for this policy key. When pinned, returns governance_root, delegations and gov_hash. Compare these with the bank-owned root and delegation set; do not derive trust solely from this response.
Parameters
Name
Type
Description
tenant
query · string
Optional explicit tenant UUID; membership checked. Defaults to active tenant.
party
query · string
Optional registered counterparty policy key.
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Returns the deployed policy authoring metadata and supported inputs. Compile and evaluate confidential source on the bank side with the matching authoring engine; retain the source and catalogue version.
Parameters
Name
Type
Description
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Responses
{
"200": {
"content": {
"application/json": {
"schema": {
"properties": {},
"type": "object"
}
}
},
"description": "Successful response. Read policy authoring metadata."
},
"401": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Missing, expired, or revoked session."
},
"403": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Tenant or capability does not authorize this operation."
}
}
Use leaf_index from the activation response. The CBOR artifact contains the sealed activation hashes; retain the authoring document bank-side and verify it against source_hash. It is an activation receipt, not a plaintext policy download.
Parameters
Name
Type
Description
leaf_index required
path · string
Zero-based sealed log leaf index.
anchor_tx
query · string
Optional anchor reference bytes carried in the pack. Supplying a value does not prove chain finality; omission uses a development reference.
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Responses
{
"200": {
"content": {
"application/cbor": {
"schema": {
"description": "Binary Frame verify-pack. Save the bytes; do not JSON-decode.",
"format": "binary",
"type": "string"
}
}
},
"description": "Successful response. Download a policy activation receipt."
},
"400": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Invalid request, malformed identifier, or unmet input requirement."
},
"401": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Missing, expired, or revoked session."
},
"403": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Tenant or capability does not authorize this operation."
},
"404": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Resource not found in the caller scope."
},
"500": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Internal failure."
}
}
Returns the standing scenario battery: fixed synthetic settlements, identical for every caller and tenant, with no policy content. Evaluate the policy being edited against them in the browser with the policy wasm; never send the draft to the host. The response is not wrapped in a data envelope.
Parameters
Name
Type
Description
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Responses
{
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"scenarios": {
"items": {
"description": "One synthetic settlement of the standing scenario battery, in the shape the policy wasm (framePolicyEvaluate) evaluates. It carries no policy content and no bank data.",
"properties": {
"id": {
"type": "string"
},
"inputs": {
"items": {
"properties": {
"amount": {
"description": "funds",
"properties": {
"asset": {
"type": "string"
},
"scale": {
"type": "integer"
},
"units": {
"description": "Integer minor units as a decimal string; never a float.",
"type": "string"
}
},
"required": [
"asset",
"scale",
"units"
],
"type": "object"
},
"approver": {
"description": "approval: approver id as hex.",
"type": "string"
},
"clear": {
"description": "screening",
"type": "boolean"
},
"expiry": {
"description": "kyc or funds expiry, milliseconds since the Unix epoch.",
"type": "integer"
},
"kind": {
"enum": [
"screening",
"kyc",
"clock",
"approval",
"funds"
],
"type": "string"
},
"level": {
"description": "kyc",
"enum": [
"standard",
"edd"
],
"type": "string"
},
"now": {
"description": "clock, milliseconds since the Unix epoch.",
"type": "integer"
},
"verified": {
"description": "kyc",
"type": "boolean"
}
},
"required": [
"kind"
],
"type": "object"
},
"type": "array"
},
"label": {
"type": "string"
},
"legs": {
"items": {
"properties": {
"asset": {
"type": "string"
},
"counterparty": {
"description": "Synthetic counterparty label; not a party of the bank's.",
"type": "string"
},
"finality_class": {
"type": "string"
},
"form": {
"type": "string"
},
"locked_rate": {
"description": "Present when the leg carries a locked cross-asset rate: integer units at a scale.",
"properties": {
"scale": {
"type": "integer"
},
"units": {
"type": "string"
}
},
"required": [
"units",
"scale"
],
"type": "object"
},
"rate_source": {
"type": "string"
},
"role": {
"enum": [
"source",
"destination"
],
"type": "string"
},
"scale": {
"type": "integer"
},
"units": {
"description": "Integer minor units as a decimal string; never a float.",
"type": "string"
}
},
"required": [
"role",
"form",
"asset",
"scale",
"units"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"id",
"label",
"legs",
"inputs"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"scenarios"
],
"type": "object"
}
}
},
"description": "Successful response. Read the policy scenario battery."
},
"401": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Missing, expired, or revoked session."
},
"403": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Tenant or capability does not authorize this operation."
}
}
Returns enclave_box_pub and trust_root as hex, log_id, policy metadata, and attestation fields when available. Validate the attestation and bind its measurement and key to your independent pins before sealing a policy.
Parameters
Name
Type
Description
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Responses
{
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"attestation_b64": {
"type": "string"
},
"attestation_mode": {
"type": "string"
},
"enclave_box_pub": {
"type": "string"
},
"log_id": {
"type": "string"
},
"measurement": {
"type": "string"
},
"policy": {
"properties": {},
"type": "object"
},
"trust_root": {
"type": "string"
}
},
"type": "object"
}
}
},
"description": "Successful response. Get the enclave sealing key and attestation."
},
"401": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Missing, expired, or revoked session."
},
"403": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Tenant or capability does not authorize this operation."
}
}
Both signers must be distinct, registered live approval keys and authorized by the enclave governance payload. The signed version floor is read by the server from current storage; there is no version_floor request field. Read GET /policies immediately before signing. This call is not idempotent: after a timeout, reconcile versions and hashes before preparing another submission. Omit rules to avoid retaining plaintext authoring source on the host.
Parameters
Name
Type
Description
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
JSON request fields
Field
Type
Description
author_pub required
string
Registered live governance Ed25519 key, 32 bytes as 64 hex characters. This is the institutional authorising key: the tenant governance root or a key it delegated for policy governance.
author_sig required
string
64-byte Ed25519 signature (128 hex characters) over the framed preimage, signed under frame.policy.v4 (institutional authorisation). Signatures under earlier versions (frame.policy.v2, frame.policy.v3) are refused.
catalog_version
string
Optional authoring catalogue version. Recorded as submitter-provided metadata, not cryptographic proof of the lowering.
ciphertext_b64 required
string
Base64 crypto_box_seal ciphertext of the versioned governance JSON payload, including CEL. Verify the enclave sealing key before encrypting. Raw CEL alone is not a valid current payload.
expiry
integer
Unix SECONDS at which the approval expires; zero means no expiry. Included in both signatures.
name
string
Optional display name, outside the sealed policy.
party
string
Optional registered counterparty. When set, the counterparty UUID is the policy key used in the signature and version lineage.
rules
string
Optional plaintext authoring metadata retained by the host. Omit to keep the bank policy source confidential.
source_hash
string
32-byte hex source-document commitment, SHA-256(DomainSep(frame.policy.source.v2, source bytes)). Empty means the all-zero absent commitment.
tenant
string
Tenant whose live governance key registry authorizes both signers. Send explicitly.
Request body
{
"content": {
"application/json": {
"schema": {
"properties": {
"author_pub": {
"description": "Registered live governance Ed25519 key, 32 bytes as 64 hex characters. This is the institutional authorising key: the tenant governance root or a key it delegated for policy governance.",
"pattern": "^[0-9a-fA-F]{64}$",
"type": "string"
},
"author_sig": {
"description": "64-byte Ed25519 signature (128 hex characters) over the framed preimage, signed under frame.policy.v4 (institutional authorisation). Signatures under earlier versions (frame.policy.v2, frame.policy.v3) are refused.",
"pattern": "^[0-9a-fA-F]{128}$",
"type": "string"
},
"catalog_version": {
"description": "Optional authoring catalogue version. Recorded as submitter-provided metadata, not cryptographic proof of the lowering.",
"type": "string"
},
"ciphertext_b64": {
"description": "Base64 crypto_box_seal ciphertext of the versioned governance JSON payload, including CEL. Verify the enclave sealing key before encrypting. Raw CEL alone is not a valid current payload.",
"type": "string"
},
"expiry": {
"description": "Unix SECONDS at which the approval expires; zero means no expiry. Included in both signatures.",
"type": "integer"
},
"name": {
"description": "Optional display name, outside the sealed policy.",
"type": "string"
},
"party": {
"description": "Optional registered counterparty. When set, the counterparty UUID is the policy key used in the signature and version lineage.",
"type": "string"
},
"rules": {
"description": "Optional plaintext authoring metadata retained by the host. Omit to keep the bank policy source confidential.",
"type": "string"
},
"source_hash": {
"description": "32-byte hex source-document commitment, SHA-256(DomainSep(frame.policy.source.v2, source bytes)). Empty means the all-zero absent commitment.",
"type": "string"
},
"tenant": {
"description": "Tenant whose live governance key registry authorizes both signers. Send explicitly.",
"type": "string"
}
},
"required": [
"ciphertext_b64",
"author_pub",
"author_sig"
],
"type": "object"
}
}
},
"required": true
}
Responses
{
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"gov_hash": {
"type": "string"
},
"leaf_index": {
"description": "Coordinate for GET /v1/policies/receipts/{leaf_index}/pack.",
"type": "integer"
},
"party": {
"type": "string"
},
"policy_hash": {
"type": "string"
},
"seclogrs": {
"properties": {},
"type": "object"
},
"source_hash": {
"type": "string"
},
"tenant": {
"type": "string"
},
"version": {
"type": "integer"
}
},
"required": [
"tenant",
"version",
"policy_hash",
"gov_hash",
"leaf_index"
],
"type": "object"
}
}
},
"description": "Successful response. Install or update a client-sealed policy."
},
"400": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Invalid request, malformed identifier, or unmet input requirement."
},
"401": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Missing, expired, or revoked session."
},
"403": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Tenant or capability does not authorize this operation."
},
"404": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Resource not found in the caller scope."
},
"500": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Internal failure."
}
}
Returns success.data.items, capped at 50 versions, with name, version, hashes, status, and optional authoring metadata. Deactivation tombstones are omitted, so use GET /policies for the signing version floor. An empty items array means no versions: a named party that does not resolve is a 400 or 404, and a store failure is a 500, never an empty success envelope. Without an active tenant the implicit read returns an empty list.
Parameters
Name
Type
Description
tenant
query · string
Optional explicit tenant UUID; membership checked. Defaults to active tenant.
party
query · string
Optional registered counterparty policy key.
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Responses
{
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"properties": {
"items": {
"items": {
"properties": {
"activated_at": {
"format": "date-time",
"type": "string"
},
"catalog_version": {
"type": "string"
},
"gov_hash": {
"type": "string"
},
"has_source": {
"type": "boolean"
},
"name": {
"type": "string"
},
"party": {
"type": "string"
},
"policy_hash": {
"type": "string"
},
"source_hash": {
"type": "string"
},
"status": {
"enum": [
"active",
"superseded",
"deactivated"
],
"type": "string"
},
"tenant": {
"format": "uuid",
"type": "string"
},
"version": {
"type": "integer"
},
"yaml": {
"type": "string"
}
},
"required": [
"name",
"version",
"policy_hash",
"activated_at",
"tenant",
"yaml",
"has_source",
"status"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
},
"success": {
"type": "boolean"
}
},
"required": [
"success",
"data"
],
"type": "object"
}
}
},
"description": "Successful response. List policy versions for display."
},
"400": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Malformed party, or the party is the tenant itself."
},
"401": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Missing, expired, or revoked session."
},
"403": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Tenant or capability does not authorize this operation."
},
"404": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "The named party is not a registered counterparty."
},
"500": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "The policy history or counterparty registry could not be read."
}
}
Returns success.data.items, total, more and cursor: the active tenant's audit-log entries, newest first. The ref_id and entry_type filters apply before a page is cut, and the opaque cursor resumes strictly after the last entry of the previous page, so an old matching entry is never hidden behind newer unrelated ones. An invalid ref_id shape returns an empty list. A store failure is an error response, not an empty list. This is an operational view, not a completeness proof.
Parameters
Name
Type
Description
cursor
query · string
The cursor of the previous page. Opaque; send it back unchanged.
ref_id
query · string
Settlement UUID to match.
entry_type
query · string
Exact event kind to match.
limit
query · integer
Requested result count. Default 100; values clamp to 1–500. Invalid integers retain the default.
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Returns success.data.items, total, more and cursor: SecLog events visible to the active tenant, newest first. Page with the opaque cursor of the previous page; a page resumes strictly after the last event read, so events recorded meanwhile never repeat or displace it. A store or tenant failure is an error response, never an empty list; an empty items array means no events matched. A deployment without a store returns an empty page. This is an operational view, not a completeness proof.
Parameters
Name
Type
Description
cursor
query · string
The cursor of the previous page. Opaque; send it back unchanged.
limit
query · integer
Requested page size. Default and maximum 500; values clamp to 1–500. Invalid integers retain the default.
X-Frame-Tenant
header · string
Active tenant membership UUID. Send explicitly for deterministic tenancy.
Responses
{
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"data": {
"properties": {
"cursor": {
"description": "Send as ?cursor= for the next page; empty when more is false.",
"type": "string"
},
"items": {
"items": {
"properties": {
"decision": {
"type": "string"
},
"event_type": {
"type": "string"
},
"leaf_index": {
"type": "integer"
},
"ref_id": {
"type": "string"
},
"settlement_id": {
"type": "string"
},
"timestamp": {
"type": "string"
}
},
"required": [
"timestamp",
"event_type",
"decision",
"ref_id",
"settlement_id",
"leaf_index"
],
"type": "object"
},
"type": "array"
},
"more": {
"type": "boolean"
},
"total": {
"type": "integer"
}
},
"required": [
"items",
"total",
"cursor",
"more"
],
"type": "object"
},
"success": {
"type": "boolean"
}
},
"type": "object"
}
}
},
"description": "Successful response. Read a settlement event timeline."
},
"400": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Malformed cursor."
},
"401": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Missing, expired, or revoked session."
},
"403": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "Tenant or capability does not authorize this operation."
},
"500": {
"content": {
"application/json": {
"schema": {
"example": {
"error": "evidence not sealed yet — retry shortly"
},
"properties": {
"error": {
"description": "Human-readable explanation. Do not parse as a stable error code.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object"
}
}
},
"description": "The event store or tenant could not be read."
}
}