v4

latestOpenAPI 3.0.32026-07-312,317012.2 MB
KMS Keys

Create KMS key

post/api/v1/kms/keys

Request body

projectIdstring required

The ID of the project to create the key in.

namestring required

The name of the key to be created. Must be slug-friendly.

descriptionstring

An optional description of the key.

keyUsage'encrypt-decrypt' | 'sign-verify' | 'generate-verify-mac'

The type of key to be created, either encrypt-decrypt or sign-verify, based on your intended use for the key.

algorithm'aes-256-gcm' | 'aes-128-gcm' | 'RSA_4096' | 'ECC_NIST_P256' | 'ECC_NIST_P384' | 'ECC_NIST_P521' | 'ML_DSA_44' | 'ML_DSA_65' | 'ML_DSA_87' | 'HMAC_SHA_1' | 'HMAC_SHA_224' | 'HMAC_SHA_256' | 'HMAC_SHA_384' | 'HMAC_SHA_512'

The cryptographic algorithm of the key (e.g. aes-256-gcm, RSA_4096, HMAC_SHA_256).

isExportableboolean

Whether the raw key material can be exported after creation. When set to false, the key can never be exported regardless of permissions. This cannot be changed after creation.

Response

Default Response