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
Was this page helpful?