Add a webhook
add_webhookAdds an HTTPS address CodeGene sends the chosen events to, signed under the Standard Webhooks spec (the webhook-id, webhook-timestamp and webhook-signature headers). The answer carries the endpoint's signing secret (whsec_...) exactly once: give it to the person to paste into the receiver at once, because it is never shown again. The address must be https:// and a public domain name. Send a test with send_webhook_test right after. Only owners and admins can add 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": {
"url": "<url>",
"events": "<events>",
"reason": "<reason>"
},
"name": "add_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The receiver's https:// address, for example a Zapier or Make hook. | |
| events | Yes | The events to send to it. | |
| reason | Yes | Why, in a sentence: kept in the workspace's activity. | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |