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.
Input Schema
TableJSON 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);