KMS Signing

Generate an HMAC (MAC) for data with a KMS key.

post/api/v1/kms/keys/{keyId}/generate-mac

Request

  • Base URL
    https://us.infisical.com
  • URL
    https://us.infisical.com/api/v1/kms/keys/{keyId}/generate-mac
  • Auth
    none declared

Path parameters

keyIdstring uuid required

The ID of the key to generate the MAC with. The key must be for generating and verifying MACs.

Request body

datastring required

The data in string format to generate the MAC for (base64 encoded).

Response

Default Response

macstring required
keyIdstring uuid required
macAlgorithm'HMAC_SHA_1' | 'HMAC_SHA_224' | 'HMAC_SHA_256' | 'HMAC_SHA_384' | 'HMAC_SHA_512' required

Changes