# Retire the previous signing secret (/docs/api/webhook-endpoints/delete-webhook-endpoint-previous-secret)

## Retire the previous signing secret

`DELETE https://runepay.co/api/v1/webhook_endpoints/{id}/previous_secret`

Ends a rotation overlap now. Deliveries are then signed with the current secret only.

Scope: `webhook_endpoints:write`

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` (required) | path | string | The object id. |

Response `200`:

```json
{
  "id": "we_01KA9F6G8H0J2K4M6N8P0Q2R4S",
  "object": "webhook_endpoint",
  "url": "https://merchant.example/hooks",
  "livemode": false,
  "enabled_events": [
    "*"
  ],
  "status": "enabled",
  "api_version": "2026-12-15",
  "description": null,
  "metadata": {},
  "created": 1767225600
}
```

Errors: 400, 401, 403, 404, 413, 500, 503, with the [error shape](/docs/api/errors).
