Skip to main content
POST
Encrypt

Authorizations

Authorization
string
header
required

The Authorization header expects a Bearer token.

Body

application/json
keyId
string
required

ID of the symmetric KMS key to use for encryption.

aadContext
string<byte>

Additional authenticated data (AAD context), optional. If specified, this data will be required for decryption with the [SymmetricDecryptRequest]. Should be encoded with base64.

plaintext
string<byte>

Plaintext to be encrypted. Should be encoded with base64.

Response

200 - application/json

A successful response.

ciphertext
string<byte>

Resulting ciphertext.

keyId
string

ID of the symmetric KMS key that was used for encryption.