---
title: "Create or rotate the workspace's alert webhook signing secret and answer it once; it is never returned again and the previous secret stops signing immediately."
method: POST
path: "/v1/workspaces/{ws}/alerts/webhook-secret"
tags: ["alerts"]
---

# Create or rotate the workspace's alert webhook signing secret and answer it once; it is never returned again and the previous secret stops signing immediately.

`POST /v1/workspaces/{ws}/alerts/webhook-secret`

## Request

- Base URL: `https://api.storequant.com`
- URL: `https://api.storequant.com/v1/workspaces/{ws}/alerts/webhook-secret`
- Auth: HTTP bearer

Create or rotate the workspace's alert webhook signing secret and answer it once; it is never returned again and the previous secret stops signing immediately. Scope `alerts:write`; cache `none`.

## Path parameters

- `ws` string, required

## Request body

- object

## Response `201`

Success.

- object
  - `data` object, required
    - `secret` string, required
    - `created_at` string, date-time, required
  - `meta` object, required
    - `request_id` string, required
    - `as_of` string, date-time, required
    - `lag_hours` number
    - `cursor` string
    - `count` integer

## Other responses

- `4XX`: The one error shape.
- `5XX`: The one error shape.

---

[API](https://skmtc.dev/scrollstash/apis/storequant-api.md) · [All operations](https://skmtc.dev/scrollstash/apis/storequant-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scrollstash/apis/storequant-api/revisions/c556e643d689?raw)
