naftiko: 1.0.0-alpha2 info: label: Cal.diy API v2 — Webhooks description: 'Cal.diy API v2 — Webhooks. 5 operations. Lead operation: Create a webhook. Self-contained Naftiko capability covering one Cal Com business surface.' tags: - Cal Com - Webhooks created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CAL_COM_API_KEY: CAL_COM_API_KEY capability: consumes: - type: http namespace: cal-com-webhooks baseUri: '' description: Cal.diy API v2 — Webhooks business capability. Self-contained, no shared references. resources: - name: v2-webhooks path: /v2/webhooks operations: - name: webhookscontrollercreatewebhook method: POST description: Create a webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: value must be `Bearer ` where `` is api key prefixed with cal_ required: true - name: body in: body type: object description: Request body (JSON). required: true - name: webhookscontrollergetwebhooks method: GET description: Get all webhooks outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: value must be `Bearer ` where `` is api key prefixed with cal_ required: true - name: take in: query type: number description: Maximum number of items to return - name: skip in: query type: number description: Number of items to skip - name: v2-webhooks-webhookId path: /v2/webhooks/{webhookId} operations: - name: webhookscontrollerupdatewebhook method: PATCH description: Update a webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: value must be `Bearer ` where `` is api key prefixed with cal_ required: true - name: webhookId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: webhookscontrollergetwebhook method: GET description: Get a webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: value must be `Bearer ` where `` is api key prefixed with cal_ required: true - name: webhookId in: path type: string required: true - name: webhookscontrollerdeletewebhook method: DELETE description: Delete a webhook outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: value must be `Bearer ` where `` is api key prefixed with cal_ required: true - name: webhookId in: path type: string required: true exposes: - type: rest namespace: cal-com-webhooks-rest port: 8080 description: REST adapter for Cal.diy API v2 — Webhooks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v2/webhooks name: v2-webhooks description: REST surface for v2-webhooks. operations: - method: POST name: webhookscontrollercreatewebhook description: Create a webhook call: cal-com-webhooks.webhookscontrollercreatewebhook with: Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - method: GET name: webhookscontrollergetwebhooks description: Get all webhooks call: cal-com-webhooks.webhookscontrollergetwebhooks with: Authorization: rest.Authorization take: rest.take skip: rest.skip outputParameters: - type: object mapping: $. - path: /v1/v2/webhooks/{webhookid} name: v2-webhooks-webhookid description: REST surface for v2-webhooks-webhookId. operations: - method: PATCH name: webhookscontrollerupdatewebhook description: Update a webhook call: cal-com-webhooks.webhookscontrollerupdatewebhook with: Authorization: rest.Authorization webhookId: rest.webhookId body: rest.body outputParameters: - type: object mapping: $. - method: GET name: webhookscontrollergetwebhook description: Get a webhook call: cal-com-webhooks.webhookscontrollergetwebhook with: Authorization: rest.Authorization webhookId: rest.webhookId outputParameters: - type: object mapping: $. - method: DELETE name: webhookscontrollerdeletewebhook description: Delete a webhook call: cal-com-webhooks.webhookscontrollerdeletewebhook with: Authorization: rest.Authorization webhookId: rest.webhookId outputParameters: - type: object mapping: $. - type: mcp namespace: cal-com-webhooks-mcp port: 9090 transport: http description: MCP adapter for Cal.diy API v2 — Webhooks. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-webhook description: Create a webhook hints: readOnly: false destructive: false idempotent: false call: cal-com-webhooks.webhookscontrollercreatewebhook with: Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: get-all-webhooks description: Get all webhooks hints: readOnly: true destructive: false idempotent: true call: cal-com-webhooks.webhookscontrollergetwebhooks with: Authorization: tools.Authorization take: tools.take skip: tools.skip outputParameters: - type: object mapping: $. - name: update-webhook description: Update a webhook hints: readOnly: false destructive: false idempotent: true call: cal-com-webhooks.webhookscontrollerupdatewebhook with: Authorization: tools.Authorization webhookId: tools.webhookId body: tools.body outputParameters: - type: object mapping: $. - name: get-webhook description: Get a webhook hints: readOnly: true destructive: false idempotent: true call: cal-com-webhooks.webhookscontrollergetwebhook with: Authorization: tools.Authorization webhookId: tools.webhookId outputParameters: - type: object mapping: $. - name: delete-webhook description: Delete a webhook hints: readOnly: false destructive: true idempotent: true call: cal-com-webhooks.webhookscontrollerdeletewebhook with: Authorization: tools.Authorization webhookId: tools.webhookId outputParameters: - type: object mapping: $.