create_webhook
Configure webhooks to subscribe to Zoom API events by specifying a URL, event types, and optional authorization details. Manage real-time notifications efficiently.
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>",
"event_types": "<event_types>"
},
"name": "create_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| authorization_header | No | Authorization header | |
| description | No | Webhook description | |
| event_types | Yes | Event types to subscribe to | |
| url | Yes | Webhook URL |
Implementation Reference
- src/tools/webhooks.js:27-33 (handler)The async handler function for the 'create_webhook' tool. It sends a POST request to Zoom API '/webhooks' with the provided webhookData and handles the response or error.
handler: async (webhookData) => { try { const response = await zoomApi.post('/webhooks', webhookData); return handleApiResponse(response); } catch (error) { return handleApiError(error); } - src/tools/webhooks.js:21-26 (schema)Zod input schema defining the parameters for creating a webhook: url (required string URL), event_types (array of strings), optional authorization_header and description.
schema: { url: z.string().url().describe("Webhook URL"), event_types: z.array(z.string()).describe("Event types to subscribe to"), authorization_header: z.string().optional().describe("Authorization header"), description: z.string().optional().describe("Webhook description") }, - src/server.js:55-55 (registration)Registers the webhooksTools array (containing create_webhook and other webhook tools) with the MCP server using the registerTools helper function.
registerTools(webhooksTools);