Change a webhook's secret
rotate_webhook_secretMakes a new signing secret for an endpoint and returns it once. The old secret keeps signing beside the new one until previousSecretSignsUntil (a day), so the receiver can switch with nothing missed. Use it when a secret may have leaked. Only owners and admins can change one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"endpoint_id": "<endpoint_id>",
"reason": "<reason>"
},
"name": "rotate_webhook_secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why, in a sentence: kept in the workspace's activity. | |
| endpoint_id | Yes | The endpoint (list_webhooks gives ids). | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |