## Rotates the webhook signing key for the account `client.Account.RotateWebhookSigningKey(ctx) (*RotateWebhookSigningKeyResponse, error)` **post** `/v1/account/rotate_webhook_signing_key` Rotates the webhook signing key for the account. Returns only the new key. ### Returns - `type RotateWebhookSigningKeyResponse struct{…}` RotateWebhookEventsHmacSecretResponse is a response to a RotateWebhookEventsHmacSecretRequest. - `WebhookEventsHmacSecret string` ### Example ```go package main import ( "context" "fmt" "github.com/cadenya/cadenya-go" "github.com/cadenya/cadenya-go/option" ) func main() { client := cadenya.NewClient( option.WithAPIKey("My API Key"), ) rotateWebhookSigningKeyResponse, err := client.Account.RotateWebhookSigningKey(context.TODO()) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", rotateWebhookSigningKeyResponse.WebhookEventsHmacSecret) } ``` #### Response ```json { "webhookEventsHmacSecret": "webhookEventsHmacSecret" } ```