Skip to main content
POST
Request an email code

Path Parameters

aa
string
required

The account address (a Safe or a plain address), as 0x and 40 hex digits in any letter case. A 20-byte address as 0x and 40 hex digits. Requests accept any letter case. Responses use lowercase.

Pattern: ^0x[0-9a-fA-F]{40}$
Example:

"0xf9836de53d455019ed985896fce8af80be66b7f9"

Body

application/json

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.

sealed
object
required

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.

nonce
integer[]
required

The 12-byte AEAD nonce.

Required array length: 12 elements
Required range: 0 <= x <= 255
ct
integer[]
required

The ciphertext with its 16-byte AEAD tag.

Minimum array length: 16
Required range: 0 <= x <= 255