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.
Default Response
The response is of type object.
object
Was this page helpful?