FRAME · API REFERENCE

Integrate settlement.
Verify the outcome.

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.

Authentication & tenants

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

# instruction.json contains the complete bank-authorized instruction.
curl --fail-with-body -sS "$FRAME_URL/settlements" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT" \
  -H 'Content-Type: application/json' --data-binary @instruction.json

# FRAME_SETTLEMENT is the id returned above.
curl --fail-with-body -sS "$FRAME_URL/settlements/$FRAME_SETTLEMENT" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT"
curl --fail-with-body -sS "$FRAME_URL/settlements/$FRAME_SETTLEMENT/pack" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT" --output settlement-pack.cbor

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

curl --fail-with-body -sS "$FRAME_URL/v1/policies/submit" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT" \
  -H 'Content-Type: application/json' --data-binary @signed-policy.json

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

ValueWire convention
Money & ratesExact 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.
IdentifiersFollow 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.
TimeRead the field contract: settlement inputs use milliseconds; JWT expiry uses Unix seconds. They are not interchangeable.
JSON bodiesSend Content-Type: application/json. The common JSON decoder limits requests to 1 MiB; individual endpoints can impose different limits.
PaginationEndpoint-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.

StatusClient action
400Correct the request or missing input; repeating unchanged usually cannot help.
401 / 403Reauthenticate or check tenant membership, capability, and signer authority.
404Check the ID, tenant, route, and deployment feature availability. Resources outside the active tenant can be hidden as not found.
409Inspect the conflict. For an unsealed settlement pack, honor Retry-After; other conflicts may need operator action.
429Back off and honor Retry-After when present.
5xxCheck 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.

Admission

POST /settlements

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.

Request body
{
  "content": {
    "application/cbor": {
      "schema": {
        "format": "binary",
        "type": "string"
      }
    }
  },
  "required": true
}
Responses
{
  "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"
  }
}
curl --fail-with-body -H "Authorization: Bearer $FRAME_TOKEN" -H "X-Frame-Tenant: $FRAME_TENANT" -H "Content-Type: application/cbor" --data-binary @request.cbor "$FRAME_URL/settlements" --output receipt.cbor

POST /v1/admissions/clock-input

Obtain the clock input to sign into a message

tenant reader

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

FieldTypeDescription
instruction_hashstringInstructionHash of the instruction the institution is about to sign, 64 lowercase hex characters.
tenantstringThe 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"
  }
}
curl --fail-with-body -H "Authorization: Bearer $FRAME_TOKEN" -H "X-Frame-Tenant: $FRAME_TENANT" -H "Content-Type: application/json" --data '{"tenant":"'$FRAME_TENANT'","instruction_hash":"<64 hex>"}' "$FRAME_URL/v1/admissions/clock-input" --output clock.cbor

POST /v1/admissions/{id}/attempts

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.

Parameters

NameTypeDescription
id
required
path · string
Request body
{
  "content": {
    "application/cbor": {
      "schema": {
        "format": "binary",
        "type": "string"
      }
    }
  },
  "required": true
}
Responses
{
  "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"
  }
}
curl --fail-with-body -H "Authorization: Bearer $FRAME_TOKEN" -H "X-Frame-Tenant: $FRAME_TENANT" -H "Content-Type: application/cbor" --data-binary @attempt.cbor "$FRAME_URL/v1/admissions/{id}/attempts" --output receipt.cbor

GET /v1/admissions/{id}/outcomes

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

NameTypeDescription
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"
  }
}
curl --fail-with-body -H "Authorization: Bearer $FRAME_TOKEN" -H "X-Frame-Tenant: $FRAME_TENANT" "$FRAME_URL/v1/admissions/{id}/outcomes" --output receipt.cbor

POST /v1/admissions/{id}/outcomes

Record a bank-signed execution report

tenant operator (settle)

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.

Parameters

NameTypeDescription
id
required
path · string
Request body
{
  "content": {
    "application/cbor": {
      "schema": {
        "format": "binary",
        "type": "string"
      }
    }
  },
  "required": true
}
Responses
{
  "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"
  }
}
curl --fail-with-body -H "Authorization: Bearer $FRAME_TOKEN" -H "X-Frame-Tenant: $FRAME_TENANT" -H "Content-Type: application/cbor" --data-binary @request.cbor "$FRAME_URL/v1/admissions/{id}/outcomes" --output receipt.cbor

GET /v1/admissions/{id}/submission-receipt

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

NameTypeDescription
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"
  }
}
curl --fail-with-body -H "Authorization: Bearer $FRAME_TOKEN" -H "X-Frame-Tenant: $FRAME_TENANT" "$FRAME_URL/v1/admissions/{id}/submission-receipt" --output receipt.cbor

GET /v1/admissions/{id}

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

NameTypeDescription
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"
  }
}
curl --fail-with-body -H "Authorization: Bearer $FRAME_TOKEN" -H "X-Frame-Tenant: $FRAME_TENANT" "$FRAME_URL/v1/admissions/{id}" --output receipt.cbor

POST /v1/admissions

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.

Request body
{
  "content": {
    "application/cbor": {
      "schema": {
        "format": "binary",
        "type": "string"
      }
    }
  },
  "required": true
}
Responses
{
  "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"
  }
}
curl --fail-with-body -H "Authorization: Bearer $FRAME_TOKEN" -H "X-Frame-Tenant: $FRAME_TENANT" -H "Content-Type: application/cbor" --data-binary @request.cbor "$FRAME_URL/v1/admissions" --output receipt.cbor

GET /v1/bank-workflow/admissions/{id}/legs

Read an admission’s legs and report status

Active participating bank session

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

NameTypeDescription
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"
  }
}

GET /v1/bank-workflow/readiness

Read bank policy readiness

Active participating bank session

Active bank policy version and public governance root. This does not supply independent verification pins or certify a bank connection.

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"
  },
  "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"
  }
}

POST /v1/bank-workflow/requests/{id}/signatures

Add your bank’s signature

Active participating bank session

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.

Parameters

NameTypeDescription
id
required
path · string
Request body
{
  "content": {
    "application/cbor": {
      "schema": {
        "format": "binary",
        "type": "string"
      }
    }
  },
  "required": true
}
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"
  },
  "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"
  }
}

POST /v1/bank-workflow/requests/{id}/submit

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

NameTypeDescription
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"
  }
}

GET /v1/bank-workflow/requests/{id}

Read a shared request

Active participating bank session

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

NameTypeDescription
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"
  }
}

POST /v1/bank-workflow/requests

Share an immutable bank-signed proposal

Active participating bank session

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.

Request body
{
  "content": {
    "application/cbor": {
      "schema": {
        "format": "binary",
        "type": "string"
      }
    }
  },
  "required": true
}
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"
  },
  "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"
  }
}

DELETE /v1/bank-workflow/routes/{id}

Remove a saved payment route

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

NameTypeDescription
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"
  }
}

GET /v1/bank-workflow/routes

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

NameTypeDescription
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"
  }
}

POST /v1/bank-workflow/routes

Save agreed payment destination and rail

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

NameTypeDescription
X-Frame-Tenant
required
header · string

JSON request fields

FieldTypeDescription
asset
required
string
destination_account
required
string
destination_finality
required
string
destination_idstringStable 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
tokenstringNonzero token contract; required only for stablecoin.
token_chain_idstringExact 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"
  }
}

GET /v1/bank-workflow

List the active bank’s work queue

Active participating bank session

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

NameTypeDescription
offsetquery · integer
cursorquery · stringThe 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"
  }
}

GET /v1/completeness/{tenant}

Retrieve checkpoint consistency and retained receipt inclusion proofs

tenant reader

Parameters

NameTypeDescription
tenant
required
path · string
previousquery · integerRetained previous checkpoint height; default genesis (0). Compare the returned previous checkpoint to the independently retained bytes.
sequencesquery · stringComma-separated retained receipt sequences, at most 256. Newer receipts remain pending coverage; no bank-outcome or public-witness claim.
Responses
{
  "200": {
    "content": {
      "application/cbor": {
        "schema": {
          "format": "binary",
          "type": "string"
        }
      }
    },
    "description": "Canonical CBOR v2 SubmissionClaim with optional checkpoint witness root-binding evidence. Independently confirm the root on the pinned public chain."
  },
  "404": {
    "description": "No admission"
  },
  "503": {
    "description": "Evidence custody pending"
  }
}
curl --fail-with-body -H "Authorization: Bearer $FRAME_TOKEN" -H "X-Frame-Tenant: $FRAME_TENANT" "$FRAME_URL/v1/completeness/{tenant}" --output receipt.cbor

Authentication

GET /v1/auth/config

Discover authentication mode

Public · no session required

Call before login. The success.data.mode field identifies local or dev-unverified mode. Local login requires an onboarded active account.

Responses
{
  "200": {
    "content": {
      "application/json": {
        "example": {
          "data": {
            "login_url": "/v1/auth/login",
            "me_url": "/v1/me",
            "mode": "local",
            "policy_console_contract": 3
          },
          "success": true
        },
        "schema": {
          "properties": {
            "data": {
              "properties": {
                "google_url": {
                  "type": "string"
                },
                "login_url": {
                  "type": "string"
                },
                "me_url": {
                  "type": "string"
                },
                "mode": {
                  "enum": [
                    "local",
                    "dev-unverified"
                  ],
                  "type": "string"
                },
                "policy_console_contract": {
                  "type": "integer"
                },
                "policy_console_url": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "success": {
              "type": "boolean"
            }
          },
          "required": [
            "success",
            "data"
          ],
          "type": "object"
        }
      }
    },
    "description": "Successful response. Discover authentication mode."
  }
}
curl --fail-with-body -sS "$FRAME_URL/v1/auth/config"

POST /v1/auth/login

Create a bank operator session

Public · no session required

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.

JSON request fields

FieldTypeDescription
email
required
stringOnboarded active bank operator email.
password
required
string
Request body
{
  "content": {
    "application/json": {
      "schema": {
        "properties": {
          "email": {
            "description": "Onboarded active bank operator email.",
            "type": "string"
          },
          "password": {
            "type": "string",
            "writeOnly": true
          }
        },
        "required": [
          "email",
          "password"
        ],
        "type": "object"
      }
    }
  },
  "required": true
}
Responses
{
  "200": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "data": {
              "properties": {
                "email": {
                  "type": "string"
                },
                "expires_at": {
                  "description": "Unix seconds; current session lifetime is 12 hours.",
                  "type": "integer"
                },
                "tenants": {
                  "items": {
                    "properties": {
                      "id": {
                        "format": "uuid",
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "party": {
                        "type": "string"
                      },
                      "role": {
                        "enum": [
                          "viewer",
                          "operator",
                          "approver",
                          "admin"
                        ],
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "role",
                      "status",
                      "party"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "token": {
                  "description": "Identity-only bearer JWT. Treat as a secret.",
                  "type": "string"
                }
              },
              "required": [
                "token",
                "expires_at",
                "email",
                "tenants"
              ],
              "type": "object"
            },
            "success": {
              "type": "boolean"
            }
          },
          "required": [
            "success",
            "data"
          ],
          "type": "object"
        }
      }
    },
    "description": "Successful response. Create a bank operator session."
  },
  "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."
  },
  "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."
  },
  "429": {
    "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": "Rate limited. Back off; honor Retry-After when supplied."
  },
  "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."
  }
}
curl --fail-with-body -sS -X POST "$FRAME_URL/v1/auth/login" \
  -H 'Content-Type: application/json' --data-binary @login.json

POST /v1/auth/logout

End the current session

Self-verifying · acts on the session it is sent

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."
  }
}
curl --fail-with-body -sS -X POST "$FRAME_URL/v1/auth/logout" \
  -H "Authorization: Bearer $FRAME_TOKEN"

GET /v1/capabilities

Discover permitted actions

Bank session · read capability

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

NameTypeDescription
X-Frame-Tenantheader · stringActive tenant membership UUID. Send explicitly for deterministic tenancy.
Responses
{
  "200": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "data": {
              "properties": {
                "actions": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "capabilities": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "role": {
                  "enum": [
                    "viewer",
                    "operator",
                    "approver",
                    "admin"
                  ],
                  "type": "string"
                },
                "sections": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "required": [
                "role",
                "capabilities",
                "actions",
                "sections"
              ],
              "type": "object"
            },
            "success": {
              "type": "boolean"
            }
          },
          "required": [
            "success",
            "data"
          ],
          "type": "object"
        }
      }
    },
    "description": "Successful response. Discover permitted actions."
  },
  "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."
  }
}
curl --fail-with-body -sS "$FRAME_URL/v1/capabilities" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT"

GET /v1/me

Read identity and tenant memberships

Bank session · read capability

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

NameTypeDescription
X-Frame-Tenantheader · stringActive tenant membership UUID. Send explicitly for deterministic tenancy.
Responses
{
  "200": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "data": {
              "properties": {
                "capabilities": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "role": {
                  "enum": [
                    "viewer",
                    "operator",
                    "approver",
                    "admin"
                  ],
                  "type": "string"
                },
                "session_exp": {
                  "description": "Session expiry, unix seconds. Present when the request carries a session.",
                  "type": "integer"
                },
                "tenant": {
                  "description": "The active tenant. Present when tenancy resolved for the request.",
                  "format": "uuid",
                  "type": "string"
                },
                "tenants": {
                  "description": "Every membership of the caller. Present when tenancy resolved for the request.",
                  "items": {
                    "properties": {
                      "id": {
                        "format": "uuid",
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "party": {
                        "type": "string"
                      },
                      "role": {
                        "enum": [
                          "viewer",
                          "operator",
                          "approver",
                          "admin"
                        ],
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "role",
                      "status",
                      "party"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "username": {
                  "type": "string"
                }
              },
              "required": [
                "username",
                "role",
                "capabilities"
              ],
              "type": "object"
            },
            "success": {
              "type": "boolean"
            }
          },
          "required": [
            "success",
            "data"
          ],
          "type": "object"
        }
      }
    },
    "description": "Successful response. Read identity and tenant memberships."
  },
  "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."
  }
}
curl --fail-with-body -sS "$FRAME_URL/v1/me" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT"

Policies

GET /policies

Read policy lineage including deactivations

Bank session · read capability

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

NameTypeDescription
tenantquery · stringOptional explicit tenant UUID; membership checked. Defaults to active tenant.
partyquery · stringOptional registered counterparty policy key.
X-Frame-Tenantheader · stringActive tenant membership UUID. Send explicitly for deterministic tenancy.
Responses
{
  "200": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "active_in_enclave": {
              "type": "boolean"
            },
            "active_policy_version": {
              "type": "integer"
            },
            "policies": {
              "items": {
                "properties": {
                  "activated_at": {
                    "type": "string"
                  },
                  "catalog_version": {
                    "type": "string"
                  },
                  "deactivated": {
                    "type": "boolean"
                  },
                  "gov_hash": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "party": {
                    "type": "string"
                  },
                  "policy_hash": {
                    "type": "string"
                  },
                  "rules": {
                    "type": "string"
                  },
                  "source_hash": {
                    "type": "string"
                  },
                  "tenant": {
                    "type": "string"
                  },
                  "version": {
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "policies",
            "active_in_enclave",
            "active_policy_version"
          ],
          "type": "object"
        }
      }
    },
    "description": "Successful response. Read policy lineage including deactivations."
  },
  "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."
  },
  "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."
  }
}
curl --fail-with-body -sS "$FRAME_URL/policies" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT"

POST /v1/key-bindings/preimage

Read the key-binding signing preimage

Bank session · settle capability

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

NameTypeDescription
X-Frame-Tenantheader · stringActive tenant membership UUID. Send explicitly for deterministic tenancy.

JSON request fields

FieldTypeDescription
bindingobject
Request body
{
  "content": {
    "application/json": {
      "schema": {
        "properties": {
          "binding": {
            "properties": {
              "expiry_ms": {
                "type": "integer"
              },
              "key_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "pub": {
                "type": "string"
              },
              "purpose": {
                "type": "string"
              },
              "role": {
                "type": "string"
              },
              "tenant": {
                "type": "string"
              },
              "valid_from_ms": {
                "type": "integer"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      }
    }
  },
  "required": true
}
Responses
{
  "200": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "preimage": {
              "type": "string"
            },
            "tag": {
              "type": "string"
            }
          },
          "type": "object"
        }
      }
    },
    "description": "Successful response. Read the key-binding signing preimage."
  },
  "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."
  }
}
curl --fail-with-body -sS -X POST "$FRAME_URL/v1/key-bindings/preimage" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT" \
  -H 'Content-Type: application/json' --data-binary @request.json

GET /v1/key-bindings

List registered keys

Bank session · read capability

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

NameTypeDescription
tenantquery · stringOptional explicit tenant UUID; membership checked. Defaults to active tenant.
X-Frame-Tenantheader · stringActive tenant membership UUID. Send explicitly for deterministic tenancy.
Responses
{
  "200": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "data": {
              "properties": {
                "items": {
                  "items": {
                    "properties": {
                      "binding_hash": {
                        "type": "string"
                      },
                      "created_at": {
                        "type": "string"
                      },
                      "expiry_ms": {
                        "type": "integer"
                      },
                      "key_id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "pub": {
                        "type": "string"
                      },
                      "purpose": {
                        "type": "string"
                      },
                      "role": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string"
                      },
                      "tenant": {
                        "type": "string"
                      },
                      "valid_from_ms": {
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                },
                "total": {
                  "type": "integer"
                }
              },
              "type": "object"
            },
            "success": {
              "type": "boolean"
            }
          },
          "type": "object"
        }
      }
    },
    "description": "Successful response. List registered keys."
  },
  "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."
  }
}
curl --fail-with-body -sS "$FRAME_URL/v1/key-bindings" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT"

POST /v1/key-bindings

Register a key

Bank session · settle capability

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

NameTypeDescription
X-Frame-Tenantheader · stringActive tenant membership UUID. Send explicitly for deterministic tenancy.

JSON request fields

FieldTypeDescription
bindingobject
possession_sigstring
Request body
{
  "content": {
    "application/json": {
      "schema": {
        "properties": {
          "binding": {
            "properties": {
              "expiry_ms": {
                "type": "integer"
              },
              "key_id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "pub": {
                "type": "string"
              },
              "purpose": {
                "type": "string"
              },
              "role": {
                "type": "string"
              },
              "tenant": {
                "type": "string"
              },
              "valid_from_ms": {
                "type": "integer"
              }
            },
            "type": "object"
          },
          "possession_sig": {
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "required": true
}
Responses
{
  "200": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "data": {
              "properties": {
                "binding_hash": {
                  "type": "string"
                },
                "fresh": {
                  "type": "boolean"
                },
                "key_id": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "success": {
              "type": "boolean"
            }
          },
          "type": "object"
        }
      }
    },
    "description": "Successful response. Register a key."
  },
  "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."
  },
  "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": "Conflict with an existing or revoked key."
  }
}
curl --fail-with-body -sS -X POST "$FRAME_URL/v1/key-bindings" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT" \
  -H 'Content-Type: application/json' --data-binary @request.json

POST /v1/policies/deactivate

Retire the active policy

Bank session · policy capability

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

NameTypeDescription
X-Frame-Tenantheader · stringActive tenant membership UUID. Send explicitly for deterministic tenancy.

JSON request fields

FieldTypeDescription
partystringOptional registered counterparty policy key.
tenantstringTenant whose active policy is retired.
Request body
{
  "content": {
    "application/json": {
      "schema": {
        "properties": {
          "party": {
            "description": "Optional registered counterparty policy key.",
            "type": "string"
          },
          "tenant": {
            "description": "Tenant whose active policy is retired.",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "required": true
}
Responses
{
  "200": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "active": {
              "const": false,
              "type": "boolean"
            },
            "party": {
              "type": "string"
            },
            "seclogrs": {
              "properties": {},
              "type": "object"
            },
            "tenant": {
              "type": "string"
            },
            "version": {
              "type": "integer"
            }
          },
          "type": "object"
        }
      }
    },
    "description": "Successful response. Retire the active 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."
  }
}
curl --fail-with-body -sS -X POST "$FRAME_URL/v1/policies/deactivate" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT" \
  -H 'Content-Type: application/json' --data-binary @request.json

POST /v1/policies/governance/demo-authorise

Authorise a browser key in a demo workspace

Bank session · policy capability

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

NameTypeDescription
X-Frame-Tenantheader · stringActive tenant membership UUID. Send explicitly for deterministic tenancy.

JSON request fields

FieldTypeDescription
key
required
stringThe 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."
  }
}
curl --fail-with-body -sS -X POST "$FRAME_URL/v1/policies/governance/demo-authorise" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT" \
  -H 'Content-Type: application/json' --data-binary @request.json

GET /v1/policies/governance

Read pinned policy governance

Bank session · read capability

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

NameTypeDescription
tenantquery · stringOptional explicit tenant UUID; membership checked. Defaults to active tenant.
partyquery · stringOptional registered counterparty policy key.
X-Frame-Tenantheader · stringActive tenant membership UUID. Send explicitly for deterministic tenancy.
Responses
{
  "200": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "delegations": {
              "items": {
                "properties": {},
                "type": "object"
              },
              "type": "array"
            },
            "gov_hash": {
              "type": "string"
            },
            "governance_root": {
              "type": "string"
            },
            "party": {
              "type": "string"
            },
            "pinned": {
              "type": "boolean"
            },
            "tenant": {
              "type": "string"
            }
          },
          "type": "object"
        }
      }
    },
    "description": "Successful response. Read pinned policy governance."
  },
  "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."
  }
}
curl --fail-with-body -sS "$FRAME_URL/v1/policies/governance" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT"

GET /v1/policies/metadata

Read policy authoring metadata

Bank session · read capability

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

NameTypeDescription
X-Frame-Tenantheader · stringActive 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."
  }
}
curl --fail-with-body -sS "$FRAME_URL/v1/policies/metadata" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT"

GET /v1/policies/receipts/{leaf_index}/pack

Download a policy activation receipt

Bank session · read capability

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

NameTypeDescription
leaf_index
required
path · stringZero-based sealed log leaf index.
anchor_txquery · stringOptional anchor reference bytes carried in the pack. Supplying a value does not prove chain finality; omission uses a development reference.
X-Frame-Tenantheader · stringActive 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."
  }
}
curl --fail-with-body -sS "$FRAME_URL/v1/policies/receipts/${FRAME_LEAF_INDEX}/pack" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT" --output evidence.cbor

GET /v1/policies/scenarios

Read the policy scenario battery

Bank session · read capability

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

NameTypeDescription
X-Frame-Tenantheader · stringActive 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."
  }
}
curl --fail-with-body -sS "$FRAME_URL/v1/policies/scenarios" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT"

GET /v1/policies/sealing-key

Get the enclave sealing key and attestation

Bank session · read capability

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

NameTypeDescription
X-Frame-Tenantheader · stringActive 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."
  }
}
curl --fail-with-body -sS "$FRAME_URL/v1/policies/sealing-key" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT"

POST /v1/policies/submit

Install or update a client-sealed policy

Bank session · policy capability

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

NameTypeDescription
X-Frame-Tenantheader · stringActive tenant membership UUID. Send explicitly for deterministic tenancy.

JSON request fields

FieldTypeDescription
author_pub
required
stringRegistered 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
string64-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_versionstringOptional authoring catalogue version. Recorded as submitter-provided metadata, not cryptographic proof of the lowering.
ciphertext_b64
required
stringBase64 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.
expiryintegerUnix SECONDS at which the approval expires; zero means no expiry. Included in both signatures.
namestringOptional display name, outside the sealed policy.
partystringOptional registered counterparty. When set, the counterparty UUID is the policy key used in the signature and version lineage.
rulesstringOptional plaintext authoring metadata retained by the host. Omit to keep the bank policy source confidential.
source_hashstring32-byte hex source-document commitment, SHA-256(DomainSep(frame.policy.source.v2, source bytes)). Empty means the all-zero absent commitment.
tenantstringTenant 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."
  }
}
curl --fail-with-body -sS -X POST "$FRAME_URL/v1/policies/submit" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT" \
  -H 'Content-Type: application/json' --data-binary @signed-policy.json

GET /v1/policies

List policy versions for display

Bank session · read capability

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

NameTypeDescription
tenantquery · stringOptional explicit tenant UUID; membership checked. Defaults to active tenant.
partyquery · stringOptional registered counterparty policy key.
X-Frame-Tenantheader · stringActive 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."
  }
}
curl --fail-with-body -sS "$FRAME_URL/v1/policies" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT"

Queries

GET /v1/seclog-entries

Query sealed-log entries

Bank session · read capability

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

NameTypeDescription
cursorquery · stringThe cursor of the previous page. Opaque; send it back unchanged.
ref_idquery · stringSettlement UUID to match.
entry_typequery · stringExact event kind to match.
limitquery · integerRequested result count. Default 100; values clamp to 1–500. Invalid integers retain the default.
X-Frame-Tenantheader · stringActive 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": {
                      "at": {
                        "type": "string"
                      },
                      "created_at": {
                        "type": "string"
                      },
                      "entry_type": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "kind": {
                        "type": "string"
                      },
                      "leaf_index": {
                        "type": "integer"
                      },
                      "log_id": {
                        "type": "string"
                      },
                      "payload": {
                        "properties": {},
                        "type": "object"
                      },
                      "prev_hash": {
                        "type": "string"
                      },
                      "ref_id": {
                        "type": "string"
                      },
                      "sealed": {
                        "type": "boolean"
                      },
                      "sealed_in": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "self_hash": {
                        "type": "string"
                      },
                      "sequence_num": {
                        "type": "integer"
                      },
                      "tenant_id": {}
                    },
                    "required": [
                      "id",
                      "entry_type",
                      "sequence_num",
                      "prev_hash",
                      "self_hash",
                      "created_at",
                      "log_id",
                      "sealed"
                    ],
                    "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. Query sealed-log entries."
  },
  "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."
  }
}
curl --fail-with-body -sS "$FRAME_URL/v1/seclog-entries" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT"

GET /v1/timeline

Read a settlement event timeline

Bank session · read capability

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

NameTypeDescription
cursorquery · stringThe cursor of the previous page. Opaque; send it back unchanged.
limitquery · integerRequested page size. Default and maximum 500; values clamp to 1–500. Invalid integers retain the default.
X-Frame-Tenantheader · stringActive 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."
  }
}
curl --fail-with-body -sS "$FRAME_URL/v1/timeline" \
  -H "Authorization: Bearer $FRAME_TOKEN" \
  -H "X-Frame-Tenant: $FRAME_TENANT"