Create Webhook
create_webhookRegister a new webhook to deliver LightCMS events to a URL and get a one-time HMAC-SHA256 secret for verification.
Instructions
Create a new webhook. Returns the generated HMAC-SHA256 secret ONCE — save it immediately.
Valid event types: content.create, content.update, content.publish, content.unpublish, content.delete, comment.created, content.pending_approval, asset.pending_review
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": {
"name": "<name>",
"url": "<url>",
"events": "<events>"
},
"name": "create_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Endpoint URL to deliver events to,required | |
| name | Yes | Name for the webhook,required | |
| active | No | Whether the webhook is active (default true) | |
| events | Yes | Event types to subscribe to (e.g. content.publish),required |