---
title: "Rotate a notification webhook signing secret"
method: POST
path: "/notifications/destinations/{id}/rotate-secret"
tags: ["Gateway"]
---

# Rotate a notification webhook signing secret

`POST /notifications/destinations/{id}/rotate-secret`

## Request

- Base URL: `https://api.phaseo.app/v1`
- URL: `https://api.phaseo.app/v1/notifications/destinations/{id}/rotate-secret`
- Auth: HTTP bearer

Generates a new signing secret for a custom webhook destination and returns it once. Destinations created before signing get their first secret this way. Later deliveries are signed with the new secret and the previous secret stops being used.

## Path parameters

- `id` string, uuid, required

## Response `200`

Signing secret rotated

- WorkspaceNotificationDestinationResponse
  - `data` WorkspaceNotificationDestination, required
    - `id` string, uuid, required
    - `name` string, required
    - `type` 'email' | 'discord' | 'discord_webhook' | 'slack' | 'microsoft_teams' | 'custom_webhook', required
    - `target_preview` string, required
    - `status` 'active' | 'disabled', required
    - `has_signing_secret` boolean: Whether deliveries are signed with x-phaseo-signature. Only custom webhook destinations are signed; ones created before signing stay unsigned until a secret is generated.
    - `signing_secret_rotated_at` string, date-time, nullable: When the current signing secret was generated.
    - `signing_secret` string: The webhook signing secret. Returned only when a custom webhook destination is created or its secret is rotated; store it securely.
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable

## Other responses

- `default`: Request failed

## Changes

- **2026-10-22** `8a94e3000f13`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/phaseo/apis/phaseo-gateway-api/changes/notifications/destinations/:id/rotate-secret/post.md)

---

[API](https://skmtc.dev/phaseo/apis/phaseo-gateway-api.md) - [All operations](https://skmtc.dev/phaseo/apis/phaseo-gateway-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phaseo/apis/phaseo-gateway-api/revisions/5ca9bb220d25?raw)
