---
title: "Rotate HMAC key for a Webhook by ID"
method: POST
path: "/network-services/v1/webhooks/{id}/rotate-hmac-key"
tags: ["Webhooks"]
---

# Rotate HMAC key for a Webhook by ID

`POST /network-services/v1/webhooks/{id}/rotate-hmac-key`

This API endpoint rotates the HMAC key for an existing Webhook.

## Path parameters

- `id` string, uuid, required

## Response `200`

Rotates the webhook HMAC Key

- WebhookRotateHmacKey
  - `items` object
    - `id` string, uuid, required — Unique identifier for the webhook.
    - `hmacKey` string, required — The HMAC key used for signing webhook payloads.
    - `success` boolean, required — Indicates whether the operation was successful.
    - `message` string, required — A message providing additional information about the operation.

## Other responses

- `400` — Invalid input received.
- `401` — Unauthorized. Authentication credentials are required or invalid.
- `403` — Forbidden: Access is denied.
- `404` — Not Found error.
- `429` — Too Many Requests. The user has sent too many requests in a given amount of time.
- `500` — Internal Server Error. An unexpected error occurred on the server.

---

[API](https://skmtc.dev/arubanetworks/apis/authorization.md) · [All operations](https://skmtc.dev/arubanetworks/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/arubanetworks/authorization/revisions/74c95058b11f/schema)
