POST
/
api
/
v1
/
kms
/
keys
/
{keyId}
/
encrypt
curl --request POST \
  --url https://us.infisical.com/api/v1/kms/keys/{keyId}/encrypt \
  --header 'Content-Type: application/json' \
  --data '{
  "plaintext": "<string>"
}'
{
  "ciphertext": "<string>"
}

Path Parameters

keyId
string
required

The ID of the key to encrypt the data with.

Body

application/json
plaintext
string
required

The plaintext to be encrypted (base64 encoded).

Response

200
application/json
Default Response
ciphertext
string
required