Read back account state
Returns the rule document of the account in plain text, the account state, and the verified notification email, sealed so that only the caller can open it. The engine signs the reply. The Anafi API passes the envelope and the reply through without reading them.
- Who may call: an owner (a signer) of the account, with an EIP-4361 sign-in.
- Sign-in domain: the engine accepts the sign-in only when the message names the
domain of the Anafi dapp,
app.ana.fi. A sign-in for another domain is refused with422. An integration on another domain cannot complete this flow today. - Before: sign the sign-in message, put it in the sealed payload with
aaand the signature, and seal it underanafi/confidential-call/req/v1. See Sealed requests. - Guarantee: the opened reply holds
engine_sig, the signature ofengineSigKeyover the state and the nonce of your sign-in. Check it before you trust the state.
Each sign-in works once. It is valid for 5 minutes after its Issued At. A refusal
after the signature check can use up the nonce, so sign a new message to try again.
Path Parameters
Body
The body of every route that carries a sealed request. The Anafi API passes sealed to the engine unchanged and takes the account from the path.
An HPKE-sealed request. Each field is a JSON array of byte values (integers from 0 to 255), not a hex string. The key names are snake_case. See Sealed requests.
Response
The sealed reply. Open it with the response key of your request.
A reply sealed with ChaCha20-Poly1305 under the response key that the caller exported from the HPKE context of the request. Each field is a JSON array of byte values. See Sealed requests.