fluentcrm_create_webhook
Create webhooks in FluentCRM to automatically send contact data to external URLs when specific marketing automation events occur.
Instructions
Tworzy nowy webhook
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lists | No | ||
| name | Yes | Nazwa webhook | |
| status | Yes | ||
| tags | No | ||
| url | Yes | URL webhook |
Implementation Reference
- src/fluentcrm-mcp-server.ts:289-298 (handler)Core handler function in FluentCRMClient class that creates a webhook via POST to '/webhook' endpoint.async createWebhook(data: { name: string; status: 'pending' | 'subscribed'; url: string; tags?: number[]; lists?: number[]; }) { const response = await this.apiClient.post('/webhook', data); return response.data; }
- src/fluentcrm-mcp-server.ts:802-816 (registration)Tool registration in the listTools handler, defining name, description, and input schema.{ name: 'fluentcrm_create_webhook', description: 'Tworzy nowy webhook', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nazwa webhook' }, url: { type: 'string', description: 'URL webhook' }, status: { type: 'string', enum: ['pending', 'subscribed'] }, tags: { type: 'array', items: { type: 'number' } }, lists: { type: 'array', items: { type: 'number' } }, }, required: ['name', 'url', 'status'], }, },
- src/fluentcrm-mcp-server.ts:997-998 (handler)MCP CallToolRequestSchema switch case handler that delegates to FluentCRMClient.createWebhook.case 'fluentcrm_create_webhook': return { content: [{ type: 'text', text: JSON.stringify(await client.createWebhook(args as any), null, 2) }] };