Verify an email code
Sends the code from the email and the code_token from request_code. On success the
email becomes the verified notification email of the account.
- Who may call: anyone who holds the code token and the code. No sign-in is necessary, because the code token came back sealed to the owner who asked.
- Before: a
code_issuedreply fromrequest_code. Sealcode_tokenandcodeunderanafi/notification-email/verify-code/<network>/plus the 20 address bytes ofaa. - Guarantee: the opened reply has an
outcome. A code token allows 3 wrong codes. After that, or after 15 minutes, request a new code.
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.