Request an email code
Asks the engine to send a 6-digit verification code to an email address for the account. A rule document can name only the verified email of its account.
- Who may call: an owner of the account, with an EIP-4361 sign-in whose single
Resourcesentry binds the account and the canonical email. - 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: seal
adapter,email,siwe_messageandsignatureunderanafi/notification-email/request-code/<network>/plus the 20 address bytes ofaa. See Sealed requests. - Guarantee: the opened reply has an
outcome. Withcode_issued, keepcode_tokenforverify_code. The code is valid for 15 minutes.
The answer is 200 also when no mail goes out: read outcome.kind. See
Notification email flow.
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.