cURL
curl --request POST \ --url https://us.infisical.com/api/v1/kms/keys/{keyId}/encrypt \ --header 'Content-Type: application/json' \ --data ' { "plaintext": "<string>" } '
{ "ciphertext": "<string>" }
Encrypt data with KMS key
The ID of the key to encrypt the data with.
The plaintext to be encrypted (base64 encoded).
Default Response
Was this page helpful?