---
title: "Regenerate Account Secret"
method: POST
path: "/api/account/secret/regenerate"
tags: ["Webhooks"]
---

# Regenerate Account Secret

`POST /api/account/secret/regenerate`

Regenerate the account webhook secret. Affects **all subscriptions** for the account.

*Endpoint*: **(POST) https://api.lusha.com/api/account/secret/regenerate**

**Behavior:**
- If a secret already exists: Replaces with new secret (old secret is invalidated)
- If no secret exists: Creates new secret automatically

**Important Notes:**
- The secret is only shown once in the response. Store it securely.
- This endpoint always succeeds (upsert operation)
- Regenerating invalidates the old secret for **all subscriptions** (if one existed)
- An account secret must exist before webhooks can be delivered

## Response `200`

Account secret regenerated successfully

- object
  - `secret` string, required — Newly generated account webhook secret (store securely - only shown once)

## Other responses

- `401` — Unauthorized - invalid or missing API key
- `500` — Internal server error

---

[API](https://skmtc.net/lusha/apis/lusha-api-documentation.md) · [All operations](https://skmtc.net/lusha/apis/lusha-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lusha/lusha-api-documentation/revisions/d37bb08edd61/schema)
