Skip to content
Get started

Rotates the webhook signing key for the account

account.rotate_webhook_signing_key() -> RotateWebhookSigningKeyResponse { webhook_events_hmac_secret }
POST/v1/account/rotate_webhook_signing_key

Rotates the webhook signing key for the account. Returns only the new key.

ReturnsExpand Collapse
class RotateWebhookSigningKeyResponse { webhook_events_hmac_secret }

Response containing the newly generated webhook signing secret.

webhook_events_hmac_secret: String

Rotates the webhook signing key for the account

require "cadenya"

cadenya = Cadenya::Client.new(api_key: "My API Key")

rotate_webhook_signing_key_response = cadenya.account.rotate_webhook_signing_key

puts(rotate_webhook_signing_key_response)
{
  "webhookEventsHmacSecret": "webhookEventsHmacSecret"
}
Returns Examples
{
  "webhookEventsHmacSecret": "webhookEventsHmacSecret"
}