---
title: "Regenerate a webhook secret and return the new webhook subscription"
method: POST
path: "/webhook_subscriptions/{webhook_subscription_id}/regenerate_secret"
tags: ["Webhook subscriptions"]
---

# Regenerate a webhook secret and return the new webhook subscription

`POST /webhook_subscriptions/{webhook_subscription_id}/regenerate_secret`

## Request

- Base URL: `https://api.sandbox.monite.com/v1`
- URL: `https://api.sandbox.monite.com/v1/webhook_subscriptions/{webhook_subscription_id}/regenerate_secret`
- Auth: HTTP bearer

## Path parameters

- `webhook_subscription_id` string, required

## Headers

- `x-monite-version` string, required

## Response `200`

Successful Response

- WebhookSubscriptionResourceWithSecret
  - `id` string, uuid, required
  - `event_types` string[], required
  - `object_type` 'account' | 'accounting_connection' | 'approval' | 'approval_request' | 'approval_policy' | 'approval_policy_process' | 'batch_payment' | 'comment' | 'counterpart' | 'counterpart_address' | 'counterpart_bank_account' | 'counterpart_contact_person' | 'counterpart_partner_metadata' | 'counterpart_tax_id' | 'entity' | 'entity_bank_account' | 'entity_settings' | 'entity_user' | 'export' | 'overdue_reminder' | 'partner_settings' | 'payable' | 'payables_credit_note' | 'payables_purchase_order' | 'payable.line_item' | 'payment' | 'payment_intent' | 'payment_link' | 'payment_reminder' | 'product' | 'project' | 'receivable' | 'recurrence' | 'role' | 'tag' | 'todo_task' | 'workflow' | 'workflow_pipeline' | 'ocr_task' | 'delivery_note' | 'receipt' | 'transaction', required
  - `secret` string, required
  - `status` 'enabled' | 'disabled', required
  - `url` string, uri, required

## Other responses

- `422`: Validation Error
- `500`: Internal Server Error

---

[API](https://skmtc.dev/monite/apis/monite-3.md) - [All operations](https://skmtc.dev/monite/apis/monite-3/llms.txt) - [OpenAPI document](https://skmtc.dev/monite/apis/monite-3/revisions/c13be6f83ce9?raw)
