Skip to main content
POST
cURL

Authorizations

X-API-KEY
string
header
required

API key authentication. Get your API key from the Formal console.

Body

application/json
id
string
Minimum string length: 1
provider
enum<string> | null

"aws" is a deprecated alias for "aws-kms".

Available options:
aws-kms,
gcp-kms,
aws
Minimum string length: 1
keyId
string | null
algorithm
enum<string> | null
Available options:
aes_random,
aes_deterministic,
rsaes_oaep_sha256
Minimum string length: 1
decryptorUri
string | null
publicKeyPem
string | null

PEM-encoded RSA public key, required for asymmetric algorithms.

Response

Success

encryptionKey
encryption_key · object