{ "success": true, "status": 200, "message": "Webhook secret regenerated successfully", "data": { "webhookSecret": "whsec_x1y2z3a4b5c6d7e8f9g0h1i2j3k4l5m6", "regeneratedAt": "2026-01-15T10:30:00+00:00", "note": "Store this secret securely. It will not be shown again. Update your webhook handler with this new secret." }, "meta": { "requestId": "req_abc123xyz789", "timestamp": "2026-01-15T10:30:00+00:00" }}
{ "success": true, "status": 200, "message": "Webhook secret regenerated successfully", "data": { "webhookSecret": "whsec_x1y2z3a4b5c6d7e8f9g0h1i2j3k4l5m6", "regeneratedAt": "2026-01-15T10:30:00+00:00", "note": "Store this secret securely. It will not be shown again. Update your webhook handler with this new secret." }, "meta": { "requestId": "req_abc123xyz789", "timestamp": "2026-01-15T10:30:00+00:00" }}
Generate a new webhook secret for signing webhook payloads. This immediately invalidates your previous secret.
After regenerating your secret, you must update your webhook handler with the new secret. Any webhooks sent after regeneration will be signed with the new secret, and verification using the old secret will fail.
{ "success": true, "status": 200, "message": "Webhook secret regenerated successfully", "data": { "webhookSecret": "whsec_x1y2z3a4b5c6d7e8f9g0h1i2j3k4l5m6", "regeneratedAt": "2026-01-15T10:30:00+00:00", "note": "Store this secret securely. It will not be shown again. Update your webhook handler with this new secret." }, "meta": { "requestId": "req_abc123xyz789", "timestamp": "2026-01-15T10:30:00+00:00" }}