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
Documentation IndexFetch the complete documentation index at: https://infisical.com/docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
The ID of the key to encrypt the data with.
The plaintext to be encrypted (base64 encoded).
Default Response
Was this page helpful?