Create webhook
create_webhookRegister an outbound webhook for the caller's active workspace. OrgLines will POST a signed JSON body {event, data, occurred_at, delivery_id} to 'url' whenever one of the subscribed 'events' fires. The URL must be https and must NOT point at a private/loopback address (SSRF-guarded, validated server-side). A signing 'secret' is generated server-side and returned ONCE in this call's output — store it; every delivery carries header X-OrgLines-Signature = HMAC-SHA256(secret, body). Events: task.created, task.status_changed, note.created, notification.sent, notification.failed, intake.capture.created (with space='personal') (empty = all). Additive; runs propose→confirm. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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>"
},
"name": "create_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| space | No | Whose webhooks: the active company workspace (default) or 'personal' — the caller's own space, where 'intake.capture.created' (something sent to the OrgLines Telegram bot; body has ids only — read it with intake_get_capture) fires. | |
| events | No |