Realtime: Create destination
webhook_create_destinationCreate a realtime event destination for this Nilyo user. Nilyo creates the endpoint server-side but ALWAYS restricts it to account IDs owned by this authenticated user. By default matching future accounts are automatically added. Explicit account_ids without a providers filter stay restricted to those accounts, even with auto_include_new_accounts=true. For n8n use its Test URL first, validate with a Development/Mock event, then update to Production URL. The endpoint signing secret is kept encrypted server-side and is never returned by MCP: never ask for it.
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>",
"runtime": "<runtime>",
"request_url": "<request_url>",
"events": "<events>",
"auto_include_new_accounts": "<auto_include_new_accounts>"
},
"name": "webhook_create_destination"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| events | Yes | Exact event types. Call webhook_list_available_events first when unsure. Do not invent event names. | |
| runtime | Yes | ||
| providers | No | Optional provider filter. google includes Gmail and outlook includes Microsoft accounts. With auto_include_new_accounts=true, Nilyo keeps this endpoint's account_ids synchronized when the user connects matching accounts later. | |
| account_ids | No | Optional explicit account IDs returned by list_connected_accounts. Nilyo rejects the whole request if any ID is not owned by the authenticated user. | |
| request_url | Yes | Public HTTPS POST receiver URL supplied by the target runtime, without user:password@ credentials or #fragment. Never guess a URL. | |
| auto_include_new_accounts | Yes |