naftiko: 1.0.0-alpha2 info: label: API Endpoints — subpackage_webhooks description: 'API Endpoints — subpackage_webhooks. 5 operations. Lead operation: List Webhook subscriptions. Self-contained Naftiko capability covering one Close business surface.' tags: - Close - subpackage_webhooks created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CLOSE_API_KEY: CLOSE_API_KEY capability: consumes: - type: http namespace: close-subpackage-webhooks baseUri: https://api.close.com/api/v1 description: API Endpoints — subpackage_webhooks business capability. Self-contained, no shared references. resources: - name: webhook path: /webhook/ operations: - name: list method: GET description: List Webhook subscriptions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: Use your API key as the username and leave the password empty. required: true - name: create method: POST description: Create new Webhook subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Authorization in: header type: string description: Use your API key as the username and leave the password empty. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: webhook-id path: /webhook/{id}/ operations: - name: get method: GET description: Retrieve a single Webhook subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: Authorization in: header type: string description: Use your API key as the username and leave the password empty. required: true - name: update method: PUT description: Update existing Webhook subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: Authorization in: header type: string description: Use your API key as the username and leave the password empty. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: delete method: DELETE description: Delete Webhook subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: Authorization in: header type: string description: Use your API key as the username and leave the password empty. required: true authentication: type: bearer token: '{{env.CLOSE_API_KEY}}' exposes: - type: rest namespace: close-subpackage-webhooks-rest port: 8080 description: REST adapter for API Endpoints — subpackage_webhooks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/webhook name: webhook description: REST surface for webhook. operations: - method: GET name: list description: List Webhook subscriptions call: close-subpackage-webhooks.list with: Authorization: rest.Authorization outputParameters: - type: object mapping: $. - method: POST name: create description: Create new Webhook subscription call: close-subpackage-webhooks.create with: Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - path: /v1/webhook/{id} name: webhook-id description: REST surface for webhook-id. operations: - method: GET name: get description: Retrieve a single Webhook subscription call: close-subpackage-webhooks.get with: id: rest.id Authorization: rest.Authorization outputParameters: - type: object mapping: $. - method: PUT name: update description: Update existing Webhook subscription call: close-subpackage-webhooks.update with: id: rest.id Authorization: rest.Authorization body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: delete description: Delete Webhook subscription call: close-subpackage-webhooks.delete with: id: rest.id Authorization: rest.Authorization outputParameters: - type: object mapping: $. - type: mcp namespace: close-subpackage-webhooks-mcp port: 9090 transport: http description: MCP adapter for API Endpoints — subpackage_webhooks. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-webhook-subscriptions description: List Webhook subscriptions hints: readOnly: true destructive: false idempotent: true call: close-subpackage-webhooks.list with: Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: create-new-webhook-subscription description: Create new Webhook subscription hints: readOnly: false destructive: false idempotent: false call: close-subpackage-webhooks.create with: Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: retrieve-single-webhook-subscription description: Retrieve a single Webhook subscription hints: readOnly: true destructive: false idempotent: true call: close-subpackage-webhooks.get with: id: tools.id Authorization: tools.Authorization outputParameters: - type: object mapping: $. - name: update-existing-webhook-subscription description: Update existing Webhook subscription hints: readOnly: false destructive: false idempotent: true call: close-subpackage-webhooks.update with: id: tools.id Authorization: tools.Authorization body: tools.body outputParameters: - type: object mapping: $. - name: delete-webhook-subscription description: Delete Webhook subscription hints: readOnly: false destructive: true idempotent: true call: close-subpackage-webhooks.delete with: id: tools.id Authorization: tools.Authorization outputParameters: - type: object mapping: $.