> ## Documentation Index
> Fetch the complete documentation index at: https://oma-codex-339-workspace-permissions.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 重新生成 Webhook 签名密钥

> 通过 OMA API 重新生成 Webhook 签名密钥。

<Info>每个请求都必须发送 `anthropic-beta: webhooks-2026-03-01`。创建接口只返回一次签名密钥。</Info>


## OpenAPI

````yaml /openapi/oma.zh.json post /v1/webhooks/{webhook_id}/regenerate_signing_secret
openapi: 3.1.0
info:
  title: OMA API 参考
  version: 1.0.0
  description: Open Managed Agents 应用 API 参考。
servers:
  - url: http://localhost:38080
    description: 本地 OMA 服务器
security:
  - omaApiKey: []
  - omaBearer: []
paths:
  /v1/webhooks/{webhook_id}/regenerate_signing_secret:
    post:
      summary: 重新生成 Webhook 签名密钥
      operationId: OMARegenerateWebhookSigningSecret
      parameters:
        - name: anthropic-beta
          in: header
          required: true
          schema:
            type: string
        - name: webhook_id
          in: path
          required: true
          schema:
            type: string
          description: Webhook 标识符。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              maxProperties: 0
      responses:
        '200':
          description: 成功响应（OK）
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookSecret'
components:
  schemas:
    WebhookSecret:
      type: object
      required:
        - signing_secret
      properties:
        signing_secret:
          type: string
  securitySchemes:
    omaApiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: OMA 工作区 API 密钥。
      x-default: sk-ant-local-default
    omaBearer:
      type: http
      scheme: bearer
      description: 以 Bearer 令牌形式发送的 OMA 工作区 API 密钥。

````